Skip to content

Commit 7c05aa9

Browse files
author
Chandan Babu R
committed
xfs: Introduce XFS_FSOP_GEOM_FLAGS_NREXT64
XFS_FSOP_GEOM_FLAGS_NREXT64 indicates that the current filesystem instance supports 64-bit per-inode extent counters. Reviewed-by: Darrick J. Wong <djwong@kernel.org> Reviewed-by: Dave Chinner <dchinner@redhat.com> Signed-off-by: Chandan Babu R <chandan.babu@oracle.com>
1 parent 919819f commit 7c05aa9

2 files changed

Lines changed: 3 additions & 0 deletions

File tree

fs/xfs/libxfs/xfs_fs.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -236,6 +236,7 @@ typedef struct xfs_fsop_resblks {
236236
#define XFS_FSOP_GEOM_FLAGS_REFLINK (1 << 20) /* files can share blocks */
237237
#define XFS_FSOP_GEOM_FLAGS_BIGTIME (1 << 21) /* 64-bit nsec timestamps */
238238
#define XFS_FSOP_GEOM_FLAGS_INOBTCNT (1 << 22) /* inobt btree counter */
239+
#define XFS_FSOP_GEOM_FLAGS_NREXT64 (1 << 23) /* large extent counters */
239240

240241
/*
241242
* Minimum and maximum sizes need for growth checks.

fs/xfs/libxfs/xfs_sb.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1138,6 +1138,8 @@ xfs_fs_geometry(
11381138
} else {
11391139
geo->logsectsize = BBSIZE;
11401140
}
1141+
if (xfs_has_large_extent_counts(mp))
1142+
geo->flags |= XFS_FSOP_GEOM_FLAGS_NREXT64;
11411143
geo->rtsectsize = sbp->sb_blocksize;
11421144
geo->dirblocksize = xfs_dir2_dirblock_bytes(sbp);
11431145

0 commit comments

Comments
 (0)