Re: [PATCH 1/3] btrfs: simplify counting number of eb pages

2018-04-24 Thread Qu Wenruo
On 2018年04月24日 18:29, David Sterba wrote: > On Tue, Apr 24, 2018 at 02:22:15PM +0800, Qu Wenruo wrote: >> >> >> On 2018年04月24日 13:59, Nikolay Borisov wrote: >>> >>> >>> On 24.04.2018 02:03, David Sterba wrote: The eb length is nodesize, as initialized in __alloc_extent_buffer.

Re: [PATCH 1/3] btrfs: simplify counting number of eb pages

2018-04-24 Thread David Sterba
On Tue, Apr 24, 2018 at 02:22:15PM +0800, Qu Wenruo wrote: > > > On 2018年04月24日 13:59, Nikolay Borisov wrote: > > > > > > On 24.04.2018 02:03, David Sterba wrote: > >> The eb length is nodesize, as initialized in __alloc_extent_buffer. > >> Regardless of start, we should always get the same

Re: [PATCH 1/3] btrfs: simplify counting number of eb pages

2018-04-24 Thread Qu Wenruo
On 2018年04月24日 13:59, Nikolay Borisov wrote: > > > On 24.04.2018 02:03, David Sterba wrote: >> The eb length is nodesize, as initialized in __alloc_extent_buffer. >> Regardless of start, we should always get the same number of pages, so >> use that fact. >> >> Signed-off-by: David Sterba

Re: [PATCH 1/3] btrfs: simplify counting number of eb pages

2018-04-23 Thread Nikolay Borisov
On 24.04.2018 02:03, David Sterba wrote: > The eb length is nodesize, as initialized in __alloc_extent_buffer. > Regardless of start, we should always get the same number of pages, so > use that fact. > > Signed-off-by: David Sterba > --- > fs/btrfs/extent_io.h | 3 +-- > 1

[PATCH 1/3] btrfs: simplify counting number of eb pages

2018-04-23 Thread David Sterba
The eb length is nodesize, as initialized in __alloc_extent_buffer. Regardless of start, we should always get the same number of pages, so use that fact. Signed-off-by: David Sterba --- fs/btrfs/extent_io.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git