aboutsummaryrefslogtreecommitdiff
path: root/fs/nfs
diff options
context:
space:
mode:
authorNeilBrown2022-03-07 10:41:44 +1100
committerTrond Myklebust2022-03-13 12:59:35 -0400
commit944d95f766c6fe97fa358c661281a741758cee7e (patch)
tree3d73598bf2c5256d2fee014daacb4c0bc0e72ca3 /fs/nfs
parentb5fdf66f6eb2560784c6f60131dc567de06267dc (diff)
NFS: remove IS_SWAPFILE hack
This code is pointless as IS_SWAPFILE is always defined. So remove it. Suggested-by: Mark Hemment <markhemm@googlemail.com> Reviewed-by: Christoph Hellwig <hch@lst.de> Signed-off-by: NeilBrown <neilb@suse.de> Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
Diffstat (limited to 'fs/nfs')
-rw-r--r--fs/nfs/file.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/fs/nfs/file.c b/fs/nfs/file.c
index 4d681683d13c..93c01aaa0a8d 100644
--- a/fs/nfs/file.c
+++ b/fs/nfs/file.c
@@ -44,11 +44,6 @@
static const struct vm_operations_struct nfs_file_vm_ops;
-/* Hack for future NFS swap support */
-#ifndef IS_SWAPFILE
-# define IS_SWAPFILE(inode) (0)
-#endif
-
int nfs_check_flags(int flags)
{
if ((flags & (O_APPEND | O_DIRECT)) == (O_APPEND | O_DIRECT))