aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/md/dm-cache-target.c
diff options
context:
space:
mode:
authorJoe Thornber <ejt@redhat.com>2013-05-10 09:37:18 -0400
committerAlasdair G Kergon <agk@redhat.com>2013-05-10 09:37:18 -0400
commitaeed1420a39afb9bd4b7acfcda7a573e349bf27a (patch)
tree61487d25601e303ba9bc7cb5d1d013b8077c8ed2 /drivers/md/dm-cache-target.c
parente12c1fd9d680f6b1181ae13efefc416743bd80e5 (diff)
dm cache: fix typos in comments
Fix up some typos in dm-cache comments. Signed-off-by: Joe Thornber <ejt@redhat.com> Signed-off-by: Alasdair G Kergon <agk@redhat.com>
Diffstat (limited to 'drivers/md/dm-cache-target.c')
-rw-r--r--drivers/md/dm-cache-target.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/drivers/md/dm-cache-target.c b/drivers/md/dm-cache-target.c
index c3c18527da39..004d7053a5b1 100644
--- a/drivers/md/dm-cache-target.c
+++ b/drivers/md/dm-cache-target.c
@@ -205,7 +205,7 @@ struct per_bio_data {
205 /* 205 /*
206 * writethrough fields. These MUST remain at the end of this 206 * writethrough fields. These MUST remain at the end of this
207 * structure and the 'cache' member must be the first as it 207 * structure and the 'cache' member must be the first as it
208 * is used to determine the offsetof the writethrough fields. 208 * is used to determine the offset of the writethrough fields.
209 */ 209 */
210 struct cache *cache; 210 struct cache *cache;
211 dm_cblock_t cblock; 211 dm_cblock_t cblock;
@@ -393,7 +393,7 @@ static int get_cell(struct cache *cache,
393 return r; 393 return r;
394} 394}
395 395
396 /*----------------------------------------------------------------*/ 396/*----------------------------------------------------------------*/
397 397
398static bool is_dirty(struct cache *cache, dm_cblock_t b) 398static bool is_dirty(struct cache *cache, dm_cblock_t b)
399{ 399{
@@ -419,6 +419,7 @@ static void clear_dirty(struct cache *cache, dm_oblock_t oblock, dm_cblock_t cbl
419} 419}
420 420
421/*----------------------------------------------------------------*/ 421/*----------------------------------------------------------------*/
422
422static bool block_size_is_power_of_two(struct cache *cache) 423static bool block_size_is_power_of_two(struct cache *cache)
423{ 424{
424 return cache->sectors_per_block_shift >= 0; 425 return cache->sectors_per_block_shift >= 0;
@@ -667,7 +668,7 @@ static void writethrough_endio(struct bio *bio, int err)
667 668
668 /* 669 /*
669 * We can't issue this bio directly, since we're in interrupt 670 * We can't issue this bio directly, since we're in interrupt
670 * context. So it get's put on a bio list for processing by the 671 * context. So it gets put on a bio list for processing by the
671 * worker thread. 672 * worker thread.
672 */ 673 */
673 defer_writethrough_bio(pb->cache, bio); 674 defer_writethrough_bio(pb->cache, bio);