diff options
author | Kent Overstreet <kent.overstreet@gmail.com> | 2021-06-02 23:31:42 -0400 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@gmail.com> | 2021-06-03 18:48:42 -0400 |
commit | 2ed27743b67db38897f4286f142dbd1f5013c72a (patch) | |
tree | 6b548a5cbf3fd5e703ee87ca142b068f239bbffb /fs/bcachefs/inode.c | |
parent | ea3d0138013bff3019021614ed1a50cde2d5a83f (diff) |
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.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/bcachefs/inode.c b/fs/bcachefs/inode.c index f77b57490341..17d8eb5223cd 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 - |