Re: [PATCH 3/3] btrfs: remove root usage from can_overcommit

2017-05-18 Thread Liu Bo
On Wed, May 17, 2017 at 11:38:36AM -0400, je...@suse.com wrote: > From: Jeff Mahoney > > can_overcommit using the root to determine the allocation profile > is the only use of a root in the call graph below reserve_metadata_bytes. > > It turns out that we only need to know

[PATCH 3/3] btrfs: remove root usage from can_overcommit

2017-05-17 Thread jeffm
From: Jeff Mahoney can_overcommit using the root to determine the allocation profile is the only use of a root in the call graph below reserve_metadata_bytes. It turns out that we only need to know whether the allocation is for the chunk root or not -- and we can pass that