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)
commit354877befa852e9b62ddc92a6cc017210e982d46
tree2b10b2f8bd487eae38f0d8a82d5ba7bbd6548136
parent7816030eb48e00a36ecdc23d484b960922feee67
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