Re: [PATCH] fstests: btrfs: Check if btrfs will create inline-then-regular file extents

2017-04-05 Thread Qu Wenruo
At 04/06/2017 12:25 AM, Filipe Manana wrote: On Wed, Apr 5, 2017 at 5:00 PM, Filipe Manana wrote: On Wed, Apr 5, 2017 at 3:14 AM, Qu Wenruo wrote: Btrfs allows inline file extent if and only if 1) It's at offset 0 2) It's smaller than min(max_inline, page_size) Although we don't specify

Re: [PATCH] fstests: btrfs: Check if btrfs will create inline-then-regular file extents

2017-04-05 Thread Qu Wenruo
At 04/06/2017 12:00 AM, Filipe Manana wrote: On Wed, Apr 5, 2017 at 3:14 AM, Qu Wenruo wrote: Btrfs allows inline file extent if and only if 1) It's at offset 0 2) It's smaller than min(max_inline, page_size) Although we don't specify if the size is before compression or after compressi

Re: [PATCH] fstests: btrfs: Check if btrfs will create inline-then-regular file extents

2017-04-05 Thread Filipe Manana
On Wed, Apr 5, 2017 at 5:00 PM, Filipe Manana wrote: > On Wed, Apr 5, 2017 at 3:14 AM, Qu Wenruo wrote: >> Btrfs allows inline file extent if and only if >> 1) It's at offset 0 >> 2) It's smaller than min(max_inline, page_size) >>Although we don't specify if the size is before compression or

Re: [PATCH] fstests: btrfs: Check if btrfs will create inline-then-regular file extents

2017-04-05 Thread Filipe Manana
On Wed, Apr 5, 2017 at 3:14 AM, Qu Wenruo wrote: > Btrfs allows inline file extent if and only if > 1) It's at offset 0 > 2) It's smaller than min(max_inline, page_size) >Although we don't specify if the size is before compression or after >compression. >At least according to current b

[PATCH] fstests: btrfs: Check if btrfs will create inline-then-regular file extents

2017-04-04 Thread Qu Wenruo
Btrfs allows inline file extent if and only if 1) It's at offset 0 2) It's smaller than min(max_inline, page_size) Although we don't specify if the size is before compression or after compression. At least according to current behavior, we are only limiting the size after compression. 3

Re: [PATCH] fstests: btrfs: Check if btrfs will create inline-then-regular file extents

2017-04-04 Thread Qu Wenruo
At 04/05/2017 09:27 AM, Eryu Guan wrote: On Mon, Apr 03, 2017 at 11:01:39AM +0800, Qu Wenruo wrote: Btrfs allows inline file extent if and only if 1) It's at offset 0 2) It's smaller than min(max_inline, page_size) Although we don't specify if the size is before compression or after comp

Re: [PATCH] fstests: btrfs: Check if btrfs will create inline-then-regular file extents

2017-04-04 Thread Eryu Guan
On Mon, Apr 03, 2017 at 11:01:39AM +0800, Qu Wenruo wrote: > Btrfs allows inline file extent if and only if > 1) It's at offset 0 > 2) It's smaller than min(max_inline, page_size) >Although we don't specify if the size is before compression or after >compression. >At least according to

[PATCH] fstests: btrfs: Check if btrfs will create inline-then-regular file extents

2017-04-02 Thread Qu Wenruo
Btrfs allows inline file extent if and only if 1) It's at offset 0 2) It's smaller than min(max_inline, page_size) Although we don't specify if the size is before compression or after compression. At least according to current behavior, we are only limiting the size after compression. 3