Skip to content

Commit

Permalink
nfsd: move svc_fh->fh_maxsize to just after fh_handle
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Jeff Layton authored and J. Bruce Fields committed Oct 12, 2015
1 parent e79017d commit fcaba02
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fs/nfsd/nfsfh.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down

0 comments on commit fcaba02

Please sign in to comment.