vfs: pull ext4's double-i_mutex-locking into common code
authorJ. Bruce Fields <bfields@redhat.com>
Wed, 18 Apr 2012 19:16:33 +0000 (15:16 -0400)
committerAl Viro <viro@zeniv.linux.org.uk>
Sat, 9 Nov 2013 05:16:39 +0000 (00:16 -0500)
commit375e289ea85166c5241c570940e7e7e966c63a9f
tree406c6701e7a45a809114bfb925f474bdd20d252a
parentf27c9298fd717e1f7e63e314a7a85a3a7e77139d
vfs: pull ext4's double-i_mutex-locking into common code

We want to do this elsewhere as well.

Also catch any attempts to use it for directories (where this ordering
would conflict with ancestor-first directory ordering in lock_rename).

Cc: Andreas Dilger <adilger.kernel@dilger.ca>
Cc: Dave Chinner <david@fromorbit.com>
Acked-by: Jeff Layton <jlayton@redhat.com>
Acked-by: "Theodore Ts'o" <tytso@mit.edu>
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
fs/ext4/ext4.h
fs/ext4/ioctl.c
fs/ext4/move_extent.c
fs/inode.c
include/linux/fs.h