Skip to content

Commit 9e25395

Browse files
author
Darrick J. Wong
committed
xfs: compact deferred intent item structures
Rearrange these structs to reduce the amount of unused padding bytes. This saves eight bytes for each of the three structs changed here, which means they're now all (rmap/bmap are 64 bytes, refc is 32 bytes) even powers of two. Signed-off-by: Darrick J. Wong <[email protected]> Reviewed-by: Chandan Babu R <[email protected]>
1 parent 182696f commit 9e25395

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

fs/xfs/libxfs/xfs_bmap.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -257,8 +257,8 @@ enum xfs_bmap_intent_type {
257257
struct xfs_bmap_intent {
258258
struct list_head bi_list;
259259
enum xfs_bmap_intent_type bi_type;
260-
struct xfs_inode *bi_owner;
261260
int bi_whichfork;
261+
struct xfs_inode *bi_owner;
262262
struct xfs_bmbt_irec bi_bmap;
263263
};
264264

fs/xfs/libxfs/xfs_refcount.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,8 @@ enum xfs_refcount_intent_type {
3232
struct xfs_refcount_intent {
3333
struct list_head ri_list;
3434
enum xfs_refcount_intent_type ri_type;
35-
xfs_fsblock_t ri_startblock;
3635
xfs_extlen_t ri_blockcount;
36+
xfs_fsblock_t ri_startblock;
3737
};
3838

3939
void xfs_refcount_increase_extent(struct xfs_trans *tp,

fs/xfs/libxfs/xfs_rmap.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,8 +159,8 @@ enum xfs_rmap_intent_type {
159159
struct xfs_rmap_intent {
160160
struct list_head ri_list;
161161
enum xfs_rmap_intent_type ri_type;
162-
uint64_t ri_owner;
163162
int ri_whichfork;
163+
uint64_t ri_owner;
164164
struct xfs_bmbt_irec ri_bmap;
165165
};
166166

0 commit comments

Comments
 (0)