]> git.baikalelectronics.ru Git - kernel.git/commit
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)
committerTrond Myklebust <Trond.Myklebust@netapp.com>
Wed, 27 Apr 2011 20:20:01 +0000 (16:20 -0400)
commitacf85a445bb030206b667b95f795452bc7be263f
treef187a530024ab278a3f3e25ee01edc2e8c568f39
parent1fca0a50f3b8b163dd6737ec38e15483ebac99eb
nfs: don't lose MS_SYNCHRONOUS on remount of noac mount

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>
Cc: stable@kernel.org
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
fs/nfs/super.c