Re: [PATCH] btrfs: use ASSERT to report logical error in cow_file_range()

2018-02-15 Thread Nikolay Borisov
On 15.02.2018 06:30, Anand Jain wrote: > Use ASSERT to report logical error in cow_file_range(), also move > it a bit closer to when the num_bytes is derived. > > Signed-off-by: Anand Jain > --- > fs/btrfs/inode.c | 5 ++--- > 1 file changed, 2 insertions(+), 3

[PATCH] btrfs: use ASSERT to report logical error in cow_file_range()

2018-02-14 Thread Anand Jain
Use ASSERT to report logical error in cow_file_range(), also move it a bit closer to when the num_bytes is derived. Signed-off-by: Anand Jain --- fs/btrfs/inode.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/fs/btrfs/inode.c b/fs/btrfs/inode.c