Re: [PATCH] btrfs: Replace owner argument in add_pinned_bytes with a boolean

2018-04-05 Thread David Sterba
On Fri, Mar 30, 2018 at 12:58:47PM +0300, Nikolay Borisov wrote: > add_pinned_bytes reallyc ares whether the bytes being pinned are either > data or metadata. To that effect is checks whether the 'owner' argument > is less than BTRFS_FIRST_FREE_OBJECTID (256). This works because > owner can really

[PATCH] btrfs: Replace owner argument in add_pinned_bytes with a boolean

2018-03-30 Thread Nikolay Borisov
add_pinned_bytes reallyc ares whether the bytes being pinned are either data or metadata. To that effect is checks whether the 'owner' argument is less than BTRFS_FIRST_FREE_OBJECTID (256). This works because owner can really have 2 types of values: a) For metadata extents it holds the level at wh