diff options
author | Yan, Zheng <zheng.yan@oracle.com> | 2010-05-16 10:46:25 -0400 |
---|---|---|
committer | Chris Mason <chris.mason@oracle.com> | 2010-05-25 10:34:48 -0400 |
commit | 5da9d01b66458b180a6bee0e637a1d0a3effc622 (patch) | |
tree | 47eca61c0ad07ddc791cb7677c548d663fbac818 /fs/btrfs/ctree.h | |
parent | 424499dbd0c4d88742bf581b5714b27fb44b9fef (diff) |
Btrfs: Shrink delay allocated space in a synchronized
Shrink delayed allocation space in a synchronized manner is more
controllable than flushing all delay allocated space in an async
thread.
Signed-off-by: Yan Zheng <zheng.yan@oracle.com>
Signed-off-by: Chris Mason <chris.mason@oracle.com>
Diffstat (limited to 'fs/btrfs/ctree.h')
-rw-r--r-- | fs/btrfs/ctree.h | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/fs/btrfs/ctree.h b/fs/btrfs/ctree.h index a68f34603b9d..85c7b95dd2fe 100644 --- a/fs/btrfs/ctree.h +++ b/fs/btrfs/ctree.h | |||
@@ -700,10 +700,6 @@ struct btrfs_space_info { | |||
700 | 700 | ||
701 | struct list_head list; | 701 | struct list_head list; |
702 | 702 | ||
703 | /* for controlling how we free up space for allocations */ | ||
704 | wait_queue_head_t flush_wait; | ||
705 | int flushing; | ||
706 | |||
707 | /* for block groups in our same type */ | 703 | /* for block groups in our same type */ |
708 | struct list_head block_groups[BTRFS_NR_RAID_TYPES]; | 704 | struct list_head block_groups[BTRFS_NR_RAID_TYPES]; |
709 | spinlock_t lock; | 705 | spinlock_t lock; |
@@ -928,7 +924,6 @@ struct btrfs_fs_info { | |||
928 | struct btrfs_workers endio_meta_write_workers; | 924 | struct btrfs_workers endio_meta_write_workers; |
929 | struct btrfs_workers endio_write_workers; | 925 | struct btrfs_workers endio_write_workers; |
930 | struct btrfs_workers submit_workers; | 926 | struct btrfs_workers submit_workers; |
931 | struct btrfs_workers enospc_workers; | ||
932 | /* | 927 | /* |
933 | * fixup workers take dirty pages that didn't properly go through | 928 | * fixup workers take dirty pages that didn't properly go through |
934 | * the cow mechanism and make them safe to write. It happens | 929 | * the cow mechanism and make them safe to write. It happens |
@@ -2312,6 +2307,7 @@ int btrfs_truncate_inode_items(struct btrfs_trans_handle *trans, | |||
2312 | u32 min_type); | 2307 | u32 min_type); |
2313 | 2308 | ||
2314 | int btrfs_start_delalloc_inodes(struct btrfs_root *root, int delay_iput); | 2309 | int btrfs_start_delalloc_inodes(struct btrfs_root *root, int delay_iput); |
2310 | int btrfs_start_one_delalloc_inode(struct btrfs_root *root, int delay_iput); | ||
2315 | int btrfs_set_extent_delalloc(struct inode *inode, u64 start, u64 end, | 2311 | int btrfs_set_extent_delalloc(struct inode *inode, u64 start, u64 end, |
2316 | struct extent_state **cached_state); | 2312 | struct extent_state **cached_state); |
2317 | int btrfs_writepages(struct address_space *mapping, | 2313 | int btrfs_writepages(struct address_space *mapping, |