mm: Remove false WARN_ON from pagecache_isize_extended()
authorJan Kara <jack@suse.cz>
Wed, 29 Oct 2014 23:35:00 +0000 (10:35 +1100)
committerDave Chinner <david@fromorbit.com>
Wed, 29 Oct 2014 23:35:00 +0000 (10:35 +1100)
commitf55fefd1a5a339b1bd08c120b93312d6eb64a9fb
treec4e40563082778ec7d4c33a2755c3b026f8ecc9b
parent7a19dee116c8fae7ba7a778043c245194289f5a2
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>
mm/truncate.c