]> git.baikalelectronics.ru Git - kernel.git/commit
Btrfs: fix off-by-one in cow_file_range_inline()
authorWang Shilong <wangsl.fnst@cn.fujitsu.com>
Thu, 17 Jul 2014 03:44:11 +0000 (11:44 +0800)
committerChris Mason <clm@fb.com>
Wed, 17 Sep 2014 20:37:39 +0000 (13:37 -0700)
commit2a04168c93450a1e950a2122ed3b6e72a0f3fee2
tree2b10b2f8bd487eae38f0d8a82d5ba7bbd6548136
parent7beb5da6649c7f091273ad95efa480e5bb9ff4be
Btrfs: fix off-by-one in cow_file_range_inline()

Btrfs could still inline file data if its size is same as
page size, so don't skip max value here.

Signed-off-by: Wang Shilong <wangsl.fnst@cn.fujitsu.com>
Reviewed-by: David Sterba <dsterba@suse.cz>
Signed-off-by: Chris Mason <clm@fb.com>
fs/btrfs/inode.c