summaryrefslogtreecommitdiff
path: root/scripts/Makefile.thinlto
diff options
context:
space:
mode:
authorMateusz Guzik <mjguzik@gmail.com>2026-04-21 21:25:38 +0300
committerChristian Brauner <brauner@kernel.org>2026-05-12 00:12:29 +0300
commitc678577e8896829f9da08635d6075dddefbaf684 (patch)
tree1b1ea799a4529c07e5046b69fbc988666c7c5d51 /scripts/Makefile.thinlto
parentac8bcfc07d0ba68721a4ff750e7df12d203ae6ac (diff)
downloadlinux-c678577e8896829f9da08635d6075dddefbaf684.tar.xz
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 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions