From: NeilBrown Date: Sun, 6 Mar 2022 23:41:44 +0000 (+1100) Subject: NFS: remove IS_SWAPFILE hack X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=944d95f766c6fe97fa358c661281a741758cee7e;p=linux.git NFS: remove IS_SWAPFILE hack This code is pointless as IS_SWAPFILE is always defined. So remove it. Suggested-by: Mark Hemment Reviewed-by: Christoph Hellwig Signed-off-by: NeilBrown Signed-off-by: Trond Myklebust --- diff --git a/fs/nfs/file.c b/fs/nfs/file.c index 4d681683d13cb..93c01aaa0a8dc 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))