From: Jan Kara Date: Thu, 15 Oct 2009 12:54:05 +0000 (+0200) Subject: ocfs2: Set MS_POSIXACL on remount X-Git-Tag: firefly_0821_release~9833^2~3529^2~11 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=57b09bb5e492c37c1e4273fe4e435ffd1d2ddbe0;p=firefly-linux-kernel-4.4.55.git ocfs2: Set MS_POSIXACL on remount We have to set MS_POSIXACL on remount as well. Otherwise VFS would not know we started supporting ACLs after remount and thus ACLs would not work. Signed-off-by: Jan Kara Signed-off-by: Joel Becker --- diff --git a/fs/ocfs2/super.c b/fs/ocfs2/super.c index a5116b9b7e70..45d654cb77ef 100644 --- a/fs/ocfs2/super.c +++ b/fs/ocfs2/super.c @@ -702,6 +702,10 @@ unlock_osb: if (!ocfs2_is_hard_readonly(osb)) ocfs2_set_journal_params(osb); + + sb->s_flags = (sb->s_flags & ~MS_POSIXACL) | + ((osb->s_mount_opt & OCFS2_MOUNT_POSIX_ACL) ? + MS_POSIXACL : 0); } out: unlock_kernel();