diff options
author | Christoph Hellwig <hch@lst.de> | 2024-07-01 08:26:48 +0300 |
---|---|---|
committer | Anna Schumaker <Anna.Schumaker@Netapp.com> | 2024-07-08 20:47:51 +0300 |
commit | 7e8e78a0ba00c88f0ded86de64bdddc82e06b196 (patch) | |
tree | 0ebd10861e89b2e01eea0d79881a46ef30e43f01 /fs/nfs/fscache.c | |
parent | 4840c00003a2275668a13b82c9f5b1aed80183aa (diff) | |
download | linux-7e8e78a0ba00c88f0ded86de64bdddc82e06b196.tar.xz |
nfs: remove dead code for the old swap over NFS implementation
Remove the code testing folio_test_swapcache either explicitly or
implicitly in pagemap.h headers, as is now handled using the direct I/O
path and not the buffered I/O path that these helpers are located in.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Sagi Grimberg <sagi@grimberg.me>
Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
Diffstat (limited to 'fs/nfs/fscache.c')
-rw-r--r-- | fs/nfs/fscache.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/nfs/fscache.c b/fs/nfs/fscache.c index ddc1ee031955..7202ce84d0eb 100644 --- a/fs/nfs/fscache.c +++ b/fs/nfs/fscache.c @@ -341,7 +341,7 @@ void nfs_netfs_initiate_read(struct nfs_pgio_header *hdr) int nfs_netfs_folio_unlock(struct folio *folio) { - struct inode *inode = folio_file_mapping(folio)->host; + struct inode *inode = folio->mapping->host; /* * If fscache is enabled, netfs will unlock pages. |