diff options
| author | Uros Bizjak <[email protected]> | 2024-10-07 08:52:37 +0000 |
|---|---|---|
| committer | Christian Brauner <[email protected]> | 2024-10-22 09:16:57 +0000 |
| commit | 0cb9c994e71c15555cf8c3d12fda10fa8f5dcdea (patch) | |
| tree | db68948faf59f9da59aa0848c60722312ff82af3 /rust/helpers/security.c | |
| parent | fs: Reorganize kerneldoc parameter names (diff) | |
| download | kernel-0cb9c994e71c15555cf8c3d12fda10fa8f5dcdea.tar.gz kernel-0cb9c994e71c15555cf8c3d12fda10fa8f5dcdea.zip | |
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 <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Cc: Alexander Viro <[email protected]>
Cc: Christian Brauner <[email protected]>
Cc: Jan Kara <[email protected]>
Signed-off-by: Christian Brauner <[email protected]>
Diffstat (limited to 'rust/helpers/security.c')
0 files changed, 0 insertions, 0 deletions
