diff options
| author | 2012-04-18 15:16:33 -0400 | |
|---|---|---|
| committer | 2013-11-09 00:16:39 -0500 | |
| commit | 375e289ea85166c5241c570940e7e7e966c63a9f (patch) | |
| tree | 406c6701e7a45a809114bfb925f474bdd20d252a /include/linux/fs.h | |
| parent | exportfs: fix quadratic behavior in filehandle lookup (diff) | |
| download | linux-dev-375e289ea85166c5241c570940e7e7e966c63a9f.tar.xz linux-dev-375e289ea85166c5241c570940e7e7e966c63a9f.zip | |
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>
Diffstat (limited to 'include/linux/fs.h')
| -rw-r--r-- | include/linux/fs.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/linux/fs.h b/include/linux/fs.h index 5e44b0893db8..4e1a0b41f966 100644 --- a/include/linux/fs.h +++ b/include/linux/fs.h @@ -637,6 +637,9 @@ enum inode_i_mutex_lock_class I_MUTEX_QUOTA }; +void lock_two_nondirectories(struct inode *, struct inode*); +void unlock_two_nondirectories(struct inode *, struct inode*); + /* * NOTE: in a 32bit arch with a preemptable kernel and * an UP compile the i_size_read/write must be atomic |
