aboutsummaryrefslogtreecommitdiffstats
path: root/fs/btrfs/raid56.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/raid56.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/raid56.c')
-rw-r--r--fs/btrfs/raid56.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/fs/btrfs/raid56.c b/fs/btrfs/raid56.c
index 5afa564201a2..1269fc30b15c 100644
--- a/fs/btrfs/raid56.c
+++ b/fs/btrfs/raid56.c
@@ -87,7 +87,7 @@ struct btrfs_raid_bio {
87 /* 87 /*
88 * for scheduling work in the helper threads 88 * for scheduling work in the helper threads
89 */ 89 */
90 struct btrfs_work_struct work; 90 struct btrfs_work work;
91 91
92 /* 92 /*
93 * bio list and bio_list_lock are used 93 * bio list and bio_list_lock are used
@@ -166,8 +166,8 @@ struct btrfs_raid_bio {
166 166
167static int __raid56_parity_recover(struct btrfs_raid_bio *rbio); 167static int __raid56_parity_recover(struct btrfs_raid_bio *rbio);
168static noinline void finish_rmw(struct btrfs_raid_bio *rbio); 168static noinline void finish_rmw(struct btrfs_raid_bio *rbio);
169static void rmw_work(struct btrfs_work_struct *work); 169static void rmw_work(struct btrfs_work *work);
170static void read_rebuild_work(struct btrfs_work_struct *work); 170static void read_rebuild_work(struct btrfs_work *work);
171static void async_rmw_stripe(struct btrfs_raid_bio *rbio); 171static void async_rmw_stripe(struct btrfs_raid_bio *rbio);
172static void async_read_rebuild(struct btrfs_raid_bio *rbio); 172static void async_read_rebuild(struct btrfs_raid_bio *rbio);
173static int fail_bio_stripe(struct btrfs_raid_bio *rbio, struct bio *bio); 173static int fail_bio_stripe(struct btrfs_raid_bio *rbio, struct bio *bio);
@@ -1588,7 +1588,7 @@ struct btrfs_plug_cb {
1588 struct blk_plug_cb cb; 1588 struct blk_plug_cb cb;
1589 struct btrfs_fs_info *info; 1589 struct btrfs_fs_info *info;
1590 struct list_head rbio_list; 1590 struct list_head rbio_list;
1591 struct btrfs_work_struct work; 1591 struct btrfs_work work;
1592}; 1592};
1593 1593
1594/* 1594/*
@@ -1652,7 +1652,7 @@ static void run_plug(struct btrfs_plug_cb *plug)
1652 * if the unplug comes from schedule, we have to push the 1652 * if the unplug comes from schedule, we have to push the
1653 * work off to a helper thread 1653 * work off to a helper thread
1654 */ 1654 */
1655static void unplug_work(struct btrfs_work_struct *work) 1655static void unplug_work(struct btrfs_work *work)
1656{ 1656{
1657 struct btrfs_plug_cb *plug; 1657 struct btrfs_plug_cb *plug;
1658 plug = container_of(work, struct btrfs_plug_cb, work); 1658 plug = container_of(work, struct btrfs_plug_cb, work);
@@ -2079,7 +2079,7 @@ int raid56_parity_recover(struct btrfs_root *root, struct bio *bio,
2079 2079
2080} 2080}
2081 2081
2082static void rmw_work(struct btrfs_work_struct *work) 2082static void rmw_work(struct btrfs_work *work)
2083{ 2083{
2084 struct btrfs_raid_bio *rbio; 2084 struct btrfs_raid_bio *rbio;
2085 2085
@@ -2087,7 +2087,7 @@ static void rmw_work(struct btrfs_work_struct *work)
2087 raid56_rmw_stripe(rbio); 2087 raid56_rmw_stripe(rbio);
2088} 2088}
2089 2089
2090static void read_rebuild_work(struct btrfs_work_struct *work) 2090static void read_rebuild_work(struct btrfs_work *work)
2091{ 2091{
2092 struct btrfs_raid_bio *rbio; 2092 struct btrfs_raid_bio *rbio;
2093 2093