Re: [PATCH] fs: predict not reaching the limit in alloc_empty_file()

From: Christian Brauner
Date: Wed Mar 19 2025 - 09:10:25 EST


On Wed, 19 Mar 2025 13:49:23 +0100, Mateusz Guzik wrote:
> Eliminates a jump over a call to capable() in the common case.
>
> By default the limit is not even set, in which case the check can't even
> fail to begin with. It remains unset at least on Debian and Ubuntu.
> For this cases this can probably become a static branch instead.
>
> In the meantime tidy it up.
>
> [...]

Applied to the vfs-6.15.misc branch of the vfs/vfs.git tree.
Patches in the vfs-6.15.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-6.15.misc

[1/1] fs: predict not reaching the limit in alloc_empty_file()
https://git.kernel.org/vfs/vfs/c/9ae7e5a1cd17