nfsd: move svc_fh->fh_maxsize to just after fh_handle
authorJeff Layton <jlayton@poochiereds.net>
Thu, 17 Sep 2015 12:28:38 +0000 (08:28 -0400)
committerJ. Bruce Fields <bfields@redhat.com>
Mon, 12 Oct 2015 21:31:04 +0000 (17:31 -0400)
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>
fs/nfsd/nfsfh.h

index 1e90dad4926b4aa2e5158d5d0e7acb7c26d73472..b1edd6bf40e15b8795293729e99d8dcd070cedab 100644 (file)
@@ -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 */