mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 19:51:31 -04:00
UPSTREAM: 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. Change-Id: I831978a8fd659665b025898c0aa3c4f364f798cf Signed-off-by: Daniel Xu <[email protected]> Acked-by: Chris Down <[email protected]> Reviewed-by: Greg Kroah-Hartman <[email protected]> Signed-off-by: Tejun Heo <[email protected]>
This commit is contained in:
parent
6fe65f2b45
commit
5afd909150
4 changed files with 14 additions and 4 deletions
|
|
@ -3203,7 +3203,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 = {
|
||||
|
|
|
|||
Loading…
Reference in a new issue