From: Qu Wenruo <quwenruo.btrfs@gmx.com>
To: linux@treblig.org, clm@fb.com, josef@toxicpanda.com,
dsterba@suse.com, boris@bur.io
Cc: rostedt@goodmis.org, mhiramat@kernel.org,
mathieu.desnoyers@efficios.com, linux-btrfs@vger.kernel.org,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH] btrfs: Remove unused btrfs_free_squota_rsv
Date: Fri, 4 Oct 2024 06:40:20 +0930 [thread overview]
Message-ID: <51b35809-bf9a-4b09-8df0-4eafc077d00f@gmx.com> (raw)
In-Reply-To: <20241003203319.241687-1-linux@treblig.org>
在 2024/10/4 06:03, linux@treblig.org 写道:
> From: "Dr. David Alan Gilbert" <linux@treblig.org>
>
> btrfs_free_squota_rsv() was added in commit
> e85a0adacf17 ("btrfs: ensure releasing squota reserve on head refs")
>
> but has remained unused.
>
> Remove it.
>
> Signed-off-by: Dr. David Alan Gilbert <linux@treblig.org>
Reviewed-by: Qu Wenruo <wqu@suse.com>
Thanks,
Qu
> ---
> fs/btrfs/qgroup.c | 11 -----------
> fs/btrfs/qgroup.h | 1 -
> 2 files changed, 12 deletions(-)
>
> diff --git a/fs/btrfs/qgroup.c b/fs/btrfs/qgroup.c
> index c297909f1506..52f0cf7621d6 100644
> --- a/fs/btrfs/qgroup.c
> +++ b/fs/btrfs/qgroup.c
> @@ -4883,17 +4883,6 @@ void btrfs_qgroup_destroy_extent_records(struct btrfs_transaction *trans)
> xa_destroy(&trans->delayed_refs.dirty_extents);
> }
>
> -void btrfs_free_squota_rsv(struct btrfs_fs_info *fs_info, u64 root, u64 rsv_bytes)
> -{
> - if (btrfs_qgroup_mode(fs_info) != BTRFS_QGROUP_MODE_SIMPLE)
> - return;
> -
> - if (!is_fstree(root))
> - return;
> -
> - btrfs_qgroup_free_refroot(fs_info, root, rsv_bytes, BTRFS_QGROUP_RSV_DATA);
> -}
> -
> int btrfs_record_squota_delta(struct btrfs_fs_info *fs_info,
> const struct btrfs_squota_delta *delta)
> {
> diff --git a/fs/btrfs/qgroup.h b/fs/btrfs/qgroup.h
> index 98adf4ec7b01..d72e09de2d64 100644
> --- a/fs/btrfs/qgroup.h
> +++ b/fs/btrfs/qgroup.h
> @@ -440,7 +440,6 @@ int btrfs_qgroup_trace_subtree_after_cow(struct btrfs_trans_handle *trans,
> struct btrfs_root *root, struct extent_buffer *eb);
> void btrfs_qgroup_destroy_extent_records(struct btrfs_transaction *trans);
> bool btrfs_check_quota_leak(const struct btrfs_fs_info *fs_info);
> -void btrfs_free_squota_rsv(struct btrfs_fs_info *fs_info, u64 root, u64 rsv_bytes);
> int btrfs_record_squota_delta(struct btrfs_fs_info *fs_info,
> const struct btrfs_squota_delta *delta);
>
prev parent reply other threads:[~2024-10-03 21:10 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-10-03 20:33 [PATCH] btrfs: Remove unused btrfs_free_squota_rsv linux
2024-10-03 21:10 ` Qu Wenruo [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=51b35809-bf9a-4b09-8df0-4eafc077d00f@gmx.com \
--to=quwenruo.btrfs@gmx.com \
--cc=boris@bur.io \
--cc=clm@fb.com \
--cc=dsterba@suse.com \
--cc=josef@toxicpanda.com \
--cc=linux-btrfs@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux@treblig.org \
--cc=mathieu.desnoyers@efficios.com \
--cc=mhiramat@kernel.org \
--cc=rostedt@goodmis.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox