kernfs: Add removed_size out param for simple_xattr_set
authorDaniel Xu <dxu@dxuuu.xyz>
Thu, 12 Mar 2020 20:03:15 +0000 (13:03 -0700)
committerTejun Heo <tj@kernel.org>
Mon, 16 Mar 2020 19:53:47 +0000 (15:53 -0400)
commita46a22955bae16fc5a756af7188d3ccb25c3f797
treec1a356cde80b186783225a8cb2d8f56f9474c1b3
parentfdc85222d58eb6e19ac11181024ac766b19dc470
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>
fs/kernfs/inode.c
fs/xattr.c
include/linux/xattr.h
mm/shmem.c