Re: [PATCH v5 1/2] readdir: Introduce dirent_size()
From: Christian Brauner
Date: Tue Mar 24 2026 - 11:21:56 EST
On Tue, 24 Mar 2026 12:41:15 +0100, Christophe Leroy (CS GROUP) wrote:
> In several places in readdir.c there are calculations of the total size
> of a dirent, which contains a few fixed fields plus a name field with
> variable size. To add fun every dirent is of a slightly different type:
> - struct old_linux_dirent
> - struct linux_dirent
> - struct linux_dirent64
> - struct compat_old_linux_dirent
> - struct compat_linux_dirent
>
> [...]
VFS CI: https://github.com/linux-fsdevel/vfs/actions/runs/23491121925
x86_64 (gcc, debian, ovl-fstests) pass
x86_64 (gcc, debian, selftests) pass
x86_64 (gcc, debian, xfstests) pass
x86_64 (gcc, fedora, ovl-fstests) pass
x86_64 (gcc, fedora, selftests) pass
x86_64 (gcc, fedora, xfstests) pass
No meaningful VFS AI review comments.
This looks pretty clean to me overall.
---
Applied to the vfs-7.1.misc branch of the vfs/vfs.git tree.
Patches in the vfs-7.1.misc branch should appear in linux-next soon.
Please report any outstanding bugs that were missed during review in a
new review to the original patch series allowing us to drop it.
It's encouraged to provide Acked-bys and Reviewed-bys even though the
patch has now been applied. If possible patch trailers will be updated.
Note that commit hashes shown below are subject to change due to rebase,
trailer updates or similar. If in doubt, please check the listed branch.
tree: https://git.kernel.org/pub/scm/linux/kernel/git/vfs/vfs.git
branch: vfs-7.1.misc
[1/2] readdir: Introduce dirent_size()
https://git.kernel.org/vfs/vfs/c/4bf798e027d3
[2/2] fs: Replace user_access_{begin/end} by scoped user access
https://git.kernel.org/vfs/vfs/c/b98f7363f72f