linux/fs/bcachefs
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:20 -04:00
2023-10-22 17:08:25 -04:00
2023-10-22 17:08:21 -04:00
2023-10-22 17:08:21 -04:00
2023-10-22 17:08:23 -04:00
2023-10-22 17:08:11 -04:00
2023-10-22 17:08:11 -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:28 -04:00
2023-10-22 17:08:28 -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:20 -04:00
2023-10-22 17:08:14 -04:00
2023-10-22 17:08:28 -04:00
2023-10-22 17:08:25 -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:24 -04:00
2023-10-22 17:08:25 -04:00
2023-10-22 17:08:28 -04:00