summaryrefslogtreecommitdiff
path: root/drivers/phy/axiado/git@git.tavy.me:linux.git
diff options
context:
space:
mode:
authorChristian Brauner <brauner@kernel.org>2026-07-10 11:33:18 +0200
committerChristian Brauner <brauner@kernel.org>2026-08-03 10:08:38 +0200
commitb0e42f0dbe61fb92bfa1f76453b4793a5f7dacd3 (patch)
tree901d28e862553acd79b85cbe1799e690802edf9e /drivers/phy/axiado/git@git.tavy.me:linux.git
parent9eeca53dacbe1eee15c91c3674bfa9c0c113afe7 (diff)
binfmt_misc: factor out the entry removal
Both write handlers open-code the same removal dance - grab the root inode lock, unlink, unlock - each carrying a verbatim copy of the same eleven-line locking comment, and bm_entry_write() reuses its inode variable for the root inode halfway through to pull it off. Move the dance into bm_remove_entry() and bm_remove_all_entries() and the locking rules into the kernel-doc of remove_binfmt_handler() which both helpers wrap. No functional change. Link: https://patch.msgid.link/20260710-work-binfmt_misc-locking-v3-17-a162f7cb58d6@kernel.org Reviewed-by: Jori Koolstra <jkoolstra@xs4all.nl> Signed-off-by: Christian Brauner (Amutable) <brauner@kernel.org>
Diffstat (limited to 'drivers/phy/axiado/git@git.tavy.me:linux.git')
0 files changed, 0 insertions, 0 deletions