diff options
author | Hugh Dickins <[email protected]> | 2023-08-08 21:30:59 -0700 |
---|---|---|
committer | Christian Brauner <[email protected]> | 2023-08-09 09:15:51 +0200 |
commit | 5de75970c9fd7220e394b76e6d20fbafa1369b5a (patch) | |
tree | eb0b3a67a96b975840c0600a70cbbf4dab39d0fc /net/lapb/lapb_timer.c | |
parent | 0200679fc7953177941e41c2a4241d0b6c2c5de8 (diff) |
xattr: simple_xattr_set() return old_xattr to be freed
tmpfs wants to support limited user extended attributes, but kernfs
(or cgroupfs, the only kernfs with KERNFS_ROOT_SUPPORT_USER_XATTR)
already supports user extended attributes through simple xattrs: but
limited by a policy (128KiB per inode) too liberal to be used on tmpfs.
To allow a different limiting policy for tmpfs, without affecting the
policy for kernfs, change simple_xattr_set() to return the replaced or
removed xattr (if any), leaving the caller to update their accounting
then free the xattr (by simple_xattr_free(), renamed from the static
free_simple_xattr()).
Signed-off-by: Hugh Dickins <[email protected]>
Reviewed-by: Jan Kara <[email protected]>
Reviewed-by: Christian Brauner <[email protected]>
Reviewed-by: Carlos Maiolino <[email protected]>
Message-Id: <[email protected]>
Signed-off-by: Christian Brauner <[email protected]>
Diffstat (limited to 'net/lapb/lapb_timer.c')
0 files changed, 0 insertions, 0 deletions