From: Filipe Manana Date: Tue, 17 Mar 2026 18:54:04 +0000 (+0000) Subject: btrfs: remove unused qgroup functions for pertrans reservation and freeing X-Git-Tag: v7.1-rc1~231^2~35 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e35577706ec90791ac9a1379b3ef44591ad1a0f6;p=thirdparty%2Fkernel%2Flinux.git btrfs: remove unused qgroup functions for pertrans reservation and freeing They have no more users since commit a6496849671a ("btrfs: fix start transaction qgroup rsv double free"), so remove them. Reviewed-by: Qu Wenruo Signed-off-by: Filipe Manana Reviewed-by: David Sterba Signed-off-by: David Sterba --- diff --git a/fs/btrfs/qgroup.h b/fs/btrfs/qgroup.h index a979fd59a4da3..419f3c4120cef 100644 --- a/fs/btrfs/qgroup.h +++ b/fs/btrfs/qgroup.h @@ -397,14 +397,7 @@ int btrfs_qgroup_reserve_meta(struct btrfs_root *root, int num_bytes, int __btrfs_qgroup_reserve_meta(struct btrfs_root *root, int num_bytes, enum btrfs_qgroup_rsv_type type, bool enforce, bool noflush); -/* Reserve metadata space for pertrans and prealloc type */ -static inline int btrfs_qgroup_reserve_meta_pertrans(struct btrfs_root *root, - int num_bytes, bool enforce) -{ - return __btrfs_qgroup_reserve_meta(root, num_bytes, - BTRFS_QGROUP_RSV_META_PERTRANS, - enforce, false); -} + static inline int btrfs_qgroup_reserve_meta_prealloc(struct btrfs_root *root, int num_bytes, bool enforce, bool noflush) @@ -417,14 +410,6 @@ static inline int btrfs_qgroup_reserve_meta_prealloc(struct btrfs_root *root, void __btrfs_qgroup_free_meta(struct btrfs_root *root, int num_bytes, enum btrfs_qgroup_rsv_type type); -/* Free per-transaction meta reservation for error handling */ -static inline void btrfs_qgroup_free_meta_pertrans(struct btrfs_root *root, - int num_bytes) -{ - __btrfs_qgroup_free_meta(root, num_bytes, - BTRFS_QGROUP_RSV_META_PERTRANS); -} - /* Pre-allocated meta reservation can be freed at need */ static inline void btrfs_qgroup_free_meta_prealloc(struct btrfs_root *root, int num_bytes)