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.

file_[gs]etattr(2): switch to CLASS(filename_maybe_null)

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

Al Viro 70772caf 5b9d406f

+2 -4
+2 -4
fs/file_attr.c
··· 374 374 unsigned int, at_flags) 375 375 { 376 376 struct path filepath __free(path_put) = {}; 377 - struct filename *name __free(putname) = NULL; 378 377 unsigned int lookup_flags = 0; 379 378 struct file_attr fattr; 380 379 struct file_kattr fa; ··· 394 395 if (usize < FILE_ATTR_SIZE_VER0) 395 396 return -EINVAL; 396 397 397 - name = getname_maybe_null(filename, at_flags); 398 + CLASS(filename_maybe_null, name)(filename, at_flags); 398 399 if (!name && dfd >= 0) { 399 400 CLASS(fd, f)(dfd); 400 401 if (fd_empty(f)) ··· 427 428 unsigned int, at_flags) 428 429 { 429 430 struct path filepath __free(path_put) = {}; 430 - struct filename *name __free(putname) = NULL; 431 431 unsigned int lookup_flags = 0; 432 432 struct file_attr fattr; 433 433 struct file_kattr fa; ··· 456 458 if (error) 457 459 return error; 458 460 459 - name = getname_maybe_null(filename, at_flags); 461 + CLASS(filename_maybe_null, name)(filename, at_flags); 460 462 if (!name && dfd >= 0) { 461 463 CLASS(fd, f)(dfd); 462 464 if (fd_empty(f))