Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

move_mount(2): switch to CLASS(filename_maybe_null)

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>

Al Viro cbe9e300 904f58b5

+2 -4
+2 -4
fs/namespace.c
··· 4402 4402 { 4403 4403 struct path to_path __free(path_put) = {}; 4404 4404 struct path from_path __free(path_put) = {}; 4405 - struct filename *to_name __free(putname) = NULL; 4406 - struct filename *from_name __free(putname) = NULL; 4407 4405 unsigned int lflags, uflags; 4408 4406 enum mnt_tree_flags_t mflags = 0; 4409 4407 int ret = 0; ··· 4423 4425 if (flags & MOVE_MOUNT_T_EMPTY_PATH) 4424 4426 uflags = AT_EMPTY_PATH; 4425 4427 4426 - to_name = getname_maybe_null(to_pathname, uflags); 4428 + CLASS(filename_maybe_null,to_name)(to_pathname, uflags); 4427 4429 if (!to_name && to_dfd >= 0) { 4428 4430 CLASS(fd_raw, f_to)(to_dfd); 4429 4431 if (fd_empty(f_to)) ··· 4446 4448 if (flags & MOVE_MOUNT_F_EMPTY_PATH) 4447 4449 uflags = AT_EMPTY_PATH; 4448 4450 4449 - from_name = getname_maybe_null(from_pathname, uflags); 4451 + CLASS(filename_maybe_null,from_name)(from_pathname, uflags); 4450 4452 if (!from_name && from_dfd >= 0) { 4451 4453 CLASS(fd_raw, f_from)(from_dfd); 4452 4454 if (fd_empty(f_from))