Commit 47344e33 authored by Bart Van Assche's avatar Bart Van Assche Committed by Jens Axboe

bcache: Fix kernel-doc warnings

Avoid that building with W=1 triggers warnings about the kernel-doc
headers.
Signed-off-by: default avatarBart Van Assche <bart.vanassche@wdc.com>
Reviewed-by: default avatarMichael Lyle <mlyle@lyle.org>
Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
parent 9dfbdec7
...@@ -962,7 +962,7 @@ static struct btree *mca_alloc(struct cache_set *c, struct btree_op *op, ...@@ -962,7 +962,7 @@ static struct btree *mca_alloc(struct cache_set *c, struct btree_op *op,
return b; return b;
} }
/** /*
* bch_btree_node_get - find a btree node in the cache and lock it, reading it * bch_btree_node_get - find a btree node in the cache and lock it, reading it
* in from disk if necessary. * in from disk if necessary.
* *
......
...@@ -46,7 +46,7 @@ void closure_sub(struct closure *cl, int v) ...@@ -46,7 +46,7 @@ void closure_sub(struct closure *cl, int v)
} }
EXPORT_SYMBOL(closure_sub); EXPORT_SYMBOL(closure_sub);
/** /*
* closure_put - decrement a closure's refcount * closure_put - decrement a closure's refcount
*/ */
void closure_put(struct closure *cl) void closure_put(struct closure *cl)
...@@ -55,7 +55,7 @@ void closure_put(struct closure *cl) ...@@ -55,7 +55,7 @@ void closure_put(struct closure *cl)
} }
EXPORT_SYMBOL(closure_put); EXPORT_SYMBOL(closure_put);
/** /*
* closure_wake_up - wake up all closures on a wait list, without memory barrier * closure_wake_up - wake up all closures on a wait list, without memory barrier
*/ */
void __closure_wake_up(struct closure_waitlist *wait_list) void __closure_wake_up(struct closure_waitlist *wait_list)
...@@ -79,9 +79,9 @@ EXPORT_SYMBOL(__closure_wake_up); ...@@ -79,9 +79,9 @@ EXPORT_SYMBOL(__closure_wake_up);
/** /**
* closure_wait - add a closure to a waitlist * closure_wait - add a closure to a waitlist
* * @waitlist: will own a ref on @cl, which will be released when
* @waitlist will own a ref on @cl, which will be released when
* closure_wake_up() is called on @waitlist. * closure_wake_up() is called on @waitlist.
* @cl: closure pointer.
* *
*/ */
bool closure_wait(struct closure_waitlist *waitlist, struct closure *cl) bool closure_wait(struct closure_waitlist *waitlist, struct closure *cl)
......
...@@ -296,6 +296,7 @@ static void bch_data_insert_start(struct closure *cl) ...@@ -296,6 +296,7 @@ static void bch_data_insert_start(struct closure *cl)
/** /**
* bch_data_insert - stick some data in the cache * bch_data_insert - stick some data in the cache
* @cl: closure pointer.
* *
* This is the starting point for any data to end up in a cache device; it could * This is the starting point for any data to end up in a cache device; it could
* be from a normal write, or a writeback write, or a write to a flash only * be from a normal write, or a writeback write, or a write to a flash only
......
...@@ -82,10 +82,9 @@ STRTO_H(strtoll, long long) ...@@ -82,10 +82,9 @@ STRTO_H(strtoll, long long)
STRTO_H(strtoull, unsigned long long) STRTO_H(strtoull, unsigned long long)
/** /**
* bch_hprint() - formats @v to human readable string for sysfs. * bch_hprint - formats @v to human readable string for sysfs.
* * @buf: the (at least 8 byte) buffer to format the result into.
* @v - signed 64 bit integer * @v: signed 64 bit integer
* @buf - the (at least 8 byte) buffer to format the result into.
* *
* Returns the number of bytes used by format. * Returns the number of bytes used by format.
*/ */
...@@ -225,13 +224,12 @@ void bch_time_stats_update(struct time_stats *stats, uint64_t start_time) ...@@ -225,13 +224,12 @@ void bch_time_stats_update(struct time_stats *stats, uint64_t start_time)
} }
/** /**
* bch_next_delay() - increment @d by the amount of work done, and return how * bch_next_delay() - update ratelimiting statistics and calculate next delay
* long to delay until the next time to do some work. * @d: the struct bch_ratelimit to update
* * @done: the amount of work done, in arbitrary units
* @d - the struct bch_ratelimit to update
* @done - the amount of work done, in arbitrary units
* *
* Returns the amount of time to delay by, in jiffies * Increment @d by the amount of work done, and return how long to delay in
* jiffies until the next time to do some work.
*/ */
uint64_t bch_next_delay(struct bch_ratelimit *d, uint64_t done) uint64_t bch_next_delay(struct bch_ratelimit *d, uint64_t done)
{ {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment