projects
/
linux-block.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5be6a27
)
bcachefs: Free move buffers as early as possible
author
Kent Overstreet
<kent.overstreet@linux.dev>
Sun, 5 Mar 2023 08:11:00 +0000
(
03:11
-0500)
committer
Kent Overstreet
<kent.overstreet@linux.dev>
Sun, 22 Oct 2023 21:09:56 +0000
(17:09 -0400)
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
fs/bcachefs/io.c
patch
|
blob
|
blame
|
history
diff --git
a/fs/bcachefs/io.c
b/fs/bcachefs/io.c
index a7e09772895e8f9e8d2200fe3383f6cd717ae871..393629e52d039fdb6bdfde9e070024b37554feb9 100644
(file)
--- a/
fs/bcachefs/io.c
+++ b/
fs/bcachefs/io.c
@@
-834,6
+834,10
@@
static void bch2_write_index(struct closure *cl)
struct write_point *wp = op->wp;
struct workqueue_struct *wq = index_update_wq(op);
+ if ((op->flags & BCH_WRITE_DONE) &&
+ (op->flags & BCH_WRITE_MOVE))
+ bch2_bio_free_pages_pool(op->c, &op->wbio.bio);
+
barrier();
/*