3.2.84-rc1 review patch.  If anyone has any objections, please let me know.

------------------

From: Liu Bo <bo.li....@oracle.com>

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....@oracle.com>
Signed-off-by: Chris Mason <chris.ma...@fusionio.com>
Signed-off-by: Ben Hutchings <b...@decadent.org.uk>
---
 fs/btrfs/acl.c | 2 ++
 1 file changed, 2 insertions(+)

--- a/fs/btrfs/acl.c
+++ b/fs/btrfs/acl.c
@@ -121,6 +121,8 @@ static int btrfs_set_acl(struct btrfs_tr
                        ret = posix_acl_equiv_mode(acl, &inode->i_mode);
                        if (ret < 0)
                                return ret;
+                       if (ret == 0)
+                               acl = NULL;
                }
                ret = 0;
                break;

Reply via email to