]> www.infradead.org Git - users/jedix/linux-maple.git/commit
f2fs: Use struct_size() to improve f2fs_acl_clone()
authorThorsten Blum <thorsten.blum@linux.dev>
Mon, 7 Oct 2024 11:46:37 +0000 (13:46 +0200)
committerJaegeuk Kim <jaegeuk@kernel.org>
Mon, 14 Oct 2024 20:04:57 +0000 (20:04 +0000)
commit527a4ded09b9266a5fb100e80e05b101b53053fd
tree9feedaf3f02f06b5a4dba50c1a52bbc3ea180695
parentb19ee72722087c1d441193ce3b6b3d937ae16bf2
f2fs: Use struct_size() to improve f2fs_acl_clone()

Use struct_size() to calculate the number of bytes to allocate for a
cloned acl.

Signed-off-by: Thorsten Blum <thorsten.blum@linux.dev>
Reviewed-by: Chao Yu <chao@kernel.org>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
fs/f2fs/acl.c