From: Joe Thornber Date: Fri, 10 May 2013 13:37:18 +0000 (+0100) Subject: dm cache: fix typos in comments X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=aeed1420a39afb9bd4b7acfcda7a573e349bf27a;p=GitHub%2Fexynos8895%2Fandroid_kernel_samsung_universal8895.git dm cache: fix typos in comments Fix up some typos in dm-cache comments. Signed-off-by: Joe Thornber Signed-off-by: Alasdair G Kergon --- 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 { /* * 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; @@ -393,7 +393,7 @@ static int get_cell(struct cache *cache, return r; } - /*----------------------------------------------------------------*/ +/*----------------------------------------------------------------*/ static bool is_dirty(struct cache *cache, dm_cblock_t b) { @@ -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; @@ -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);