Btrfs: skip adding an acl attribute if we don't have to
authorLiu Bo <bo.li.liu@oracle.com>
Wed, 28 Nov 2012 10:43:11 +0000 (10:43 +0000)
committerBen Hutchings <ben@decadent.org.uk>
Sun, 20 Nov 2016 01:01:44 +0000 (01:01 +0000)
commitcef37d3ae1c1847b553e22160fe33f2892bd39d4
tree444f593a0c633b58c0ca28be88ffd160e4067a0d
parent7230a82ecc91aaf0c62b048afb15f3b8e2d8059f
Btrfs: skip adding an acl attribute if we don't have to

commit 755ac67f83e515af55adbfe55134eb7d90839cdb upstream.

If the acl can be exactly represented in the traditional file
mode permission bits, we don't set another acl attribute.

Signed-off-by: Liu Bo <bo.li.liu@oracle.com>
Signed-off-by: Chris Mason <chris.mason@fusionio.com>
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
fs/btrfs/acl.c