]> www.infradead.org Git - users/jedix/linux-maple.git/commit
cgroup: avoid pointless cred reference count bump
authorChristian Brauner <brauner@kernel.org>
Mon, 25 Nov 2024 14:10:20 +0000 (15:10 +0100)
committerChristian Brauner <brauner@kernel.org>
Mon, 2 Dec 2024 10:25:13 +0000 (11:25 +0100)
commit34ab26fb6b2a70ae6b22fc3880bc6d8b68579564
tree2d48534b005c17ee465800b8f27a1daffb29a11d
parent6256d2377ed8fef96087803051d8b9dba68d8904
cgroup: avoid pointless cred reference count bump

of->file->f_cred already holds a reference count that is stable during
the operation.

Link: https://lore.kernel.org/r/20241125-work-cred-v2-24-68b9d38bb5b2@kernel.org
Reviewed-by: Jeff Layton <jlayton@kernel.org>
Reviewed-by: Jens Axboe <axboe@kernel.dk>
Signed-off-by: Christian Brauner <brauner@kernel.org>
kernel/cgroup/cgroup.c