Skip to content
Commit 910f3d58 authored by Chengguang Xu's avatar Chengguang Xu Committed by Andreas Gruenbacher
Browse files

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: default avatarChengguang Xu <cgxu519@gmx.com>
Signed-off-by: default avatarAndreas Gruenbacher <agruenba@redhat.com>
parent e79e0e14
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment