Kent Overstreet
daf3fe502a
bcachefs: Check if extending inode differently
...
In bch2_extent_update(), we have to update the inode if i_size is
changing (the file is being extend) or if i_sectors is changing, but we
want to avoid touching the inode if it's not necessary.
Change sum_sector_overwrites() to also check if there's already data
above where we're writing to - this means we're definitely not extending
the file.
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
2023-10-22 17:08:29 -04:00
..
2023-10-22 17:08:28 -04:00
2023-10-22 17:08:28 -04:00
2023-10-22 17:08:26 -04:00
2023-10-22 17:08:27 -04:00
2023-10-22 17:08:27 -04:00
2023-10-22 17:08:14 -04:00
2023-10-22 17:08:29 -04:00
2023-10-22 17:08:13 -04:00
2023-10-22 17:08:26 -04:00
2023-10-22 17:08:27 -04:00
2023-10-22 17:08:27 -04:00
2023-10-22 17:08:25 -04:00
2023-10-22 17:08:12 -04:00
2023-10-22 17:08:20 -04:00
2023-10-22 17:08:25 -04:00
2023-10-22 17:08:25 -04:00
2023-10-22 17:08:25 -04:00
2023-10-22 17:08:27 -04:00
2023-10-22 17:08:22 -04:00
2023-10-22 17:08:29 -04:00
2023-10-22 17:08:21 -04:00
2023-10-22 17:08:23 -04:00
2023-10-22 17:08:21 -04:00
2023-10-22 17:08:29 -04:00
2023-10-22 17:08:28 -04:00
2023-10-22 17:08:27 -04:00
2023-10-22 17:08:28 -04:00
2023-10-22 17:08:25 -04:00
2023-10-22 17:08:21 -04:00
2023-10-22 17:08:28 -04:00
2023-10-22 17:08:28 -04:00
2023-10-22 17:08:26 -04:00
2023-10-22 17:08:29 -04:00
2023-10-22 17:08:29 -04:00
2023-10-22 17:08:21 -04:00
2023-10-22 17:08:23 -04:00
2023-10-22 17:08:23 -04:00
2023-10-22 17:08:10 -04:00
2023-10-22 17:08:23 -04:00
2023-10-22 17:08:23 -04:00
2023-10-22 17:08:29 -04:00
2023-10-22 17:08:28 -04:00
2023-10-22 17:08:11 -04:00
2023-10-22 17:08:11 -04:00
2023-10-22 17:08:15 -04:00
2023-10-22 17:08:29 -04:00
2023-10-22 17:08:20 -04:00
2023-10-22 17:08:26 -04:00
2023-10-22 17:08:29 -04:00
2023-10-22 17:08:29 -04:00
2023-10-22 17:08:29 -04:00
2023-10-22 17:08:14 -04:00
2023-10-22 17:08:16 -04:00
2023-10-22 17:08:28 -04:00
2023-10-22 17:08:28 -04:00
2023-10-22 17:08:29 -04:00
2023-10-22 17:08:29 -04:00
2023-10-22 17:08:28 -04:00
2023-10-22 17:08:07 -04:00
2023-10-22 17:08:28 -04:00
2023-10-22 17:08:28 -04:00
2023-10-22 17:08:28 -04:00
2023-10-22 17:08:21 -04:00
2023-10-22 17:08:28 -04:00
2023-10-22 17:08:28 -04:00
2023-10-22 17:08:24 -04:00
2023-10-22 17:08:28 -04:00
2023-10-22 17:08:25 -04:00
2023-10-22 17:08:23 -04:00
2023-10-22 17:08:20 -04:00
2023-10-22 17:08:17 -04:00
2023-10-22 17:08:17 -04:00
2023-10-22 17:08:22 -04:00
2023-10-22 17:08:20 -04:00
2023-10-22 17:08:20 -04:00
2023-10-22 17:08:21 -04:00
2023-10-22 17:08:20 -04:00
2023-10-22 17:08:14 -04:00
2023-10-22 17:08:28 -04:00
2023-10-22 17:08:28 -04:00
2023-10-22 17:08:18 -04:00
2023-10-22 17:08:28 -04:00
2023-10-22 17:08:25 -04:00
2023-10-22 17:08:24 -04:00
2023-10-22 17:08:14 -04:00
2023-10-22 17:08:28 -04:00
2023-10-22 17:08:13 -04:00
2023-10-22 17:08:28 -04:00
2023-10-22 17:08:14 -04:00
2023-10-22 17:08:26 -04:00
2023-10-22 17:08:28 -04:00
2023-10-22 17:08:24 -04:00
2023-10-22 17:08:29 -04:00
2023-10-22 17:08:25 -04:00
2023-10-22 17:08:13 -04:00
2023-10-22 17:08:29 -04:00
2023-10-22 17:08:21 -04:00
2023-10-22 17:08:28 -04:00
2023-10-22 17:08:18 -04:00
2023-10-22 17:08:29 -04:00
2023-10-22 17:08:18 -04:00
2023-10-22 17:08:26 -04:00
2023-10-22 17:08:21 -04:00
2023-10-22 17:08:22 -04:00
2023-10-22 17:08:28 -04:00
2023-10-22 17:08:22 -04:00
2023-10-22 17:08:23 -04:00
2023-10-22 17:08:23 -04:00
2023-10-22 17:08:23 -04:00
2023-10-22 17:08:12 -04:00