• C
    btrfs: optmize listxattr · eaa47d86
    Christoph Hellwig 提交于
    The ->list handler is really not useful at all, because we always call
    btrfs_xattr_generic_list anyway.  After this is done
    find_btrfs_xattr_handler becomes unused, and it becomes obvious that the
    temporary name buffer allocation isn't needed but we can directly copy
    into the supplied buffer.
    
    Tested with various getfattr -d calls on varying xattr lists.
    Signed-off-by: NChristoph Hellwig <hch@lst.de>
    Signed-off-by: NChris Mason <chris.mason@oracle.com>
    eaa47d86
acl.c 7.4 KB