switch fsnotify_move() to passing const struct qstr * for old_name
authorAl Viro <viro@zeniv.linux.org.uk>
Fri, 26 Apr 2019 17:21:24 +0000 (13:21 -0400)
committerAl Viro <viro@zeniv.linux.org.uk>
Fri, 26 Apr 2019 17:22:05 +0000 (13:22 -0400)
commitf4ec3a3d43bcdcf6295af9f3715a5a33f59bb6ce
tree1703990ecd2af3c5df59bfa905f380e673504ec7
parent230c6402b1b305c21c91b56cd9de95a608898506
switch fsnotify_move() to passing const struct qstr * for old_name

note that in the second (RENAME_EXCHANGE) call of fsnotify_move() in
vfs_rename() the old_dentry->d_name is guaranteed to be unchanged
throughout the evaluation of fsnotify_move() (by the fact that the
parent directory is locked exclusive), so we don't need to fetch
old_dentry->d_name.name in the caller.

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
fs/debugfs/inode.c
fs/namei.c
include/linux/fsnotify.h