Btrfs: Fix setting umask when POSIX ACLs are not enabled
authorChris Ball <cjb@laptop.org>
Tue, 29 Sep 2009 17:51:04 +0000 (13:51 -0400)
committerChris Mason <chris.mason@oracle.com>
Tue, 29 Sep 2009 17:51:04 +0000 (13:51 -0400)
commit49cf6f4529b7945ef51b8e39f0bac630726f8c96
tree27c91f6bb1ac0e4862286e78d1365e2890754cef
parent9ed74f2dba6ebf9f30b80554290bfc73cc3ef083
Btrfs: Fix setting umask when POSIX ACLs are not enabled

We currently set sb->s_flags |= MS_POSIXACL unconditionally, which is
incorrect -- it tells the VFS that it shouldn't set umask because we
will, yet we don't set it ourselves if we aren't using POSIX ACLs, so
the umask ends up ignored.

Signed-off-by: Chris Ball <cjb@laptop.org>
Signed-off-by: Chris Mason <chris.mason@oracle.com>
fs/btrfs/super.c