diff options
author | Miao Xie <miaox@cn.fujitsu.com> | 2012-11-26 04:26:20 -0500 |
---|---|---|
committer | Chris Mason <chris.mason@fusionio.com> | 2012-12-16 20:46:12 -0500 |
commit | 26176e7c2aa923327becdc25b5aca2cb907ac932 (patch) | |
tree | d65f57b99fd2045b5d4299784b23ea249a68caad /fs/btrfs/ctree.h | |
parent | 8ddc473433b5e8ce8693db9f6e251f5a28267528 (diff) |
Btrfs: restructure btrfs_run_defrag_inodes()
This patch restructure btrfs_run_defrag_inodes() and make the code of the auto
defragment more readable.
Signed-off-by: Miao Xie <miaox@cn.fujitsu.com>
Signed-off-by: Chris Mason <chris.mason@fusionio.com>
Diffstat (limited to 'fs/btrfs/ctree.h')
-rw-r--r-- | fs/btrfs/ctree.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/btrfs/ctree.h b/fs/btrfs/ctree.h index 389c05715eaa..6ba56aea5b62 100644 --- a/fs/btrfs/ctree.h +++ b/fs/btrfs/ctree.h | |||
@@ -3510,6 +3510,7 @@ void btrfs_auto_defrag_exit(void); | |||
3510 | int btrfs_add_inode_defrag(struct btrfs_trans_handle *trans, | 3510 | int btrfs_add_inode_defrag(struct btrfs_trans_handle *trans, |
3511 | struct inode *inode); | 3511 | struct inode *inode); |
3512 | int btrfs_run_defrag_inodes(struct btrfs_fs_info *fs_info); | 3512 | int btrfs_run_defrag_inodes(struct btrfs_fs_info *fs_info); |
3513 | void btrfs_cleanup_defrag_inodes(struct btrfs_fs_info *fs_info); | ||
3513 | int btrfs_sync_file(struct file *file, loff_t start, loff_t end, int datasync); | 3514 | int btrfs_sync_file(struct file *file, loff_t start, loff_t end, int datasync); |
3514 | void btrfs_drop_extent_cache(struct inode *inode, u64 start, u64 end, | 3515 | void btrfs_drop_extent_cache(struct inode *inode, u64 start, u64 end, |
3515 | int skip_pinned); | 3516 | int skip_pinned); |