aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/nfs.h
diff options
context:
space:
mode:
authorChuck Lever <chuck.lever@oracle.com>2022-01-25 15:57:45 -0500
committerChuck Lever <chuck.lever@oracle.com>2022-02-09 09:24:40 -0500
commitc306d737691ef84305d4ed0d302c63db2932f0bb (patch)
tree23a35f46ae8e5ae8eb4225af628833dd2456ee48 /include/linux/nfs.h
parentNFSD: Fix offset type in I/O trace points (diff)
downloadlinux-dev-c306d737691ef84305d4ed0d302c63db2932f0bb.tar.xz
linux-dev-c306d737691ef84305d4ed0d302c63db2932f0bb.zip
NFSD: Deprecate NFS_OFFSET_MAX
NFS_OFFSET_MAX was introduced way back in Linux v2.3.y before there was a kernel-wide OFFSET_MAX value. As a clean up, replace the last few uses of it with its generic equivalent, and get rid of it. Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Diffstat (limited to 'include/linux/nfs.h')
-rw-r--r--include/linux/nfs.h8
1 files changed, 0 insertions, 8 deletions
diff --git a/include/linux/nfs.h b/include/linux/nfs.h
index 0dc7ad38a0da..b06375e88e58 100644
--- a/include/linux/nfs.h
+++ b/include/linux/nfs.h
@@ -36,14 +36,6 @@ static inline void nfs_copy_fh(struct nfs_fh *target, const struct nfs_fh *sourc
memcpy(target->data, source->data, source->size);
}
-
-/*
- * This is really a general kernel constant, but since nothing like
- * this is defined in the kernel headers, I have to do it here.
- */
-#define NFS_OFFSET_MAX ((__s64)((~(__u64)0) >> 1))
-
-
enum nfs3_stable_how {
NFS_UNSTABLE = 0,
NFS_DATA_SYNC = 1,