hc
2024-02-20 102a0743326a03cd1a1202ceda21e175b7d3575c
kernel/fs/nfs/fscache.c
....@@ -1,12 +1,8 @@
1
+// SPDX-License-Identifier: GPL-2.0-or-later
12 /* NFS filesystem cache interface
23 *
34 * Copyright (C) 2008 Red Hat, Inc. All Rights Reserved.
45 * Written by David Howells (dhowells@redhat.com)
5
- *
6
- * This program is free software; you can redistribute it and/or
7
- * modify it under the terms of the GNU General Public Licence
8
- * as published by the Free Software Foundation; either version
9
- * 2 of the Licence, or (at your option) any later version.
106 */
117
128 #include <linux/init.h>
....@@ -122,8 +118,6 @@
122118
123119 nfss->fscache_key = NULL;
124120 nfss->fscache = NULL;
125
- if (!(nfss->options & NFS_OPTION_FSCACHE))
126
- return;
127121 if (!uniq) {
128122 uniq = "";
129123 ulen = 1;
....@@ -134,7 +128,7 @@
134128 return;
135129
136130 key->nfs_client = nfss->nfs_client;
137
- key->key.super.s_flags = sb->s_flags & NFS_MS_MASK;
131
+ key->key.super.s_flags = sb->s_flags & NFS_SB_MASK;
138132 key->key.nfs_server.flags = nfss->flags;
139133 key->key.nfs_server.rsize = nfss->rsize;
140134 key->key.nfs_server.wsize = nfss->wsize;