aboutsummaryrefslogtreecommitdiffstats
path: root/fs/btrfs/disk-io.c
diff options
context:
space:
mode:
authorQu Wenruo <quwenruo@cn.fujitsu.com>2014-02-27 21:46:19 -0500
committerJosef Bacik <jbacik@fb.com>2014-03-10 15:17:16 -0400
commitd458b0540ebd728b4d6ef47cc5ef0dbfd4dd361a (patch)
treecc00182614b878fcfde3218ec0daf5ac4332cab5 /fs/btrfs/disk-io.c
parenta046e9c88b0f46677923864295eac7c92cd962cb (diff)
btrfs: Cleanup the "_struct" suffix in btrfs_workequeue
Since the "_struct" suffix is mainly used for distinguish the differnt btrfs_work between the original and the newly created one, there is no need using the suffix since all btrfs_workers are changed into btrfs_workqueue. Also this patch fixed some codes whose code style is changed due to the too long "_struct" suffix. Signed-off-by: Qu Wenruo <quwenruo@cn.fujitsu.com> Tested-by: David Sterba <dsterba@suse.cz> Signed-off-by: Josef Bacik <jbacik@fb.com>
Diffstat (limited to 'fs/btrfs/disk-io.c')
-rw-r--r--fs/btrfs/disk-io.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/fs/btrfs/disk-io.c b/fs/btrfs/disk-io.c
index c80d9507171c..f7d84d955764 100644
--- a/fs/btrfs/disk-io.c
+++ b/fs/btrfs/disk-io.c
@@ -55,7 +55,7 @@
55#endif 55#endif
56 56
57static struct extent_io_ops btree_extent_io_ops; 57static struct extent_io_ops btree_extent_io_ops;
58static void end_workqueue_fn(struct btrfs_work_struct *work); 58static void end_workqueue_fn(struct btrfs_work *work);
59static void free_fs_root(struct btrfs_root *root); 59static void free_fs_root(struct btrfs_root *root);
60static int btrfs_check_super_valid(struct btrfs_fs_info *fs_info, 60static int btrfs_check_super_valid(struct btrfs_fs_info *fs_info,
61 int read_only); 61 int read_only);
@@ -86,7 +86,7 @@ struct end_io_wq {
86 int error; 86 int error;
87 int metadata; 87 int metadata;
88 struct list_head list; 88 struct list_head list;
89 struct btrfs_work_struct work; 89 struct btrfs_work work;
90}; 90};
91 91
92/* 92/*
@@ -108,7 +108,7 @@ struct async_submit_bio {
108 * can't tell us where in the file the bio should go 108 * can't tell us where in the file the bio should go
109 */ 109 */
110 u64 bio_offset; 110 u64 bio_offset;
111 struct btrfs_work_struct work; 111 struct btrfs_work work;
112 int error; 112 int error;
113}; 113};
114 114
@@ -742,7 +742,7 @@ unsigned long btrfs_async_submit_limit(struct btrfs_fs_info *info)
742 return 256 * limit; 742 return 256 * limit;
743} 743}
744 744
745static void run_one_async_start(struct btrfs_work_struct *work) 745static void run_one_async_start(struct btrfs_work *work)
746{ 746{
747 struct async_submit_bio *async; 747 struct async_submit_bio *async;
748 int ret; 748 int ret;
@@ -755,7 +755,7 @@ static void run_one_async_start(struct btrfs_work_struct *work)
755 async->error = ret; 755 async->error = ret;
756} 756}
757 757
758static void run_one_async_done(struct btrfs_work_struct *work) 758static void run_one_async_done(struct btrfs_work *work)
759{ 759{
760 struct btrfs_fs_info *fs_info; 760 struct btrfs_fs_info *fs_info;
761 struct async_submit_bio *async; 761 struct async_submit_bio *async;
@@ -782,7 +782,7 @@ static void run_one_async_done(struct btrfs_work_struct *work)
782 async->bio_offset); 782 async->bio_offset);
783} 783}
784 784
785static void run_one_async_free(struct btrfs_work_struct *work) 785static void run_one_async_free(struct btrfs_work *work)
786{ 786{
787 struct async_submit_bio *async; 787 struct async_submit_bio *async;
788 788
@@ -1668,7 +1668,7 @@ static int setup_bdi(struct btrfs_fs_info *info, struct backing_dev_info *bdi)
1668 * called by the kthread helper functions to finally call the bio end_io 1668 * called by the kthread helper functions to finally call the bio end_io
1669 * functions. This is where read checksum verification actually happens 1669 * functions. This is where read checksum verification actually happens
1670 */ 1670 */
1671static void end_workqueue_fn(struct btrfs_work_struct *work) 1671static void end_workqueue_fn(struct btrfs_work *work)
1672{ 1672{
1673 struct bio *bio; 1673 struct bio *bio;
1674 struct end_io_wq *end_io_wq; 1674 struct end_io_wq *end_io_wq;