diff options
author | Amir Goldstein <amir73il@gmail.com> | 2020-07-16 11:42:24 +0300 |
---|---|---|
committer | Jan Kara <jack@suse.cz> | 2020-07-28 00:24:00 +0300 |
commit | 79cb299c7e181fad683bf6191edb8224b2412512 (patch) | |
tree | 7ba35063e2b152ec86c72a1a11ba2c934118fdbf /fs/fhandle.c | |
parent | 9b93f33105f5f9bd3d016ff870eb6000c9d89eff (diff) | |
download | linux-79cb299c7e181fad683bf6191edb8224b2412512.tar.xz |
fsnotify: remove check that source dentry is positive
Remove the unneeded check for positive source dentry in
fsnotify_move().
fsnotify_move() hook is mostly called from vfs_rename() under
lock_rename() and vfs_rename() starts with may_delete() test that
verifies positive source dentry. The only other caller of
fsnotify_move() - debugfs_rename() also verifies positive source.
Link: https://lore.kernel.org/r/20200716084230.30611-17-amir73il@gmail.com
Signed-off-by: Amir Goldstein <amir73il@gmail.com>
Signed-off-by: Jan Kara <jack@suse.cz>
Diffstat (limited to 'fs/fhandle.c')
0 files changed, 0 insertions, 0 deletions