wrappers for ->i_mutex access
authorAl Viro <viro@zeniv.linux.org.uk>
Fri, 22 Jan 2016 20:40:57 +0000 (15:40 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 15 Sep 2016 06:27:52 +0000 (08:27 +0200)
commitd72e9b2566e79f0ca6fe128d8bb6972209a816fc
tree16638a64e7877bfc8cf8ff1691d6be913a299487
parent09ca40a6afc93c21ec2ecc2ff9ba5b7c7360a0b7
wrappers for ->i_mutex access

commit 5955102c9984fa081b2d570cfac75c97eecf8f3b upstream

parallel to mutex_{lock,unlock,trylock,is_locked,lock_nested},
inode_foo(inode) being mutex_foo(&inode->i_mutex).

Please, use those for access to ->i_mutex; over the coming cycle
->i_mutex will become rwsem, with ->lookup() done with it held
only shared.

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
[only the fs.h change included to make backports easier - gregkh]
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
include/linux/fs.h