Commit efb79ea3 authored by Darrick J. Wong's avatar Darrick J. Wong
Browse files

xfs: reduce the size of nr_ops for refcount btree cursors



We're never going to run more than 4 billion btree operations on a
refcount cursor, so shrink the field to an unsigned int to reduce the
structure size.  Fix whitespace alignment too.

Signed-off-by: default avatarDarrick J. Wong <djwong@kernel.org>
Reviewed-by: default avatarDave Chinner <dchinner@redhat.com>
parent cc411740
Loading
Loading
Loading
Loading
+4 −4
Original line number Diff line number Diff line
@@ -188,8 +188,8 @@ struct xfs_btree_cur_ag {
	};
	union {
		struct {
			unsigned long nr_ops;	/* # record updates */
			int	shape_changes;	/* # of extent splits */
			unsigned int	nr_ops;	/* # record updates */
			unsigned int	shape_changes;	/* # of extent splits */
		} refc;
		struct {
			bool		active;	/* allocation cursor state */