diff options
author | George Melikov <[email protected]> | 2017-01-21 00:17:55 +0300 |
---|---|---|
committer | Brian Behlendorf <[email protected]> | 2017-01-22 13:25:40 -0800 |
commit | 4ea3f86426f76e59244ec6f66504da688d90193c (patch) | |
tree | ff907fb2ce89e00b8b89a0a653c9b4e7005f6935 /module/zfs/abd.c | |
parent | ec441a9c534815b379468a2d349011cbd5bcd884 (diff) |
codebase style improvements for OpenZFS 6459 port
Diffstat (limited to 'module/zfs/abd.c')
-rw-r--r-- | module/zfs/abd.c | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/module/zfs/abd.c b/module/zfs/abd.c index dca70d6f2..6ff266bd6 100644 --- a/module/zfs/abd.c +++ b/module/zfs/abd.c @@ -423,7 +423,8 @@ struct scatterlist { }; static void -sg_init_table(struct scatterlist *sg, int nr) { +sg_init_table(struct scatterlist *sg, int nr) +{ memset(sg, 0, nr * sizeof (struct scatterlist)); sg[nr - 1].end = 1; } @@ -1315,8 +1316,8 @@ abd_cmp(abd_t *dabd, abd_t *sabd) */ void abd_raidz_gen_iterate(abd_t **cabds, abd_t *dabd, - ssize_t csize, ssize_t dsize, const unsigned parity, - void (*func_raidz_gen)(void **, const void *, size_t, size_t)) + ssize_t csize, ssize_t dsize, const unsigned parity, + void (*func_raidz_gen)(void **, const void *, size_t, size_t)) { int i; ssize_t len, dlen; @@ -1407,10 +1408,10 @@ abd_raidz_gen_iterate(abd_t **cabds, abd_t *dabd, */ void abd_raidz_rec_iterate(abd_t **cabds, abd_t **tabds, - ssize_t tsize, const unsigned parity, - void (*func_raidz_rec)(void **t, const size_t tsize, void **c, - const unsigned *mul), - const unsigned *mul) + ssize_t tsize, const unsigned parity, + void (*func_raidz_rec)(void **t, const size_t tsize, void **c, + const unsigned *mul), + const unsigned *mul) { int i; ssize_t len; @@ -1497,7 +1498,7 @@ abd_nr_pages_off(abd_t *abd, unsigned int size, size_t off) */ unsigned int abd_scatter_bio_map_off(struct bio *bio, abd_t *abd, - unsigned int io_size, size_t off) + unsigned int io_size, size_t off) { int i; struct abd_iter aiter; |