]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commit
xfs: add a block to inode count converter
authorDarrick J. Wong <darrick.wong@oracle.com>
Wed, 27 Feb 2019 23:13:44 +0000 (17:13 -0600)
committerEric Sandeen <sandeen@redhat.com>
Wed, 27 Feb 2019 23:13:44 +0000 (17:13 -0600)
commit7516da71dcb2efc0b37b3f865ef74961917cfee2
tree701269ca54cd326863f05d3ed06ba7b2e0b16b1b
parent007347e3b8a01f82175bf9e3fd27eb9cea4dc444
xfs: add a block to inode count converter

Source kernel commit: 43004b2a8da2652b5ec526269a8acfba7d3d219c

Add new helpers to convert units of fs blocks into inodes, and AG blocks
into AG inodes, respectively.  Convert all the open-coded conversions
and XFS_OFFBNO_TO_AGINO(, , 0) calls to use them, as appropriate.  The
OFFBNO_TO_AGINO macro is retained for xfs_repair.

Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Reviewed-by: Brian Foster <bfoster@redhat.com>
Signed-off-by: Eric Sandeen <sandeen@sandeen.net>
db/check.c
db/convert.c
db/frag.c
db/io.c
db/metadump.c
libxfs/init.c
libxfs/xfs_format.h
libxfs/xfs_ialloc.c
libxfs/xfs_types.c
repair/dino_chunks.c
repair/xfs_repair.c