Skip to content

btrfs qgroup cleanup

Marcos Paulo de Souza linux-btrfs lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 3 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2btrfs: qgroup: Cleanup quota_root checksfs/btrfs/qgroup.c+10 -241 reply
2/2btrfs: qgroup: Return -ENOTCONN instead of -EINVALfs/btrfs/qgroup.c+5 -51 reply

Reviews trailers per patch

All 2 patches have a Reviewed-by or Acked-by.

PatchQu Wenruo
1/2R-b
2/2R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/2] btrfs qgroup cleanup

From: Marcos Paulo de Souza <[email protected]>

While reading the qgroup code and doing some tests, I found some two things that I would like to change:
* Remove some useless code that was being set only to check if fs_info->quota_root was not NULL
* Check why creating a qgroup was returning EINVAL

The answer to the second point was: EINVAL is returned when a user tries to create/delete/list/assign a qgroup to a subvolume, but this subvolume does not have quota enabled. Talking with David, he suggested to change it to ENOTCONN, following what is currently being used in balance and scrub.

So here are the changes. Please take a look!

Marcos Paulo de Souza (2):
btrfs: qgroup: Cleanup quota_root checks
btrfs: qgroup: Return -ENOTCONN instead of -EINVAL

 fs/btrfs/qgroup.c | 44 +++++++++++++++-----------------------------
 1 file changed, 15 insertions(+), 29 deletions(-)
Signature · 1 line
2.23.0