summaryrefslogtreecommitdiff
path: root/rust/kernel/workqueue.rs
diff options
context:
space:
mode:
authorUros Bizjak <ubizjak@gmail.com>2024-10-07 10:52:37 +0200
committerChristian Brauner <brauner@kernel.org>2024-10-22 11:16:57 +0200
commit0cb9c994e71c15555cf8c3d12fda10fa8f5dcdea (patch)
treedb68948faf59f9da59aa0848c60722312ff82af3 /rust/kernel/workqueue.rs
parent1e756248be2aa03188a9700da5feb3d3f3c91eed (diff)
namespace: Use atomic64_inc_return() in alloc_mnt_ns()
Use atomic64_inc_return(&ref) instead of atomic64_add_return(1, &ref) to use optimized implementation and ease register pressure around the primitive for targets that implement optimized variant. Signed-off-by: Uros Bizjak <ubizjak@gmail.com> Link: https://lore.kernel.org/r/20241007085303.48312-1-ubizjak@gmail.com Cc: Alexander Viro <viro@zeniv.linux.org.uk> Cc: Christian Brauner <brauner@kernel.org> Cc: Jan Kara <jack@suse.cz> Signed-off-by: Christian Brauner <brauner@kernel.org>
Diffstat (limited to 'rust/kernel/workqueue.rs')
0 files changed, 0 insertions, 0 deletions