diff options
author | Chandan Babu R <chandan.babu@oracle.com> | 2022-06-22 14:28:52 -0500 |
---|---|---|
committer | Eric Sandeen <sandeen@sandeen.net> | 2022-06-22 14:28:52 -0500 |
commit | 54a1aecb972e3a75fc213a1ac666c4769109436a (patch) | |
tree | 3b8d47b9dd84383dce9f7732823726b6dc189642 | |
parent | d7eb8fbde61e3a5727e973ed362890f36e856e68 (diff) | |
download | xfsprogs-dev-54a1aecb972e3a75fc213a1ac666c4769109436a.tar.gz |
xfs: Introduce XFS_FSOP_GEOM_FLAGS_NREXT64
Source kernel commit: 7c05aa9d9d2014937c8dacbd514bca2592b11f48
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>
Signed-off-by: Eric Sandeen <sandeen@sandeen.net>
-rw-r--r-- | libxfs/xfs_fs.h | 1 | ||||
-rw-r--r-- | libxfs/xfs_sb.c | 2 |
2 files changed, 3 insertions, 0 deletions
diff --git a/libxfs/xfs_fs.h b/libxfs/xfs_fs.h index 505533c43a..1f7238db35 100644 --- a/libxfs/xfs_fs.h +++ b/libxfs/xfs_fs.h @@ -236,6 +236,7 @@ typedef struct xfs_fsop_resblks { #define XFS_FSOP_GEOM_FLAGS_REFLINK (1 << 20) /* files can share blocks */ #define XFS_FSOP_GEOM_FLAGS_BIGTIME (1 << 21) /* 64-bit nsec timestamps */ #define XFS_FSOP_GEOM_FLAGS_INOBTCNT (1 << 22) /* inobt btree counter */ +#define XFS_FSOP_GEOM_FLAGS_NREXT64 (1 << 23) /* large extent counters */ /* * Minimum and maximum sizes need for growth checks. diff --git a/libxfs/xfs_sb.c b/libxfs/xfs_sb.c index 7ab13e07ee..8781cd806d 100644 --- a/libxfs/xfs_sb.c +++ b/libxfs/xfs_sb.c @@ -1136,6 +1136,8 @@ xfs_fs_geometry( } else { geo->logsectsize = BBSIZE; } + if (xfs_has_large_extent_counts(mp)) + geo->flags |= XFS_FSOP_GEOM_FLAGS_NREXT64; geo->rtsectsize = sbp->sb_blocksize; geo->dirblocksize = xfs_dir2_dirblock_bytes(sbp); |