summaryrefslogtreecommitdiff
path: root/mm
diff options
context:
space:
mode:
authorJan Kara <jack@suse.cz>2014-10-29 23:35:00 (GMT)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2014-11-14 16:48:00 (GMT)
commitb089fe5b6d7fe1ad383dd2ffcb2e4ce4ee0c574d (patch)
tree4f47a4fc85561caca065348c85c35b647284a861 /mm
parent2d1fef447d8e19ac23b8226e4655b78f072569bd (diff)
downloadlinux-3.10-b089fe5b6d7fe1ad383dd2ffcb2e4ce4ee0c574d.zip
linux-3.10-b089fe5b6d7fe1ad383dd2ffcb2e4ce4ee0c574d.tar.gz
linux-3.10-b089fe5b6d7fe1ad383dd2ffcb2e4ce4ee0c574d.tar.bz2
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: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'mm')
-rw-r--r--mm/truncate.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/mm/truncate.c b/mm/truncate.c
index 2f03c3a..2d6151f 100644
--- a/mm/truncate.c
+++ b/mm/truncate.c
@@ -603,7 +603,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)