On Fri, Aug 31, 2018 at 10:53:54AM +0300, Nikolay Borisov wrote:
>
>
> On 30.08.2018 20:41, Josef Bacik wrote:
> > For enospc_debug having the block rsvs is super helpful to see if we've
> > done something wrong.
> >
> > Signed-off-by: Josef Bacik <josef@xxxxxxxxxxxxxx>
> > ---
> > fs/btrfs/extent-tree.c | 15 +++++++++++++++
> > 1 file changed, 15 insertions(+)
> >
> > diff --git a/fs/btrfs/extent-tree.c b/fs/btrfs/extent-tree.c
> > index 80615a579b18..df826f713034 100644
> > --- a/fs/btrfs/extent-tree.c
> > +++ b/fs/btrfs/extent-tree.c
> > @@ -7910,6 +7910,15 @@ static noinline int find_free_extent(struct btrfs_fs_info *fs_info,
> > return ret;
> > }
> >
> > +static void dump_block_rsv(struct btrfs_block_rsv *rsv)
> > +{
> > + spin_lock(&rsv->lock);
> > + printk(KERN_ERR "%d: size %llu reserved %llu\n",
> > + rsv->type, (unsigned long long)rsv->size,
> > + (unsigned long long)rsv->reserved);
> > + spin_unlock(&rsv->lock);
> > +}
>
> There was feedback on this hunk which you seem to have ignored:
>
> https://www.spinics.net/lists/linux-btrfs/msg80473.html
>
Yup good point, I'll fix this up. Thanks,
Josef