]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
btrfs: move struct reserve_ticket definition to space-info.c
authorFilipe Manana <fdmanana@suse.com>
Tue, 11 Nov 2025 15:40:47 +0000 (15:40 +0000)
committerDavid Sterba <dsterba@suse.com>
Mon, 24 Nov 2025 21:42:23 +0000 (22:42 +0100)
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 <fdmanana@suse.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/space-info.c
fs/btrfs/space-info.h

index 4ae6928fdca42fadb20ee5b4c793a3ca338d2546..61fd76c3da0d62b7d257802cbf0f1b467b8427b8 100644 (file)
  *   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.
index a4c2a3c8b388094d3e754f3dbda90209620e483e..446c0614ad4aba4e165004fe3e96dfdf3fe69cc7 100644 (file)
@@ -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) &&