Re: [PATCH v2] btrfs: destroy qgroup extent records on transaction abort

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

 



On 2/11/20 2:25 AM, Qu Wenruo wrote:
From: Jeff Mahoney <jeffm@xxxxxxxx>

We clean up the delayed references when we abort a transaction but
we leave the pending qgroup extent records behind, leaking memory.

This patch destroyes the extent records when we destroy the delayed
refs and checks to ensure they're gone before releasing the transaction.

Fixes: 3368d001ba5df (btrfs: qgroup: Record possible quota-related extent for qgroup.)
Signed-off-by: Jeff Mahoney <jeffm@xxxxxxxx>
[Rebased to latest upstream, remove to_qgroup() helper, use
  rbtree_postorder_for_each_entry_safe() wrapper]
Signed-off-by: Qu Wenruo <wqu@xxxxxxxx>

Reviewed-by: Josef Bacik <josef@xxxxxxxxxxxxxx>

Thanks,

Josef



[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