Message ID | 164329973737.5879.52128759560418285.stgit@bazille.1015granger.net (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Series | NFSD size, offset, and count sanity | expand |
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,
This constant was introduced way back in Linux v2.3.y before there was a kernel-wide OFFSET_MAX value. These days we prefer to check against the limits in the underlying filesystem instead. Signed-off-by: Chuck Lever <chuck.lever@oracle.com> --- include/linux/nfs.h | 8 -------- 1 file changed, 8 deletions(-)