Forum | Documentation | Website | Blog

Skip to content
Snippets Groups Projects
Commit b089fe5b authored by Jan Kara's avatar Jan Kara Committed by Greg Kroah-Hartman
Browse files

mm: Remove false WARN_ON from pagecache_isize_extended()

commit f55fefd1

 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: default avatarJan Kara <jack@suse.cz>
Reviewed-by: default avatarDave Chinner <dchinner@redhat.com>
Signed-off-by: default avatarDave Chinner <david@fromorbit.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 2d1fef44
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment