Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

nfsd: move svc_fh->fh_maxsize to just after fh_handle

This moves the hole in the struct down below the flags fields, which
allows us to potentially add a new flag without growing the struct.

Signed-off-by: Jeff Layton <jeff.layton@primarydata.com>
Signed-off-by: J. Bruce Fields <bfields@redhat.com>

authored by

Jeff Layton and committed by
J. Bruce Fields
fcaba026 e79017dd

+1 -1
+1 -1
fs/nfsd/nfsfh.h
··· 26 26 */ 27 27 typedef struct svc_fh { 28 28 struct knfsd_fh fh_handle; /* FH data */ 29 + int fh_maxsize; /* max size for fh_handle */ 29 30 struct dentry * fh_dentry; /* validated dentry */ 30 31 struct svc_export * fh_export; /* export pointer */ 31 - int fh_maxsize; /* max size for fh_handle */ 32 32 33 33 unsigned char fh_locked; /* inode locked by us */ 34 34 unsigned char fh_want_write; /* remount protection taken */