Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 28d52235 authored by Trond Myklebust's avatar Trond Myklebust
Browse files

NFSv4: Save a few bytes in the nfs_pgio_args/res



Save a few bytes by allowing the read/write specific fields of the
structures to share storage.

Signed-off-by: default avatarTrond Myklebust <trond.myklebust@hammerspace.com>
parent 8d8928d8
Loading
Loading
Loading
Loading
+17 −7
Original line number Diff line number Diff line
@@ -608,21 +608,31 @@ struct nfs_pgio_args {
	__u32			count;
	unsigned int		pgbase;
	struct page **		pages;
	union {
		unsigned int		replen;			/* used by read */
		struct {
			const u32 *		bitmask;	/* used by write */
			enum nfs3_stable_how	stable;		/* used by write */
		};
	};
};

struct nfs_pgio_res {
	struct nfs4_sequence_res	seq_res;
	struct nfs_fattr *	fattr;
	__u32			count;
	__u32			op_status;
	int			eof;		/* used by read */
	union {
		struct {
			unsigned int		replen;		/* used by read */
			int			eof;		/* used by read */
		};
		struct {
			struct nfs_writeverf *	verf;		/* used by write */
			const struct nfs_server *server;	/* used by write */
		};
	};
};

/*
 * Arguments to the commit call.