Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

md/raid5-ppl: Drop unused argument from ppl_handle_flush_request()

ppl_handle_flush_request() takes an struct r5log argument but doesn't
use it. It has no buisiness taking this argument as it is only used
by raid5-cache and has no way to derference it anyway. Remove
the argument.

No functional changes intended.

Signed-off-by: Logan Gunthorpe <logang@deltatee.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Song Liu <song@kernel.org>
Signed-off-by: Jens Axboe <axboe@kernel.dk>

authored by

Logan Gunthorpe and committed by
Jens Axboe
e0fccdaf ed0c6a5f

+3 -3
+2 -2
drivers/md/raid5-log.h
··· 41 41 void ppl_stripe_write_finished(struct stripe_head *sh); 42 42 int ppl_modify_log(struct r5conf *conf, struct md_rdev *rdev, bool add); 43 43 void ppl_quiesce(struct r5conf *conf, int quiesce); 44 - int ppl_handle_flush_request(struct r5l_log *log, struct bio *bio); 44 + int ppl_handle_flush_request(struct bio *bio); 45 45 extern struct md_sysfs_entry ppl_write_hint; 46 46 47 47 static inline bool raid5_has_log(struct r5conf *conf) ··· 108 108 if (conf->log) 109 109 ret = r5l_handle_flush_request(conf->log, bio); 110 110 else if (raid5_has_ppl(conf)) 111 - ret = ppl_handle_flush_request(conf->log, bio); 111 + ret = ppl_handle_flush_request(bio); 112 112 113 113 return ret; 114 114 }
+1 -1
drivers/md/raid5-ppl.c
··· 679 679 } 680 680 } 681 681 682 - int ppl_handle_flush_request(struct r5l_log *log, struct bio *bio) 682 + int ppl_handle_flush_request(struct bio *bio) 683 683 { 684 684 if (bio->bi_iter.bi_size == 0) { 685 685 bio_endio(bio);