summaryrefslogtreecommitdiff
path: root/drivers/pci/pci-acpi.c
diff options
context:
space:
mode:
authorEric Biggers <ebiggers3@gmail.com>2014-10-12 11:59:58 -0500
committerAl Viro <viro@zeniv.linux.org.uk>2014-10-12 17:09:10 -0400
commit8cc431165d8fbda43634dd15ab17f76a151c39a8 (patch)
tree9f75709e432ec0beed0923e935b3d63d45b4b3e7 /drivers/pci/pci-acpi.c
parent50b220bbe7092bbfe4406adfe3a216337a64655d (diff)
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 'drivers/pci/pci-acpi.c')
0 files changed, 0 insertions, 0 deletions