diff options
author | Jan Kara <jack@suse.cz> | 2014-10-30 10:35:00 +1100 |
---|---|---|
committer | Jiri Slaby <jslaby@suse.cz> | 2014-11-13 19:03:02 +0100 |
commit | 50c36a9ad170f54c46c22a59a94f75ebcb2e51fd (patch) | |
tree | d41fd5d5612e82a538a5bc87a11c15669fe5ec62 /mm | |
parent | 4d54f12db93cc3ec3aaedd767b676f10ed237c98 (diff) | |
download | lwn-50c36a9ad170f54c46c22a59a94f75ebcb2e51fd.tar.gz lwn-50c36a9ad170f54c46c22a59a94f75ebcb2e51fd.zip |
mm: Remove false WARN_ON from pagecache_isize_extended()
commit f55fefd1a5a339b1bd08c120b93312d6eb64a9fb upstream.
The WARN_ON checking whether i_mutex is held in
pagecache_isize_extended() was wrong because some filesystems (e.g.
XFS) use different locks for serialization of truncates / writes. So
just remove the check.
Signed-off-by: Jan Kara <jack@suse.cz>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
Signed-off-by: Dave Chinner <david@fromorbit.com>
Signed-off-by: Jiri Slaby <jslaby@suse.cz>
Diffstat (limited to 'mm')
-rw-r--r-- | mm/truncate.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/mm/truncate.c b/mm/truncate.c index 7dfb7c70fd4b..827ad8d2b5cd 100644 --- a/mm/truncate.c +++ b/mm/truncate.c @@ -697,7 +697,6 @@ void pagecache_isize_extended(struct inode *inode, loff_t from, loff_t to) struct page *page; pgoff_t index; - WARN_ON(!mutex_is_locked(&inode->i_mutex)); WARN_ON(to > inode->i_size); if (from >= to || bsize == PAGE_CACHE_SIZE) |