Skip to content

Commit

Permalink
dm cache: fix typos in comments
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Joe Thornber authored and Alasdair G Kergon committed May 10, 2013
1 parent e12c1fd commit aeed142
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions drivers/md/dm-cache-target.c
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ struct per_bio_data {
/*
* writethrough fields. These MUST remain at the end of this
* structure and the 'cache' member must be the first as it
* is used to determine the offsetof the writethrough fields.
* is used to determine the offset of the writethrough fields.
*/
struct cache *cache;
dm_cblock_t cblock;
Expand Down Expand Up @@ -393,7 +393,7 @@ static int get_cell(struct cache *cache,
return r;
}

/*----------------------------------------------------------------*/
/*----------------------------------------------------------------*/

static bool is_dirty(struct cache *cache, dm_cblock_t b)
{
Expand All @@ -419,6 +419,7 @@ static void clear_dirty(struct cache *cache, dm_oblock_t oblock, dm_cblock_t cbl
}

/*----------------------------------------------------------------*/

static bool block_size_is_power_of_two(struct cache *cache)
{
return cache->sectors_per_block_shift >= 0;
Expand Down Expand Up @@ -667,7 +668,7 @@ static void writethrough_endio(struct bio *bio, int err)

/*
* We can't issue this bio directly, since we're in interrupt
* context. So it get's put on a bio list for processing by the
* context. So it gets put on a bio list for processing by the
* worker thread.
*/
defer_writethrough_bio(pb->cache, bio);
Expand Down

0 comments on commit aeed142

Please sign in to comment.