diff options
| author | Javier Tia <javier@peridio.com> | 2026-08-10 17:06:16 -0600 |
|---|---|---|
| committer | Carlos Maiolino <cem@kernel.org> | 2026-09-07 07:50:34 +0200 |
| commit | 6c0fc3cb4e879927b338b4fcb6de6a25c0a67608 (patch) | |
| tree | 168bc61a23d2a1b8e9903733f1ea12e06ab20e1b /scripts | |
| parent | d058f24b163a8d63866ac6bbe5f06b41aabe97d7 (diff) | |
xfs: correct the parent pointer space reservation comment
The comment on xfs_parent_calc_space_res() claims parent pointers are
"always the first attr in an attr tree". They are not: a parent pointer
is recorded per dirent, so by the Nth hardlink the attr fork is already
in leaf or node format. The reservation is still correct, because
XFS_DAENTER_SPACE_RES() covers a split at every level of a maximum-depth
attr dabtree whatever format the fork is in, but anyone auditing a
shortfall here is led by the comment to look for a bug that is not
there.
Rewrite the comment to state what actually bounds the result, and record
why the double split allowance and the extent-add term differ from
xfs_attr_calc_size().
Signed-off-by: Javier Tia <floss@jetm.me>
Reviewed-by: Darrick J. Wong <djwong@kernel.org>
Signed-off-by: Carlos Maiolino <cem@kernel.org>
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions
