瀏覽代碼

block: genhd.h cleanup patch

In include/linux/genhd.h: Line 335 has a comment that needs to be updated from: /* drivers/block/ll_rw_blk.c */ to /* block/blk-core.c */. Also as of kernel 2.6.16, the function definition for get_blkdev_list was removed from block/genhd.c but the function declaration is still present on line 339. This patch addresses both those fixes, by updating the comment and removing the declaration.

Signed-off-by: Petros Koutoupis <pkoutoupis@hydrasystemsllc.com>
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
Petros Koutoupis 16 年之前
父節點
當前提交
d399228646
共有 1 個文件被更改,包括 1 次插入2 次删除
  1. 1 2
      include/linux/genhd.h

+ 1 - 2
include/linux/genhd.h

@@ -333,11 +333,10 @@ static inline void part_dec_in_flight(struct hd_struct *part)
 		part_to_disk(part)->part0.in_flight--;
 		part_to_disk(part)->part0.in_flight--;
 }
 }
 
 
-/* drivers/block/ll_rw_blk.c */
+/* block/blk-core.c */
 extern void part_round_stats(int cpu, struct hd_struct *part);
 extern void part_round_stats(int cpu, struct hd_struct *part);
 
 
 /* block/genhd.c */
 /* block/genhd.c */
-extern int get_blkdev_list(char *, int);
 extern void add_disk(struct gendisk *disk);
 extern void add_disk(struct gendisk *disk);
 extern void del_gendisk(struct gendisk *gp);
 extern void del_gendisk(struct gendisk *gp);
 extern void unlink_gendisk(struct gendisk *gp);
 extern void unlink_gendisk(struct gendisk *gp);