summaryrefslogtreecommitdiff
path: root/fs/bcachefs/btree_cache.c
diff options
context:
space:
mode:
authorKent Overstreet <kent.overstreet@gmail.com>2022-02-26 20:25:15 -0500
committerKent Overstreet <kent.overstreet@linux.dev>2023-10-22 17:09:25 -0400
commit55334d78974fa44735bb59229eedde0bcc300ed6 (patch)
tree0b2a2681dbb2eb565a9a4f718048c7852f709f19 /fs/bcachefs/btree_cache.c
parent2975cd4701b71d5b28753861a9388bf67db26231 (diff)
downloadlwn-55334d78974fa44735bb59229eedde0bcc300ed6.tar.gz
lwn-55334d78974fa44735bb59229eedde0bcc300ed6.zip
bcachefs: Kill BCH_FS_HOLD_BTREE_WRITES
This was just dead code. Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
Diffstat (limited to 'fs/bcachefs/btree_cache.c')
-rw-r--r--fs/bcachefs/btree_cache.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/fs/bcachefs/btree_cache.c b/fs/bcachefs/btree_cache.c
index dbf3b084478f..a8d5c06541d0 100644
--- a/fs/bcachefs/btree_cache.c
+++ b/fs/bcachefs/btree_cache.c
@@ -223,8 +223,7 @@ wait_on_io:
goto out_unlock;
if (btree_node_dirty(b)) {
- if (!flush ||
- test_bit(BCH_FS_HOLD_BTREE_WRITES, &c->flags))
+ if (!flush)
goto out_unlock;
/*
* Using the underscore version because we don't want to compact