nfs: don't lose MS_SYNCHRONOUS on remount of noac mount
commitef0a7cb84462c4ee1e9870a5730de6975f55523b
authorJeff Layton <jlayton@redhat.com>
Wed, 27 Apr 2011 15:49:09 +0000 (27 11:49 -0400)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 9 May 2011 23:04:40 +0000 (9 16:04 -0700)
tree710b7aa85a0804546691584f30e8c8f9c7254358
parent68dbff17ec5f7c19b68dd9a7ae1d02cde05aafaa
nfs: don't lose MS_SYNCHRONOUS on remount of noac mount

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>
fs/nfs/super.c