Re: [PATCH v8 19/27] btrfs: try more times to alloc metadata reserve space

2016-04-25 Thread Qu Wenruo
Josef Bacik wrote on 2016/04/25 10:05 -0400: On 04/24/2016 08:54 PM, Qu Wenruo wrote: Josef Bacik wrote on 2016/04/22 14:06 -0400: On 03/21/2016 09:35 PM, Qu Wenruo wrote: From: Wang Xiaoguang In btrfs_delalloc_reserve_metadata(), the number of metadata bytes we try to reserve is calcula

Re: [PATCH v8 19/27] btrfs: try more times to alloc metadata reserve space

2016-04-25 Thread Josef Bacik
On 04/24/2016 08:54 PM, Qu Wenruo wrote: Josef Bacik wrote on 2016/04/22 14:06 -0400: On 03/21/2016 09:35 PM, Qu Wenruo wrote: From: Wang Xiaoguang In btrfs_delalloc_reserve_metadata(), the number of metadata bytes we try to reserve is calculated by the difference between outstanding_extent

Re: [PATCH v8 19/27] btrfs: try more times to alloc metadata reserve space

2016-04-24 Thread Qu Wenruo
Josef Bacik wrote on 2016/04/22 14:06 -0400: On 03/21/2016 09:35 PM, Qu Wenruo wrote: From: Wang Xiaoguang In btrfs_delalloc_reserve_metadata(), the number of metadata bytes we try to reserve is calculated by the difference between outstanding_extents and reserved_extents. When reserve_meta

Re: [PATCH v8 19/27] btrfs: try more times to alloc metadata reserve space

2016-04-22 Thread Josef Bacik
On 03/21/2016 09:35 PM, Qu Wenruo wrote: From: Wang Xiaoguang In btrfs_delalloc_reserve_metadata(), the number of metadata bytes we try to reserve is calculated by the difference between outstanding_extents and reserved_extents. When reserve_metadata_bytes() fails to reserve desited metadata s

[PATCH v8 19/27] btrfs: try more times to alloc metadata reserve space

2016-03-21 Thread Qu Wenruo
From: Wang Xiaoguang In btrfs_delalloc_reserve_metadata(), the number of metadata bytes we try to reserve is calculated by the difference between outstanding_extents and reserved_extents. When reserve_metadata_bytes() fails to reserve desited metadata space, it has already done some reclaim work