fs: touch up predicts in inode_permission()
authorMateusz Guzik <mjguzik@gmail.com>
Wed, 16 Apr 2025 22:16:25 +0000 (00:16 +0200)
committerChristian Brauner <brauner@kernel.org>
Mon, 21 Apr 2025 08:27:59 +0000 (10:27 +0200)
commit875ccc0ddceead3998d9ffd1e68f1290efa1f9a9
treeffab7d2769b50a4d51c326744b1b767f194fc805
parent79beea2db0431536d79fc5d321225fb42f955466
fs: touch up predicts in inode_permission()

The routine only encounters errors when people try to access things they
can't, which is a negligible amount of calls.

The only questionable bit might be the pre-existing predict around
MAY_WRITE. Currently the routine is predominantly used for MAY_EXEC, so
this makes some sense.

I verified this straightens out the asm.

Signed-off-by: Mateusz Guzik <mjguzik@gmail.com>
Link: https://lore.kernel.org/20250416221626.2710239-2-mjguzik@gmail.com
Signed-off-by: Christian Brauner <brauner@kernel.org>
fs/namei.c