]> git.baikalelectronics.ru Git - kernel.git/commit
NFS: Kill fscache warnings when mounting without -ofsc
authorTrond Myklebust <Trond.Myklebust@netapp.com>
Fri, 21 Dec 2012 16:02:32 +0000 (11:02 -0500)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 21 Dec 2012 16:32:09 +0000 (08:32 -0800)
commit3229c5ce8873b5e228a925fcb8d41a6c3572f724
treea3fd8be5fb51c29539ae3e540837e1e59ecd4e8b
parent35137ea4b91429bf73dcbf2a1ca3be5b8c73a81f
NFS: Kill fscache warnings when mounting without -ofsc

The fscache code will currently bleat a "non-unique superblock keys"
warning even if the user is mounting without the 'fsc' option.

There should be no reason to even initialise the superblock cache cookie
unless we're planning on using fscache for something, so ensure that we
check for the NFS_OPTION_FSCACHE flag before calling into the fscache
code.

Reported-by: Paweł Sikora <pawel.sikora@agmk.net>
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Cc: David Howells <dhowells@redhat.com>
Acked-by: David Howells <dhowells@redhat.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
fs/nfs/super.c