]> git.ipfire.org Git - thirdparty/linux.git/commit
posix_acl: make posix_acl_to_xattr() alloc the buffer
authorMiklos Szeredi <mszeredi@redhat.com>
Thu, 15 Jan 2026 12:23:40 +0000 (13:23 +0100)
committerChristian Brauner <brauner@kernel.org>
Fri, 16 Jan 2026 09:51:12 +0000 (10:51 +0100)
commit6cbfdf89470ef3c2110f376a507d135e7a7a7378
tree6991f78aff4f603c9b186e0e4a4fe031d5828861
parent88ec797c468097a8ce97694ed11ea9c982598ec0
posix_acl: make posix_acl_to_xattr() alloc the buffer

Without exception all caller do that.  So move the allocation into the
helper.

This reduces boilerplate and removes unnecessary error checking.

Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
Link: https://patch.msgid.link/20260115122341.556026-1-mszeredi@redhat.com
Signed-off-by: Christian Brauner <brauner@kernel.org>
fs/9p/acl.c
fs/btrfs/acl.c
fs/ceph/acl.c
fs/fuse/acl.c
fs/gfs2/acl.c
fs/jfs/acl.c
fs/ntfs3/xattr.c
fs/orangefs/acl.c
fs/posix_acl.c
include/linux/posix_acl_xattr.h