]> www.infradead.org Git - users/hch/xfsprogs.git/commit
xfs: move the per-fork nextents fields into struct xfs_ifork
authorChristoph Hellwig <hch@lst.de>
Thu, 9 Jul 2020 19:21:56 +0000 (21:21 +0200)
committerChristoph Hellwig <hch@lst.de>
Fri, 10 Jul 2020 06:40:17 +0000 (08:40 +0200)
commitbf583df252ec3dbd58cb38db22017c19d1a6a751
treefd94fae8896e92292ebf26db9f13288596a43713
parent82766c9825afadb5996a4e93f8fee99b880d8e0d
xfs: move the per-fork nextents fields into struct xfs_ifork

Source kernel commit: daf83964a3681cf1f1f255ad6095c0b60cba7dca

There are there are three extents counters per inode, one for each of
the forks.  Two are in the legacy icdinode and one is directly in
struct xfs_inode.  Switch to a single counter in the xfs_ifork structure
where it uses up padding at the end of the structure.  This simplifies
various bits of code that just wants the number of extents counter and
can now directly dereference it.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Chandan Babu R <chandanrlinux@gmail.com>
Reviewed-by: Brian Foster <bfoster@redhat.com>
Reviewed-by: Darrick J. Wong <darrick.wong@oracle.com>
Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
libxfs/util.c
libxfs/xfs_attr.c
libxfs/xfs_attr_leaf.c
libxfs/xfs_bmap.c
libxfs/xfs_dir2_block.c
libxfs/xfs_inode_buf.c
libxfs/xfs_inode_buf.h
libxfs/xfs_inode_fork.c
libxfs/xfs_inode_fork.h