linux-nfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/2] nfsd: move svc_fh->fh_maxsize to just after fh_handle
@ 2015-09-17 12:28 Jeff Layton
  2015-09-17 12:28 ` [PATCH 2/2] nfsd: switch unsigned char flags in svc_fh to bools Jeff Layton
  0 siblings, 1 reply; 3+ messages in thread
From: Jeff Layton @ 2015-09-17 12:28 UTC (permalink / raw)
  To: bfields; +Cc: linux-nfs, Andreas Dilger

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>
---
 fs/nfsd/nfsfh.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/fs/nfsd/nfsfh.h b/fs/nfsd/nfsfh.h
index 1e90dad4926b..b1edd6bf40e1 100644
--- a/fs/nfsd/nfsfh.h
+++ b/fs/nfsd/nfsfh.h
@@ -26,9 +26,9 @@ static inline ino_t u32_to_ino_t(__u32 uino)
  */
 typedef struct svc_fh {
 	struct knfsd_fh		fh_handle;	/* FH data */
+	int			fh_maxsize;	/* max size for fh_handle */
 	struct dentry *		fh_dentry;	/* validated dentry */
 	struct svc_export *	fh_export;	/* export pointer */
-	int			fh_maxsize;	/* max size for fh_handle */
 
 	unsigned char		fh_locked;	/* inode locked by us */
 	unsigned char		fh_want_write;	/* remount protection taken */
-- 
2.4.3


^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2015-09-29 20:48 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-09-17 12:28 [PATCH 1/2] nfsd: move svc_fh->fh_maxsize to just after fh_handle Jeff Layton
2015-09-17 12:28 ` [PATCH 2/2] nfsd: switch unsigned char flags in svc_fh to bools Jeff Layton
2015-09-29 20:48   ` J. Bruce Fields

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).