diff options
author | Jan Kara <jack@suse.cz> | 2014-10-30 00:35:00 +0100 |
---|---|---|
committer | Dave Chinner <david@fromorbit.com> | 2014-10-30 00:35:00 +0100 |
commit | f55fefd1a5a339b1bd08c120b93312d6eb64a9fb (patch) | |
tree | c4e40563082778ec7d4c33a2755c3b026f8ecc9b /mm | |
parent | xfs: Check error during inode btree iteration in xfs_bulkstat() (diff) | |
download | linux-f55fefd1a5a339b1bd08c120b93312d6eb64a9fb.tar.xz linux-f55fefd1a5a339b1bd08c120b93312d6eb64a9fb.zip |
mm: Remove false WARN_ON from pagecache_isize_extended()
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>
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 261eaf6e5a19..c646084e5eec 100644 --- a/mm/truncate.c +++ b/mm/truncate.c @@ -755,7 +755,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) |