diff options
author | Daniel Xu <dxu@dxuuu.xyz> | 2020-03-12 21:03:15 +0100 |
---|---|---|
committer | Tejun Heo <tj@kernel.org> | 2020-03-16 20:53:47 +0100 |
commit | a46a22955bae16fc5a756af7188d3ccb25c3f797 (patch) | |
tree | c1a356cde80b186783225a8cb2d8f56f9474c1b3 /fs/kernfs | |
parent | kernfs: kvmalloc xattr value instead of kmalloc (diff) | |
download | linux-a46a22955bae16fc5a756af7188d3ccb25c3f797.tar.xz linux-a46a22955bae16fc5a756af7188d3ccb25c3f797.zip |
kernfs: Add removed_size out param for simple_xattr_set
This helps set up size accounting in the next commit. Without this out
param, it's difficult to find out the removed xattr size without taking
a lock for longer and walking the xattr linked list twice.
Signed-off-by: Daniel Xu <dxu@dxuuu.xyz>
Acked-by: Chris Down <chris@chrisdown.name>
Reviewed-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Tejun Heo <tj@kernel.org>
Diffstat (limited to 'fs/kernfs')
-rw-r--r-- | fs/kernfs/inode.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/kernfs/inode.c b/fs/kernfs/inode.c index d0f7a5abd9a9..5f10ae95fbfa 100644 --- a/fs/kernfs/inode.c +++ b/fs/kernfs/inode.c @@ -303,7 +303,7 @@ int kernfs_xattr_set(struct kernfs_node *kn, const char *name, if (!attrs) return -ENOMEM; - return simple_xattr_set(&attrs->xattrs, name, value, size, flags); + return simple_xattr_set(&attrs->xattrs, name, value, size, flags, NULL); } static int kernfs_vfs_xattr_get(const struct xattr_handler *handler, |