]> git.baikalelectronics.ru Git - kernel.git/commit
NFS: Fix fscache super_cookie allocation
authorDave Wysochanski <dwysocha@redhat.com>
Wed, 15 Apr 2020 20:14:42 +0000 (16:14 -0400)
committerDavid Howells <dhowells@redhat.com>
Fri, 8 May 2020 21:20:24 +0000 (22:20 +0100)
commit8d50b44a2e0693f40b3f5b261d07cec22ed86325
tree49eef1e396be2573d3a075275d393d3f6deecb12
parentaaafcfceddc2803a78f567190de4d60c050e0a12
NFS: Fix fscache super_cookie allocation

Commit b2bec77f7e6b ("NFS: Add fs_context support.") reworked
NFS mount code paths for fs_context support which included
super_block initialization.  In the process there was an extra
return left in the code and so we never call
nfs_fscache_get_super_cookie even if 'fsc' is given on as mount
option.  In addition, there is an extra check inside
nfs_fscache_get_super_cookie for the NFS_OPTION_FSCACHE which
is unnecessary since the only caller nfs_get_cache_cookie
checks this flag.

Fixes: b2bec77f7e6b ("NFS: Add fs_context support.")
Signed-off-by: Dave Wysochanski <dwysocha@redhat.com>
Signed-off-by: David Howells <dhowells@redhat.com>
fs/nfs/fscache.c
fs/nfs/super.c