aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMiao Xie <miaox@cn.fujitsu.com>2013-11-04 10:13:26 -0500
committerChris Mason <chris.mason@fusionio.com>2013-11-11 22:13:58 -0500
commit91aef86f3b8ab0685d930a5468254384513d1c97 (patch)
treec4819f24afd7231c1d14c2ba3d990bd777978c47
parentb02441999efcc6152b87cd58e7970bb7843f76cf (diff)
Btrfs: rename btrfs_start_all_delalloc_inodes
rename the function -- btrfs_start_all_delalloc_inodes(), and make its name be compatible to btrfs_wait_ordered_roots(), since they are always used at the same place. Signed-off-by: Miao Xie <miaox@cn.fujitsu.com> Signed-off-by: Josef Bacik <jbacik@fusionio.com> Signed-off-by: Chris Mason <chris.mason@fusionio.com>
-rw-r--r--fs/btrfs/ctree.h3
-rw-r--r--fs/btrfs/dev-replace.c2
-rw-r--r--fs/btrfs/extent-tree.c2
-rw-r--r--fs/btrfs/inode.c3
-rw-r--r--fs/btrfs/ioctl.c2
-rw-r--r--fs/btrfs/relocation.c2
-rw-r--r--fs/btrfs/transaction.c2
7 files changed, 7 insertions, 9 deletions
diff --git a/fs/btrfs/ctree.h b/fs/btrfs/ctree.h
index 34279665fd69..aea4433081dc 100644
--- a/fs/btrfs/ctree.h
+++ b/fs/btrfs/ctree.h
@@ -3680,8 +3680,7 @@ int btrfs_truncate_inode_items(struct btrfs_trans_handle *trans,
3680 u32 min_type); 3680 u32 min_type);
3681 3681
3682int btrfs_start_delalloc_inodes(struct btrfs_root *root, int delay_iput); 3682int btrfs_start_delalloc_inodes(struct btrfs_root *root, int delay_iput);
3683int btrfs_start_all_delalloc_inodes(struct btrfs_fs_info *fs_info, 3683int btrfs_start_delalloc_roots(struct btrfs_fs_info *fs_info, int delay_iput);
3684 int delay_iput);
3685int btrfs_set_extent_delalloc(struct inode *inode, u64 start, u64 end, 3684int btrfs_set_extent_delalloc(struct inode *inode, u64 start, u64 end,
3686 struct extent_state **cached_state); 3685 struct extent_state **cached_state);
3687int btrfs_create_subvol_root(struct btrfs_trans_handle *trans, 3686int btrfs_create_subvol_root(struct btrfs_trans_handle *trans,
diff --git a/fs/btrfs/dev-replace.c b/fs/btrfs/dev-replace.c
index 3d2495e83e62..342f9fd411e3 100644
--- a/fs/btrfs/dev-replace.c
+++ b/fs/btrfs/dev-replace.c
@@ -461,7 +461,7 @@ static int btrfs_dev_replace_finishing(struct btrfs_fs_info *fs_info,
461 * flush all outstanding I/O and inode extent mappings before the 461 * flush all outstanding I/O and inode extent mappings before the
462 * copy operation is declared as being finished 462 * copy operation is declared as being finished
463 */ 463 */
464 ret = btrfs_start_all_delalloc_inodes(root->fs_info, 0); 464 ret = btrfs_start_delalloc_roots(root->fs_info, 0);
465 if (ret) { 465 if (ret) {
466 mutex_unlock(&dev_replace->lock_finishing_cancel_unmount); 466 mutex_unlock(&dev_replace->lock_finishing_cancel_unmount);
467 return ret; 467 return ret;
diff --git a/fs/btrfs/extent-tree.c b/fs/btrfs/extent-tree.c
index a21bbf83fdc2..45d98d01028f 100644
--- a/fs/btrfs/extent-tree.c
+++ b/fs/btrfs/extent-tree.c
@@ -4016,7 +4016,7 @@ static void btrfs_writeback_inodes_sb_nr(struct btrfs_root *root,
4016 * the filesystem is readonly(all dirty pages are written to 4016 * the filesystem is readonly(all dirty pages are written to
4017 * the disk). 4017 * the disk).
4018 */ 4018 */
4019 btrfs_start_all_delalloc_inodes(root->fs_info, 0); 4019 btrfs_start_delalloc_roots(root->fs_info, 0);
4020 if (!current->journal_info) 4020 if (!current->journal_info)
4021 btrfs_wait_ordered_roots(root->fs_info, -1); 4021 btrfs_wait_ordered_roots(root->fs_info, -1);
4022 } 4022 }
diff --git a/fs/btrfs/inode.c b/fs/btrfs/inode.c
index 57fa19d69e90..da8d2f696ac5 100644
--- a/fs/btrfs/inode.c
+++ b/fs/btrfs/inode.c
@@ -8306,8 +8306,7 @@ int btrfs_start_delalloc_inodes(struct btrfs_root *root, int delay_iput)
8306 return ret; 8306 return ret;
8307} 8307}
8308 8308
8309int btrfs_start_all_delalloc_inodes(struct btrfs_fs_info *fs_info, 8309int btrfs_start_delalloc_roots(struct btrfs_fs_info *fs_info, int delay_iput)
8310 int delay_iput)
8311{ 8310{
8312 struct btrfs_root *root; 8311 struct btrfs_root *root;
8313 struct list_head splice; 8312 struct list_head splice;
diff --git a/fs/btrfs/ioctl.c b/fs/btrfs/ioctl.c
index d4f2861b0d9e..1d04b5559e61 100644
--- a/fs/btrfs/ioctl.c
+++ b/fs/btrfs/ioctl.c
@@ -4542,7 +4542,7 @@ long btrfs_ioctl(struct file *file, unsigned int
4542 case BTRFS_IOC_SYNC: { 4542 case BTRFS_IOC_SYNC: {
4543 int ret; 4543 int ret;
4544 4544
4545 ret = btrfs_start_all_delalloc_inodes(root->fs_info, 0); 4545 ret = btrfs_start_delalloc_roots(root->fs_info, 0);
4546 if (ret) 4546 if (ret)
4547 return ret; 4547 return ret;
4548 ret = btrfs_sync_fs(file->f_dentry->d_sb, 1); 4548 ret = btrfs_sync_fs(file->f_dentry->d_sb, 1);
diff --git a/fs/btrfs/relocation.c b/fs/btrfs/relocation.c
index e1b3c2c73c44..ce459a7cb16d 100644
--- a/fs/btrfs/relocation.c
+++ b/fs/btrfs/relocation.c
@@ -4222,7 +4222,7 @@ int btrfs_relocate_block_group(struct btrfs_root *extent_root, u64 group_start)
4222 printk(KERN_INFO "btrfs: relocating block group %llu flags %llu\n", 4222 printk(KERN_INFO "btrfs: relocating block group %llu flags %llu\n",
4223 rc->block_group->key.objectid, rc->block_group->flags); 4223 rc->block_group->key.objectid, rc->block_group->flags);
4224 4224
4225 ret = btrfs_start_all_delalloc_inodes(fs_info, 0); 4225 ret = btrfs_start_delalloc_roots(fs_info, 0);
4226 if (ret < 0) { 4226 if (ret < 0) {
4227 err = ret; 4227 err = ret;
4228 goto out; 4228 goto out;
diff --git a/fs/btrfs/transaction.c b/fs/btrfs/transaction.c
index 32c100b8c563..57c16b46afbd 100644
--- a/fs/btrfs/transaction.c
+++ b/fs/btrfs/transaction.c
@@ -1629,7 +1629,7 @@ static int btrfs_flush_all_pending_stuffs(struct btrfs_trans_handle *trans,
1629static inline int btrfs_start_delalloc_flush(struct btrfs_fs_info *fs_info) 1629static inline int btrfs_start_delalloc_flush(struct btrfs_fs_info *fs_info)
1630{ 1630{
1631 if (btrfs_test_opt(fs_info->tree_root, FLUSHONCOMMIT)) 1631 if (btrfs_test_opt(fs_info->tree_root, FLUSHONCOMMIT))
1632 return btrfs_start_all_delalloc_inodes(fs_info, 1); 1632 return btrfs_start_delalloc_roots(fs_info, 1);
1633 return 0; 1633 return 0;
1634} 1634}
1635 1635