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>
This commit is contained in:
@@ -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);
|
||||
|
||||
|
Reference in New Issue
Block a user