Re: [GIT PULL] Qgroup rework with other Fujitsu fix.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 





-------- Original Message  --------
Subject: Re: [GIT PULL] Qgroup rework with other Fujitsu fix.
From: Josef Bacik <jbacik@xxxxxx>
To: adam900710 <adam900710@xxxxxxxxx>
Date: 2015年06月09日 22:54

On 06/09/2015 10:23 AM, adam900710 wrote:
Sorry, forgot to reply to all.

To Josef,

I am afraid that your conclusion is not right, as in the patch, it will
only merge delayed refs when they are in same sequence number.

In fact, in the patch, conditions for merge is even more restrict than
before, it will not allow merging delayed refs for the same extent if
there are other delayed refs between them.


You're right, I missed this bit

+    if (exist->type != ref->type || exist->no_quota != ref->no_quota ||
+        exist->seq != ref->seq)
+        goto add_tail;

I don't want the merging more strict, I want to merge as much as
possible, this was the problem with the original qgroup work and that's
why I reworked all this sequence number crap.  Thanks,

Josef
The old problem of qgroup is addressed by later patches, which reworks
the whole qgroup framework again.
So qgroup will not be a problem.

This patch is mainly used to cleanup the delayed-ref codes, at a little
cost of restrict merging condition, but delayed-refs will still be
mergeable unlike the very codes before your rework.

It's possible not to include this patch in this pull, but I still prefer
to include this one.
As old implements is not so clear and easy to cause bug, the new
straight-forward data structure with less codes will definitely make
sense for maintaining.

Thanks,
Qu
--
To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux Filesystem Development]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux