summaryrefslogtreecommitdiff
path: root/rust/kernel/alloc/kvec/errors.rs
diff options
context:
space:
mode:
authorMateusz Guzik <mjguzik@gmail.com>2026-04-21 20:25:38 +0200
committerChristian Brauner <brauner@kernel.org>2026-05-11 23:12:29 +0200
commitc678577e8896829f9da08635d6075dddefbaf684 (patch)
tree1b1ea799a4529c07e5046b69fbc988666c7c5d51 /rust/kernel/alloc/kvec/errors.rs
parentac8bcfc07d0ba68721a4ff750e7df12d203ae6ac (diff)
fs: allow lockless ->i_count bumps as long as it does not transition 0->1
With this change only 0->1 and 1->0 transitions need the lock. I verified all places which look at the refcount either only care about it staying 0 (and have the lock enforce it) or don't hold the inode lock to begin with (making the above change irrelevant to their correcness or lack thereof). I also confirmed nfs and btrfs like to call into these a lot and now avoid the lock in the common case, shaving off some atomics. Signed-off-by: Mateusz Guzik <mjguzik@gmail.com> Link: https://patch.msgid.link/20260421182538.1215894-4-mjguzik@gmail.com Reviewed-by: Jan Kara <jack@suse.cz> Signed-off-by: Christian Brauner <brauner@kernel.org>
Diffstat (limited to 'rust/kernel/alloc/kvec/errors.rs')
0 files changed, 0 insertions, 0 deletions