| .. | .. |
|---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-or-later |
|---|
| 1 | 2 | /* NFS filesystem cache interface |
|---|
| 2 | 3 | * |
|---|
| 3 | 4 | * Copyright (C) 2008 Red Hat, Inc. All Rights Reserved. |
|---|
| 4 | 5 | * 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. |
|---|
| 10 | 6 | */ |
|---|
| 11 | 7 | |
|---|
| 12 | 8 | #include <linux/init.h> |
|---|
| .. | .. |
|---|
| 122 | 118 | |
|---|
| 123 | 119 | nfss->fscache_key = NULL; |
|---|
| 124 | 120 | nfss->fscache = NULL; |
|---|
| 125 | | - if (!(nfss->options & NFS_OPTION_FSCACHE)) |
|---|
| 126 | | - return; |
|---|
| 127 | 121 | if (!uniq) { |
|---|
| 128 | 122 | uniq = ""; |
|---|
| 129 | 123 | ulen = 1; |
|---|
| .. | .. |
|---|
| 134 | 128 | return; |
|---|
| 135 | 129 | |
|---|
| 136 | 130 | 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; |
|---|
| 138 | 132 | key->key.nfs_server.flags = nfss->flags; |
|---|
| 139 | 133 | key->key.nfs_server.rsize = nfss->rsize; |
|---|
| 140 | 134 | key->key.nfs_server.wsize = nfss->wsize; |
|---|