nfs: don't lose MS_SYNCHRONOUS on remount of noac mount
authorJeff Layton <jlayton@redhat.com>
Wed, 27 Apr 2011 15:49:09 +0000 (11:49 -0400)
committerSteve Conklin <sconklin@canonical.com>
Thu, 2 Jun 2011 19:23:06 +0000 (14:23 -0500)
commit90a5fc41b75efac1a294533ec622340f03904258
tree9131498adfd598d79bf6c6c66fed141ffc1b8557
parent23789df10c658c04f2610b62b74af2a27f98414c
nfs: don't lose MS_SYNCHRONOUS on remount of noac mount

BugLink: http://bugs.launchpad.net/bugs/775809

commit 26c4c170731f00008f4317a2888a0a07ac99d90d upstream.

On a remount, the VFS layer will clear the MS_SYNCHRONOUS bit on the
assumption that the flags on the mount syscall will have it set if the
remounted fs is supposed to keep it.

In the case of "noac" though, MS_SYNCHRONOUS is implied. A remount of
such a mount will lose the MS_SYNCHRONOUS flag since "sync" isn't part
of the mount options.

Reported-by: Max Matveev <makc@redhat.com>
Signed-off-by: Jeff Layton <jlayton@redhat.com>
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Signed-off-by: Tim Gardner <tim.gardner@canonical.com>
fs/nfs/super.c