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

fs/bio.c: move EXPORT* macros to line after function

As mentioned in Documentation/CodingStyle, move EXPORT* macro's
to the line immediately after the closing function brace line.

Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com>
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>

authored by

H Hartley Sweeten and committed by
Jens Axboe
a112a71d 48c0d4d4

+23 -26
+23 -26
fs/bio.c
··· 249 249 250 250 mempool_free(p, bs->bio_pool); 251 251 } 252 + EXPORT_SYMBOL(bio_free); 252 253 253 254 void bio_init(struct bio *bio) 254 255 { ··· 258 257 bio->bi_comp_cpu = -1; 259 258 atomic_set(&bio->bi_cnt, 1); 260 259 } 260 + EXPORT_SYMBOL(bio_init); 261 261 262 262 /** 263 263 * bio_alloc_bioset - allocate a bio for I/O ··· 313 311 mempool_free(p, bs->bio_pool); 314 312 return NULL; 315 313 } 314 + EXPORT_SYMBOL(bio_alloc_bioset); 316 315 317 316 static void bio_fs_destructor(struct bio *bio) 318 317 { ··· 340 337 341 338 return bio; 342 339 } 340 + EXPORT_SYMBOL(bio_alloc); 343 341 344 342 static void bio_kmalloc_destructor(struct bio *bio) 345 343 { ··· 384 380 385 381 return bio; 386 382 } 383 + EXPORT_SYMBOL(bio_kmalloc); 387 384 388 385 void zero_fill_bio(struct bio *bio) 389 386 { ··· 421 416 bio->bi_destructor(bio); 422 417 } 423 418 } 419 + EXPORT_SYMBOL(bio_put); 424 420 425 421 inline int bio_phys_segments(struct request_queue *q, struct bio *bio) 426 422 { ··· 430 424 431 425 return bio->bi_phys_segments; 432 426 } 427 + EXPORT_SYMBOL(bio_phys_segments); 433 428 434 429 /** 435 430 * __bio_clone - clone a bio ··· 458 451 bio->bi_size = bio_src->bi_size; 459 452 bio->bi_idx = bio_src->bi_idx; 460 453 } 454 + EXPORT_SYMBOL(__bio_clone); 461 455 462 456 /** 463 457 * bio_clone - clone a bio ··· 490 482 491 483 return b; 492 484 } 485 + EXPORT_SYMBOL(bio_clone); 493 486 494 487 /** 495 488 * bio_get_nr_vecs - return approx number of vecs ··· 514 505 515 506 return nr_pages; 516 507 } 508 + EXPORT_SYMBOL(bio_get_nr_vecs); 517 509 518 510 static int __bio_add_page(struct request_queue *q, struct bio *bio, struct page 519 511 *page, unsigned int len, unsigned int offset, ··· 645 635 return __bio_add_page(q, bio, page, len, offset, 646 636 queue_max_hw_sectors(q)); 647 637 } 638 + EXPORT_SYMBOL(bio_add_pc_page); 648 639 649 640 /** 650 641 * bio_add_page - attempt to add page to bio ··· 666 655 struct request_queue *q = bdev_get_queue(bio->bi_bdev); 667 656 return __bio_add_page(q, bio, page, len, offset, queue_max_sectors(q)); 668 657 } 658 + EXPORT_SYMBOL(bio_add_page); 669 659 670 660 struct bio_map_data { 671 661 struct bio_vec *iovecs; ··· 788 776 bio_put(bio); 789 777 return ret; 790 778 } 779 + EXPORT_SYMBOL(bio_uncopy_user); 791 780 792 781 /** 793 782 * bio_copy_user_iov - copy user data to bio ··· 933 920 934 921 return bio_copy_user_iov(q, map_data, &iov, 1, write_to_vm, gfp_mask); 935 922 } 923 + EXPORT_SYMBOL(bio_copy_user); 936 924 937 925 static struct bio *__bio_map_user_iov(struct request_queue *q, 938 926 struct block_device *bdev, ··· 1064 1050 1065 1051 return bio_map_user_iov(q, bdev, &iov, 1, write_to_vm, gfp_mask); 1066 1052 } 1053 + EXPORT_SYMBOL(bio_map_user); 1067 1054 1068 1055 /** 1069 1056 * bio_map_user_iov - map user sg_iovec table into bio ··· 1132 1117 __bio_unmap_user(bio); 1133 1118 bio_put(bio); 1134 1119 } 1120 + EXPORT_SYMBOL(bio_unmap_user); 1135 1121 1136 1122 static void bio_map_kern_endio(struct bio *bio, int err) 1137 1123 { 1138 1124 bio_put(bio); 1139 1125 } 1140 - 1141 1126 1142 1127 static struct bio *__bio_map_kern(struct request_queue *q, void *data, 1143 1128 unsigned int len, gfp_t gfp_mask) ··· 1204 1189 bio_put(bio); 1205 1190 return ERR_PTR(-EINVAL); 1206 1191 } 1192 + EXPORT_SYMBOL(bio_map_kern); 1207 1193 1208 1194 static void bio_copy_kern_endio(struct bio *bio, int err) 1209 1195 { ··· 1266 1250 1267 1251 return bio; 1268 1252 } 1253 + EXPORT_SYMBOL(bio_copy_kern); 1269 1254 1270 1255 /* 1271 1256 * bio_set_pages_dirty() and bio_check_pages_dirty() are support functions ··· 1417 1400 if (bio->bi_end_io) 1418 1401 bio->bi_end_io(bio, error); 1419 1402 } 1403 + EXPORT_SYMBOL(bio_endio); 1420 1404 1421 1405 void bio_pair_release(struct bio_pair *bp) 1422 1406 { ··· 1428 1410 mempool_free(bp, bp->bio2.bi_private); 1429 1411 } 1430 1412 } 1413 + EXPORT_SYMBOL(bio_pair_release); 1431 1414 1432 1415 static void bio_pair_end_1(struct bio *bi, int err) 1433 1416 { ··· 1496 1477 1497 1478 return bp; 1498 1479 } 1480 + EXPORT_SYMBOL(bio_split); 1499 1481 1500 1482 /** 1501 1483 * bio_sector_offset - Find hardware sector offset in bio ··· 1567 1547 1568 1548 kfree(bs); 1569 1549 } 1550 + EXPORT_SYMBOL(bioset_free); 1570 1551 1571 1552 /** 1572 1553 * bioset_create - Create a bio_set ··· 1613 1592 bioset_free(bs); 1614 1593 return NULL; 1615 1594 } 1595 + EXPORT_SYMBOL(bioset_create); 1616 1596 1617 1597 static void __init biovec_init_slabs(void) 1618 1598 { ··· 1658 1636 1659 1637 return 0; 1660 1638 } 1661 - 1662 1639 subsys_initcall(init_bio); 1663 - 1664 - EXPORT_SYMBOL(bio_alloc); 1665 - EXPORT_SYMBOL(bio_kmalloc); 1666 - EXPORT_SYMBOL(bio_put); 1667 - EXPORT_SYMBOL(bio_free); 1668 - EXPORT_SYMBOL(bio_endio); 1669 - EXPORT_SYMBOL(bio_init); 1670 - EXPORT_SYMBOL(__bio_clone); 1671 - EXPORT_SYMBOL(bio_clone); 1672 - EXPORT_SYMBOL(bio_phys_segments); 1673 - EXPORT_SYMBOL(bio_add_page); 1674 - EXPORT_SYMBOL(bio_add_pc_page); 1675 - EXPORT_SYMBOL(bio_get_nr_vecs); 1676 - EXPORT_SYMBOL(bio_map_user); 1677 - EXPORT_SYMBOL(bio_unmap_user); 1678 - EXPORT_SYMBOL(bio_map_kern); 1679 - EXPORT_SYMBOL(bio_copy_kern); 1680 - EXPORT_SYMBOL(bio_pair_release); 1681 - EXPORT_SYMBOL(bio_split); 1682 - EXPORT_SYMBOL(bio_copy_user); 1683 - EXPORT_SYMBOL(bio_uncopy_user); 1684 - EXPORT_SYMBOL(bioset_create); 1685 - EXPORT_SYMBOL(bioset_free); 1686 - EXPORT_SYMBOL(bio_alloc_bioset);