summaryrefslogtreecommitdiff
path: root/samples/livepatch
diff options
context:
space:
mode:
authorOmar Sandoval <osandov@fb.com>2019-08-16 00:04:02 +0300
committerDavid Sterba <dsterba@suse.com>2019-09-09 15:59:17 +0300
commitc09767a8960ca0500fb636bf73686723337debf4 (patch)
tree7632ca4af900175285253b2f7b45057d8fe81738 /samples/livepatch
parentc82f823c9b006c31059341af41da9f8b2e3e64d9 (diff)
downloadlinux-c09767a8960ca0500fb636bf73686723337debf4.tar.xz
btrfs: use correct count in btrfs_file_write_iter()
generic_write_checks() may modify iov_iter_count(), so we must get the count after the call, not before. Using the wrong one has a couple of consequences: 1. We check a longer range in check_can_nocow() for nowait than we're actually writing. 2. We create extra hole extent maps in btrfs_cont_expand(). As far as I can tell, this is harmless, but I might be missing something. These issues are pretty minor, but let's fix it before something more important trips on it. Fixes: edf064e7c6fe ("btrfs: nowait aio support") Reviewed-by: Josef Bacik <josef@toxicpanda.com> Signed-off-by: Omar Sandoval <osandov@fb.com> Reviewed-by: David Sterba <dsterba@suse.com> Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'samples/livepatch')
0 files changed, 0 insertions, 0 deletions