summaryrefslogtreecommitdiff
path: root/scripts/gdb/linux/mm.py
diff options
context:
space:
mode:
authorUros Bizjak <ubizjak@gmail.com>2025-08-11 15:23:03 +0200
committerChristian Brauner <brauner@kernel.org>2025-08-25 14:09:25 +0200
commitec6f613ef376410753173f8236bad5f07a86503a (patch)
treee387f1eecaa1d97ace96f25ef003267b05dfc4f3 /scripts/gdb/linux/mm.py
parent14498ca7e0f18cd73ab0010cbfbf9413a9f0a96f (diff)
fs: Use try_cmpxchg() in sb_init_done_wq()
Use !try_cmpxchg() instead of cmpxchg(*ptr, old, new) != old. The x86 CMPXCHG instruction returns success in the ZF flag, so this change saves a compare after CMPXCHG. No functional change intended. Signed-off-by: Uros Bizjak <ubizjak@gmail.com> Link: https://lore.kernel.org/20250811132326.620521-1-ubizjak@gmail.com Reviewed-by: Jan Kara <jack@suse.cz> 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 'scripts/gdb/linux/mm.py')
0 files changed, 0 insertions, 0 deletions