Skip to content

Commit 34bece9

Browse files
fdmananakdave
authored andcommitted
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 <fdmanana@suse.com> Reviewed-by: David Sterba <dsterba@suse.com> Signed-off-by: David Sterba <dsterba@suse.com>
1 parent b9326d7 commit 34bece9

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

fs/btrfs/space-info.c

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -173,6 +173,15 @@
173173
* thing with or without extra unallocated space.
174174
*/
175175

176+
struct reserve_ticket {
177+
u64 bytes;
178+
int error;
179+
bool steal;
180+
struct list_head list;
181+
wait_queue_head_t wait;
182+
spinlock_t lock;
183+
};
184+
176185
/*
177186
* after adding space to the filesystem, we need to clear the full flags
178187
* on all the space infos.

fs/btrfs/space-info.h

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -224,15 +224,6 @@ struct btrfs_space_info {
224224
s64 reclaimable_bytes;
225225
};
226226

227-
struct reserve_ticket {
228-
u64 bytes;
229-
int error;
230-
bool steal;
231-
struct list_head list;
232-
wait_queue_head_t wait;
233-
spinlock_t lock;
234-
};
235-
236227
static inline bool btrfs_mixed_space_info(const struct btrfs_space_info *space_info)
237228
{
238229
return ((space_info->flags & BTRFS_BLOCK_GROUP_METADATA) &&

0 commit comments

Comments
 (0)