summaryrefslogtreecommitdiff
path: root/fs/bcachefs/inode.c
diff options
context:
space:
mode:
authorKent Overstreet <kent.overstreet@gmail.com>2021-06-02 23:31:42 -0400
committerKent Overstreet <kent.overstreet@linux.dev>2023-10-22 17:09:05 -0400
commitf7beb4ca04521f26d9ac2e9bee1bfbf99c55fabb (patch)
tree8fff5f1588dd17eee046ef123b1e43144258fae1 /fs/bcachefs/inode.c
parentbc3f8b25f3a4403d6e8c9067e6f0fc9cf23be6fe (diff)
downloadlwn-f7beb4ca04521f26d9ac2e9bee1bfbf99c55fabb.tar.gz
lwn-f7beb4ca04521f26d9ac2e9bee1bfbf99c55fabb.zip
bcachefs: Preallocate transaction mem
This helps avoid transaction restarts. Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
Diffstat (limited to 'fs/bcachefs/inode.c')
-rw-r--r--fs/bcachefs/inode.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/bcachefs/inode.c b/fs/bcachefs/inode.c
index 18b568887144..c65bfee1897e 100644
--- a/fs/bcachefs/inode.c
+++ b/fs/bcachefs/inode.c
@@ -579,7 +579,7 @@ int bch2_inode_rm(struct bch_fs *c, u64 inode_nr, bool cached)
struct bkey_s_c k;
int ret;
- bch2_trans_init(&trans, c, 0, 0);
+ bch2_trans_init(&trans, c, 0, 1024);
/*
* If this was a directory, there shouldn't be any real dirents left -