mirror of
https://github.com/torvalds/linux.git
synced 2026-06-02 19:43:40 +02:00
btrfs: remove unused qgroup functions for pertrans reservation and freeing
They have no more users since commit a649684967 ("btrfs: fix start
transaction qgroup rsv double free"), so remove them.
Reviewed-by: Qu Wenruo <wqu@suse.com>
Signed-off-by: Filipe Manana <fdmanana@suse.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
This commit is contained in:
parent
031dd12c37
commit
e35577706e
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user