]> www.infradead.org Git - users/hch/xfs.git/commit
xfs: open code the bno translation in xfs_daddr_to_rtb
authorChristoph Hellwig <hch@lst.de>
Wed, 2 Oct 2024 06:55:01 +0000 (08:55 +0200)
committerChristoph Hellwig <hch@lst.de>
Wed, 2 Oct 2024 07:04:25 +0000 (09:04 +0200)
commitc25d94d75e31b9b09ae00ab33933dfa237f250d7
tree8a9f9bdb7ac3fa108227df4802f84a90e69c95fa
parent85b245f3e1edc69a3835a22315a5d27417062599
xfs: open code the bno translation in xfs_daddr_to_rtb

__xfs_rgbno_to_rtb can't handle 64-bit "rgbno" components.  Open code
the entire translation logic in xfs_daddr_to_rtb to make it 64-bit
safe and to clearly document that this helper is special.

Signed-off-by: Christoph Hellwig <hch@lst.de>
fs/xfs/libxfs/xfs_rtgroup.h