summaryrefslogtreecommitdiff
path: root/fs/file_table.c
diff options
context:
space:
mode:
authorEric Biggers <ebiggers3@gmail.com>2014-10-12 16:59:58 (GMT)
committerAl Viro <viro@zeniv.linux.org.uk>2014-10-12 21:09:10 (GMT)
commit8cc431165d8fbda43634dd15ab17f76a151c39a8 (patch)
tree9f75709e432ec0beed0923e935b3d63d45b4b3e7 /fs/file_table.c
parent50b220bbe7092bbfe4406adfe3a216337a64655d (diff)
downloadlinux-8cc431165d8fbda43634dd15ab17f76a151c39a8.tar.xz
vfs: Deduplicate code shared by xattr system calls operating on paths
The following pairs of system calls dealing with extended attributes only differ in their behavior on whether the symbolic link is followed (when the named file is a symbolic link): - setxattr() and lsetxattr() - getxattr() and lgetxattr() - listxattr() and llistxattr() - removexattr() and lremovexattr() Despite this, the implementations all had duplicated code, so this commit redirects each of the above pairs of system calls to a corresponding function to which different lookup flags (LOOKUP_FOLLOW or 0) are passed. For me this reduced the stripped size of xattr.o from 8824 to 8248 bytes. Signed-off-by: Eric Biggers <ebiggers3@gmail.com> Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs/file_table.c')
0 files changed, 0 insertions, 0 deletions