diff options
author | Christoph Hellwig <hch@lst.de> | 2024-02-22 12:39:44 -0800 |
---|---|---|
committer | Darrick J. Wong <djwong@kernel.org> | 2024-02-22 12:39:44 -0800 |
commit | 802f91f7b1d535ac975e2d696bf5b5dea82816e7 (patch) | |
tree | 7685f1017c5f7af0d48074e17fea83e31fa136dc /fs/gfs2/glock.c | |
parent | 42e357c806c8c0ffb9c5c2faa4ad034bfe950d77 (diff) | |
download | linux-stable-802f91f7b1d535ac975e2d696bf5b5dea82816e7.tar.gz linux-stable-802f91f7b1d535ac975e2d696bf5b5dea82816e7.tar.bz2 linux-stable-802f91f7b1d535ac975e2d696bf5b5dea82816e7.zip |
xfs: fold xfs_bmbt_init_common into xfs_bmbt_init_cursor
Make the levels initialization in xfs_bmbt_init_cursor conditional
and merge the two helpers.
This requires the fakeroot case to now pass a -1 whichfork directly
into xfs_bmbt_init_cursor, and some special casing for that, but
at least this scheme to deal with the fake btree root is handled and
documented in once place now.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Darrick J. Wong <djwong@kernel.org>
[djwong: tidy up a multline ternary]
Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Diffstat (limited to 'fs/gfs2/glock.c')
0 files changed, 0 insertions, 0 deletions