summaryrefslogtreecommitdiff
path: root/fs/aio.c
diff options
context:
space:
mode:
authorKent Overstreet <kent.overstreet@gmail.com>2019-10-09 09:44:36 -0400
committerKent Overstreet <kent.overstreet@linux.dev>2023-10-22 17:08:29 -0400
commitdaf3fe502a4c20be99579097cc351e91d27fc789 (patch)
treee96a6c0e8d925fd7aab4d225791400e6c39f93f3 /fs/aio.c
parent14989d547ee308033e080792239e640e076a4460 (diff)
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>
Diffstat (limited to 'fs/aio.c')
0 files changed, 0 insertions, 0 deletions