linux-btrfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/3] btrfs: update qgroups in drop snapshot, V2
@ 2015-11-05 22:37 Mark Fasheh
  2015-11-05 22:37 ` [PATCH 1/3] Btrfs: use btrfs_get_fs_root in resolve_indirect_ref Mark Fasheh
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Mark Fasheh @ 2015-11-05 22:37 UTC (permalink / raw)
  To: linux-btrfs; +Cc: jbacik, clm, quwenruo, mfasheh

Hi,

The following 3 patches fix a regression introduced in Linux
4.2 where btrfs_drop_snapshot() wasn't updating qgroups, resulting in
them going bad.

The original e-mail pointing this out is below:

http://www.spinics.net/lists/linux-btrfs/msg46093.html

The first patch is from Josef and fix bugs in our counting of
roots (which is critical for qgroups to work correctly). It was previously
sent to the list:

http://www.spinics.net/lists/linux-btrfs/msg47035.html

Truth be told, most of the time fixing this was spent figuring out that and
another issue (which has also been fixed).  Once I realized I was seeing a
bug and we fixed it correctly, my drop snapshot patch got dramatically
smaller.

I also re-added some of the tracing in qgroup.c that we recently
lost. It is again possible to debug qgroup operations on a live
system, allowing us to find issues like the two above by narrowing
down our operations and manually walking through them via
cat sys/debug/tracing.

The entire patch series can be tested in xfstests test btrfs/104.

Thanks,
	--Mark

Changes from V1, thanks to Qu for his comments:
  - lock around call to btrfs_qgroup_insert_dirty_extent()
  - check whether qgroups are enabled in account_leaf_items()

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2015-11-05 22:38 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-11-05 22:37 [PATCH 0/3] btrfs: update qgroups in drop snapshot, V2 Mark Fasheh
2015-11-05 22:37 ` [PATCH 1/3] Btrfs: use btrfs_get_fs_root in resolve_indirect_ref Mark Fasheh
2015-11-05 22:37 ` [PATCH 2/3] btrfs: Add qgroup tracing Mark Fasheh
2015-11-05 22:38 ` [PATCH 3/3] btrfs: qgroup: account shared subtree during snapshot delete Mark Fasheh

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).