diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2016-05-12 20:36:01 -0400 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2016-05-12 20:36:01 -0400 |
commit | ae05327a00fd47c34dfe25294b359a3f3fef96e8 (patch) | |
tree | edcaac0eda8abcfaad9e9bd2b6ea72dd7306d374 /include/linux/fs.h | |
parent | 9717a91b01feda644f45fd63624a641385ef8f2d (diff) | |
download | lwn-ae05327a00fd47c34dfe25294b359a3f3fef96e8.tar.gz lwn-ae05327a00fd47c34dfe25294b359a3f3fef96e8.zip |
ext4: switch to ->iterate_shared()
Note that we need relax_dir() equivalent for directories
locked shared.
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'include/linux/fs.h')
-rw-r--r-- | include/linux/fs.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/linux/fs.h b/include/linux/fs.h index 3dc0258a2b64..e87245ac6941 100644 --- a/include/linux/fs.h +++ b/include/linux/fs.h @@ -3134,6 +3134,13 @@ static inline bool dir_relax(struct inode *inode) return !IS_DEADDIR(inode); } +static inline bool dir_relax_shared(struct inode *inode) +{ + inode_unlock_shared(inode); + inode_lock_shared(inode); + return !IS_DEADDIR(inode); +} + extern bool path_noexec(const struct path *path); extern void inode_nohighmem(struct inode *inode); |