summaryrefslogtreecommitdiffstats
path: root/fs/btrfs/ctree.h
diff options
context:
space:
mode:
authorMiao Xie <miaox@cn.fujitsu.com>2012-11-26 09:26:20 +0000
committerChris Mason <chris.mason@fusionio.com>2012-12-16 20:46:12 -0500
commit26176e7c2aa923327becdc25b5aca2cb907ac932 (patch)
treed65f57b99fd2045b5d4299784b23ea249a68caad /fs/btrfs/ctree.h
parent8ddc473433b5e8ce8693db9f6e251f5a28267528 (diff)
downloadop-kernel-dev-26176e7c2aa923327becdc25b5aca2cb907ac932.zip
op-kernel-dev-26176e7c2aa923327becdc25b5aca2cb907ac932.tar.gz
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.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/btrfs/ctree.h b/fs/btrfs/ctree.h
index 389c057..6ba56ae 100644
--- a/fs/btrfs/ctree.h
+++ b/fs/btrfs/ctree.h
@@ -3510,6 +3510,7 @@ void btrfs_auto_defrag_exit(void);
int btrfs_add_inode_defrag(struct btrfs_trans_handle *trans,
struct inode *inode);
int btrfs_run_defrag_inodes(struct btrfs_fs_info *fs_info);
+void btrfs_cleanup_defrag_inodes(struct btrfs_fs_info *fs_info);
int btrfs_sync_file(struct file *file, loff_t start, loff_t end, int datasync);
void btrfs_drop_extent_cache(struct inode *inode, u64 start, u64 end,
int skip_pinned);
OpenPOWER on IntegriCloud