[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20260112-oberkante-zugverbindung-acc5585e7e60@brauner>
Date: Mon, 12 Jan 2026 11:01:33 +0100
From: Christian Brauner <brauner@...nel.org>
To: Mateusz Guzik <mjguzik@...il.com>,
Breno Leitao <leitao@...ian.org>
Cc: Christian Brauner <brauner@...nel.org>,
linux-kernel@...r.kernel.org,
viro@...iv.linux.org.uk,
rostedt@...dmis.org,
linux-fsdevel@...r.kernel.org,
kernel-team@...a.com
Subject: Re: [PATCH] device_cgroup: remove branch hint after code refactor
On Wed, 07 Jan 2026 06:06:36 -0800, Breno Leitao wrote:
> commit 4ef4ac360101 ("device_cgroup: avoid access to ->i_rdev in the
> common case in devcgroup_inode_permission()") reordered the checks in
> devcgroup_inode_permission() to check the inode mode before checking
> i_rdev, for better cache behavior.
>
> However, the likely() annotation on the i_rdev check was not updated
> to reflect the new code flow. Originally, when i_rdev was checked
> first, likely(!inode->i_rdev) made sense because most inodes were(?)
> regular files/directories, thus i_rdev == 0.
>
> [...]
Applied to the vfs-7.0.misc branch of the vfs/vfs.git tree.
Patches in the vfs-7.0.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.0.misc
[1/1] device_cgroup: remove branch hint after code refactor
https://git.kernel.org/vfs/vfs/c/2a255acce2e5
Powered by blists - more mailing lists