summaryrefslogtreecommitdiffstats
path: root/fs/nfs/internal.h
diff options
context:
space:
mode:
authorChao Yu2016-09-20 07:59:07 +0200
committerAnna Schumaker2016-09-20 15:29:39 +0200
commitf844cd0d76378fa898890d2448222d407f3f8ecf (patch)
treebfee2f2368ee7c198c05c7a06c0fb8e42c5e9fcc /fs/nfs/internal.h
parentsunrpc: fix write space race causing stalls (diff)
downloadkernel-qcow2-linux-f844cd0d76378fa898890d2448222d407f3f8ecf.tar.gz
kernel-qcow2-linux-f844cd0d76378fa898890d2448222d407f3f8ecf.tar.xz
kernel-qcow2-linux-f844cd0d76378fa898890d2448222d407f3f8ecf.zip
nfs: cover ->migratepage with CONFIG_MIGRATION
It will be more clean to use CONFIG_MIGRATION to cover nfs' private .migratepage in nfs_file_aops like we do in other part of nfs operations. Signed-off-by: Chao Yu <yuchao0@huawei.com> Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
Diffstat (limited to 'fs/nfs/internal.h')
-rw-r--r--fs/nfs/internal.h3
1 files changed, 0 insertions, 3 deletions
diff --git a/fs/nfs/internal.h b/fs/nfs/internal.h
index fd82bed39ed4..4f0b2db8327f 100644
--- a/fs/nfs/internal.h
+++ b/fs/nfs/internal.h
@@ -535,12 +535,9 @@ void nfs_clear_pnfs_ds_commit_verifiers(struct pnfs_ds_commit_info *cinfo)
}
#endif
-
#ifdef CONFIG_MIGRATION
extern int nfs_migrate_page(struct address_space *,
struct page *, struct page *, enum migrate_mode);
-#else
-#define nfs_migrate_page NULL
#endif
static inline int