diff options
author | NeilBrown <[email protected]> | 2022-03-07 10:41:44 +1100 |
---|---|---|
committer | Trond Myklebust <[email protected]> | 2022-03-13 12:59:35 -0400 |
commit | 944d95f766c6fe97fa358c661281a741758cee7e (patch) | |
tree | 3d73598bf2c5256d2fee014daacb4c0bc0e72ca3 | |
parent | b5fdf66f6eb2560784c6f60131dc567de06267dc (diff) |
NFS: remove IS_SWAPFILE hack
This code is pointless as IS_SWAPFILE is always defined.
So remove it.
Suggested-by: Mark Hemment <[email protected]>
Reviewed-by: Christoph Hellwig <[email protected]>
Signed-off-by: NeilBrown <[email protected]>
Signed-off-by: Trond Myklebust <[email protected]>
-rw-r--r-- | fs/nfs/file.c | 5 |
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)) |