]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 14 Nov 2014 18:10:38 +0000 (10:10 -0800)
commit020882d3716211e0801c9c0543bf69580895c225
treed9753999d66044b81366921e07b54a2e4aad8ef3
parentf3cacd25d3b3f626dcd12df1bd93851e48076a36
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>
mm/truncate.c