From: Filipe Manana Date: Tue, 11 Nov 2025 15:40:47 +0000 (+0000) Subject: btrfs: move struct reserve_ticket definition to space-info.c X-Git-Tag: ceph-for-6.19-rc5~261^2~47 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=fe1e50031feae74688e33fe4e0bdc7d9585c07ce;p=ceph-client.git btrfs: move struct reserve_ticket definition to space-info.c It's not used anywhere outside space-info.c so move it from space-info.h into space-info.c. Signed-off-by: Filipe Manana Reviewed-by: David Sterba Signed-off-by: David Sterba --- diff --git a/fs/btrfs/space-info.c b/fs/btrfs/space-info.c index 4ae6928fdca4..61fd76c3da0d 100644 --- a/fs/btrfs/space-info.c +++ b/fs/btrfs/space-info.c @@ -173,6 +173,15 @@ * thing with or without extra unallocated space. */ +struct reserve_ticket { + u64 bytes; + int error; + bool steal; + struct list_head list; + wait_queue_head_t wait; + spinlock_t lock; +}; + /* * after adding space to the filesystem, we need to clear the full flags * on all the space infos. diff --git a/fs/btrfs/space-info.h b/fs/btrfs/space-info.h index a4c2a3c8b388..446c0614ad4a 100644 --- a/fs/btrfs/space-info.h +++ b/fs/btrfs/space-info.h @@ -224,15 +224,6 @@ struct btrfs_space_info { s64 reclaimable_bytes; }; -struct reserve_ticket { - u64 bytes; - int error; - bool steal; - struct list_head list; - wait_queue_head_t wait; - spinlock_t lock; -}; - static inline bool btrfs_mixed_space_info(const struct btrfs_space_info *space_info) { return ((space_info->flags & BTRFS_BLOCK_GROUP_METADATA) &&