diff options
author | Daniel Xu <dxu@dxuuu.xyz> | 2020-03-12 13:03:15 -0700 |
---|---|---|
committer | Tejun Heo <tj@kernel.org> | 2020-03-16 15:53:47 -0400 |
commit | a46a22955bae16fc5a756af7188d3ccb25c3f797 (patch) | |
tree | c1a356cde80b186783225a8cb2d8f56f9474c1b3 /mm/shmem.c | |
parent | fdc85222d58eb6e19ac11181024ac766b19dc470 (diff) | |
download | lwn-a46a22955bae16fc5a756af7188d3ccb25c3f797.tar.gz lwn-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 'mm/shmem.c')
-rw-r--r-- | mm/shmem.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mm/shmem.c b/mm/shmem.c index c8f7540ef048..e6a7549faf20 100644 --- a/mm/shmem.c +++ b/mm/shmem.c @@ -3243,7 +3243,7 @@ static int shmem_xattr_handler_set(const struct xattr_handler *handler, struct shmem_inode_info *info = SHMEM_I(inode); name = xattr_full_name(handler, name); - return simple_xattr_set(&info->xattrs, name, value, size, flags); + return simple_xattr_set(&info->xattrs, name, value, size, flags, NULL); } static const struct xattr_handler shmem_security_xattr_handler = { |