]> www.infradead.org Git - users/jedix/linux-maple.git/commit
bcachefs: kill INODE_LOCK, use lock_two_nondirectories()
authorKent Overstreet <kent.overstreet@linux.dev>
Thu, 16 Nov 2023 20:46:50 +0000 (15:46 -0500)
committerKent Overstreet <kent.overstreet@linux.dev>
Mon, 1 Jan 2024 16:47:36 +0000 (11:47 -0500)
commitecf8a74dab1db2d3d208ad08e4104ebdc734911b
treeae740523b024ade988b9e6452ab35c85d1bb383c
parent8b58623f5b911feacee2e55b6e378b2e0858e677
bcachefs: kill INODE_LOCK, use lock_two_nondirectories()

In an ideal world, we'd have a common helper that could be used for
sorting a list of inodes into the correct lock order, and then the same
lock ordering could be used for any type of inode lock, not just
i_rwsem.

But the lock ordering rules for i_rwsem are a bit complicated, so -
abandon that dream for now and do it the more standard way.

Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
fs/bcachefs/fs-io.c
fs/bcachefs/fs.h