]> asedeno.scripts.mit.edu Git - linux.git/commit
gfs2: using posix_acl_xattr_size instead of posix_acl_to_xattr
authorChengguang Xu <cgxu519@gmx.com>
Fri, 22 Jun 2018 01:51:43 +0000 (09:51 +0800)
committerAndreas Gruenbacher <agruenba@redhat.com>
Tue, 24 Jul 2018 18:02:11 +0000 (20:02 +0200)
commit910f3d58d0d40691534b77cc01588ffa22ee7dee
tree21b091811e336ceea65f51f690eef4a1361a3de2
parente79e0e1428188b24c3b57309ffa54a33c4ae40c4
gfs2: using posix_acl_xattr_size instead of posix_acl_to_xattr

It seems better to get size by calling posix_acl_xattr_size() instead of
calling posix_acl_to_xattr() with NULL buffer argument.

posix_acl_xattr_size() never returns 0, so remove the unnecessary check.

Signed-off-by: Chengguang Xu <cgxu519@gmx.com>
Signed-off-by: Andreas Gruenbacher <agruenba@redhat.com>
fs/gfs2/acl.c