diff options
author | Kent Overstreet <kent.overstreet@gmail.com> | 2021-11-08 12:30:47 -0500 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@linux.dev> | 2023-10-22 17:09:51 -0400 |
commit | b08b492ed3068b80122bb58476baeacad2d0fa4c (patch) | |
tree | bf2985ed75847981644abef941c7841b8366a4c1 /fs/bcachefs/data_update.c | |
parent | 8dd69d9f64e92529037550c97a07b1b78296e92c (diff) | |
download | linux-b08b492ed3068b80122bb58476baeacad2d0fa4c.tar.gz linux-b08b492ed3068b80122bb58476baeacad2d0fa4c.tar.bz2 linux-b08b492ed3068b80122bb58476baeacad2d0fa4c.zip |
bcachefs: Drop old maybe_extending optimization
The extend update path had an optimization to avoid updating the inode
if we knew we were definitely not extending the file. But now that we're
updating inodes on every extent update - for fsync - that code can be
deleted.
Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
Diffstat (limited to 'fs/bcachefs/data_update.c')
-rw-r--r-- | fs/bcachefs/data_update.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/fs/bcachefs/data_update.c b/fs/bcachefs/data_update.c index d2b1296c4c49..700936ac44d9 100644 --- a/fs/bcachefs/data_update.c +++ b/fs/bcachefs/data_update.c @@ -126,7 +126,7 @@ int bch2_data_update_index_update(struct bch_write_op *op) struct extent_ptr_decoded p; struct bpos next_pos; bool did_work = false; - bool extending = false, should_check_enospc; + bool should_check_enospc; s64 i_sectors_delta = 0, disk_sectors_delta = 0; unsigned i; @@ -212,7 +212,6 @@ int bch2_data_update_index_update(struct bch_write_op *op) bch2_extent_normalize(c, bkey_i_to_s(insert)); ret = bch2_sum_sector_overwrites(&trans, &iter, insert, - &extending, &should_check_enospc, &i_sectors_delta, &disk_sectors_delta); |