aboutsummaryrefslogtreecommitdiff
path: root/lib/memory-notifier-error-inject.c
diff options
context:
space:
mode:
authorOmar Sandoval <[email protected]>2019-11-07 15:19:16 -0800
committerDavid Sterba <[email protected]>2022-03-14 13:13:51 +0100
commitd9496e8aba491e6c4c1c1c3549a93839ffd9b5a4 (patch)
tree6d4da497a1e24e12e5c6a507da99ba329405bf52 /lib/memory-notifier-error-inject.c
parent8dd9872d2e261196069ab03d5dc5e6ec9bc93f4b (diff)
btrfs: optionally extend i_size in cow_file_range_inline()
Currently, an inline extent is always created after i_size is extended from btrfs_dirty_pages(). However, for encoded writes, we only want to update i_size after we successfully created the inline extent. Add an update_i_size parameter to cow_file_range_inline() and insert_inline_extent() and pass in the size of the extent rather than determining it from i_size. Reviewed-by: Josef Bacik <[email protected]> Signed-off-by: Omar Sandoval <[email protected]> Reviewed-by: David Sterba <[email protected]> [ reformat comment ] Signed-off-by: David Sterba <[email protected]>
Diffstat (limited to 'lib/memory-notifier-error-inject.c')
0 files changed, 0 insertions, 0 deletions