]> git.baikalelectronics.ru Git - kernel.git/commit
xfs: Enable bulkstat ioctl to support 64-bit per-inode extent counters
authorChandan Babu R <chandan.babu@oracle.com>
Wed, 9 Mar 2022 12:58:37 +0000 (12:58 +0000)
committerChandan Babu R <chandan.babu@oracle.com>
Wed, 13 Apr 2022 07:02:45 +0000 (07:02 +0000)
commitd932e81fb19d65d01b05decda63f252e11d2bc43
treeab980fbbcd460bfb26e8e79ed49b99e5e3acc77d
parentb152cf946262942b1956e3ff36d35b5907f91d17
xfs: Enable bulkstat ioctl to support 64-bit per-inode extent counters

The following changes are made to enable userspace to obtain 64-bit extent
counters,
1. Carve out a new 64-bit field xfs_bulkstat->bs_extents64 from
   xfs_bulkstat->bs_pad[] to hold 64-bit extent counter.
2. Define the new flag XFS_BULK_IREQ_BULKSTAT for userspace to indicate that
   it is capable of receiving 64-bit extent counters.

Reviewed-by: Dave Chinner <dchinner@redhat.com>
Reviewed-by: Darrick J. Wong <djwong@kernel.org>
Suggested-by: Darrick J. Wong <djwong@kernel.org>
Signed-off-by: Chandan Babu R <chandan.babu@oracle.com>
fs/xfs/libxfs/xfs_fs.h
fs/xfs/xfs_ioctl.c
fs/xfs/xfs_itable.c
fs/xfs/xfs_itable.h