Commit 43b774ba1378dc5e952aadb829048bbe90ba33e4
1 parent
d397712bcc
Exists in
master
and in
7 other branches
Btrfs: drop EXPORT symbols from extent_io.c
They should stay out until this is turned into generic code. Signed-off-by: Chris Mason <chris.mason@oracle.com>
Showing 1 changed file with 0 additions and 56 deletions Side-by-side Diff
fs/btrfs/extent_io.c
... | ... | @@ -116,7 +116,6 @@ |
116 | 116 | spin_lock_init(&tree->buffer_lock); |
117 | 117 | tree->mapping = mapping; |
118 | 118 | } |
119 | -EXPORT_SYMBOL(extent_io_tree_init); | |
120 | 119 | |
121 | 120 | static struct extent_state *alloc_extent_state(gfp_t mask) |
122 | 121 | { |
... | ... | @@ -140,7 +139,6 @@ |
140 | 139 | init_waitqueue_head(&state->wq); |
141 | 140 | return state; |
142 | 141 | } |
143 | -EXPORT_SYMBOL(alloc_extent_state); | |
144 | 142 | |
145 | 143 | static void free_extent_state(struct extent_state *state) |
146 | 144 | { |
... | ... | @@ -159,7 +157,6 @@ |
159 | 157 | kmem_cache_free(extent_state_cache, state); |
160 | 158 | } |
161 | 159 | } |
162 | -EXPORT_SYMBOL(free_extent_state); | |
163 | 160 | |
164 | 161 | static struct rb_node *tree_insert(struct rb_root *root, u64 offset, |
165 | 162 | struct rb_node *node) |
... | ... | @@ -580,7 +577,6 @@ |
580 | 577 | cond_resched(); |
581 | 578 | goto again; |
582 | 579 | } |
583 | -EXPORT_SYMBOL(clear_extent_bit); | |
584 | 580 | |
585 | 581 | static int wait_on_state(struct extent_io_tree *tree, |
586 | 582 | struct extent_state *state) |
... | ... | @@ -644,7 +640,6 @@ |
644 | 640 | spin_unlock(&tree->lock); |
645 | 641 | return 0; |
646 | 642 | } |
647 | -EXPORT_SYMBOL(wait_extent_bit); | |
648 | 643 | |
649 | 644 | static void set_state_bits(struct extent_io_tree *tree, |
650 | 645 | struct extent_state *state, |
... | ... | @@ -821,7 +816,6 @@ |
821 | 816 | cond_resched(); |
822 | 817 | goto again; |
823 | 818 | } |
824 | -EXPORT_SYMBOL(set_extent_bit); | |
825 | 819 | |
826 | 820 | /* wrappers around set/clear extent bit */ |
827 | 821 | int set_extent_dirty(struct extent_io_tree *tree, u64 start, u64 end, |
828 | 822 | |
... | ... | @@ -830,14 +824,12 @@ |
830 | 824 | return set_extent_bit(tree, start, end, EXTENT_DIRTY, 0, NULL, |
831 | 825 | mask); |
832 | 826 | } |
833 | -EXPORT_SYMBOL(set_extent_dirty); | |
834 | 827 | |
835 | 828 | int set_extent_ordered(struct extent_io_tree *tree, u64 start, u64 end, |
836 | 829 | gfp_t mask) |
837 | 830 | { |
838 | 831 | return set_extent_bit(tree, start, end, EXTENT_ORDERED, 0, NULL, mask); |
839 | 832 | } |
840 | -EXPORT_SYMBOL(set_extent_ordered); | |
841 | 833 | |
842 | 834 | int set_extent_bits(struct extent_io_tree *tree, u64 start, u64 end, |
843 | 835 | int bits, gfp_t mask) |
844 | 836 | |
... | ... | @@ -845,14 +837,12 @@ |
845 | 837 | return set_extent_bit(tree, start, end, bits, 0, NULL, |
846 | 838 | mask); |
847 | 839 | } |
848 | -EXPORT_SYMBOL(set_extent_bits); | |
849 | 840 | |
850 | 841 | int clear_extent_bits(struct extent_io_tree *tree, u64 start, u64 end, |
851 | 842 | int bits, gfp_t mask) |
852 | 843 | { |
853 | 844 | return clear_extent_bit(tree, start, end, bits, 0, 0, mask); |
854 | 845 | } |
855 | -EXPORT_SYMBOL(clear_extent_bits); | |
856 | 846 | |
857 | 847 | int set_extent_delalloc(struct extent_io_tree *tree, u64 start, u64 end, |
858 | 848 | gfp_t mask) |
... | ... | @@ -861,7 +851,6 @@ |
861 | 851 | EXTENT_DELALLOC | EXTENT_DIRTY, |
862 | 852 | 0, NULL, mask); |
863 | 853 | } |
864 | -EXPORT_SYMBOL(set_extent_delalloc); | |
865 | 854 | |
866 | 855 | int clear_extent_dirty(struct extent_io_tree *tree, u64 start, u64 end, |
867 | 856 | gfp_t mask) |
868 | 857 | |
... | ... | @@ -869,14 +858,12 @@ |
869 | 858 | return clear_extent_bit(tree, start, end, |
870 | 859 | EXTENT_DIRTY | EXTENT_DELALLOC, 0, 0, mask); |
871 | 860 | } |
872 | -EXPORT_SYMBOL(clear_extent_dirty); | |
873 | 861 | |
874 | 862 | int clear_extent_ordered(struct extent_io_tree *tree, u64 start, u64 end, |
875 | 863 | gfp_t mask) |
876 | 864 | { |
877 | 865 | return clear_extent_bit(tree, start, end, EXTENT_ORDERED, 1, 0, mask); |
878 | 866 | } |
879 | -EXPORT_SYMBOL(clear_extent_ordered); | |
880 | 867 | |
881 | 868 | int set_extent_new(struct extent_io_tree *tree, u64 start, u64 end, |
882 | 869 | gfp_t mask) |
... | ... | @@ -884,7 +871,6 @@ |
884 | 871 | return set_extent_bit(tree, start, end, EXTENT_NEW, 0, NULL, |
885 | 872 | mask); |
886 | 873 | } |
887 | -EXPORT_SYMBOL(set_extent_new); | |
888 | 874 | |
889 | 875 | static int clear_extent_new(struct extent_io_tree *tree, u64 start, u64 end, |
890 | 876 | gfp_t mask) |
... | ... | @@ -898,7 +884,6 @@ |
898 | 884 | return set_extent_bit(tree, start, end, EXTENT_UPTODATE, 0, NULL, |
899 | 885 | mask); |
900 | 886 | } |
901 | -EXPORT_SYMBOL(set_extent_uptodate); | |
902 | 887 | |
903 | 888 | static int clear_extent_uptodate(struct extent_io_tree *tree, u64 start, |
904 | 889 | u64 end, gfp_t mask) |
... | ... | @@ -923,7 +908,6 @@ |
923 | 908 | { |
924 | 909 | return wait_extent_bit(tree, start, end, EXTENT_WRITEBACK); |
925 | 910 | } |
926 | -EXPORT_SYMBOL(wait_on_extent_writeback); | |
927 | 911 | |
928 | 912 | /* |
929 | 913 | * either insert or lock state struct between start and end use mask to tell |
... | ... | @@ -946,7 +930,6 @@ |
946 | 930 | } |
947 | 931 | return err; |
948 | 932 | } |
949 | -EXPORT_SYMBOL(lock_extent); | |
950 | 933 | |
951 | 934 | int try_lock_extent(struct extent_io_tree *tree, u64 start, u64 end, |
952 | 935 | gfp_t mask) |
953 | 936 | |
... | ... | @@ -964,14 +947,12 @@ |
964 | 947 | } |
965 | 948 | return 1; |
966 | 949 | } |
967 | -EXPORT_SYMBOL(try_lock_extent); | |
968 | 950 | |
969 | 951 | int unlock_extent(struct extent_io_tree *tree, u64 start, u64 end, |
970 | 952 | gfp_t mask) |
971 | 953 | { |
972 | 954 | return clear_extent_bit(tree, start, end, EXTENT_LOCKED, 1, 0, mask); |
973 | 955 | } |
974 | -EXPORT_SYMBOL(unlock_extent); | |
975 | 956 | |
976 | 957 | /* |
977 | 958 | * helper function to set pages and extents in the tree dirty |
... | ... | @@ -992,7 +973,6 @@ |
992 | 973 | set_extent_dirty(tree, start, end, GFP_NOFS); |
993 | 974 | return 0; |
994 | 975 | } |
995 | -EXPORT_SYMBOL(set_range_dirty); | |
996 | 976 | |
997 | 977 | /* |
998 | 978 | * helper function to set both pages and extents in the tree writeback |
... | ... | @@ -1053,7 +1033,6 @@ |
1053 | 1033 | spin_unlock(&tree->lock); |
1054 | 1034 | return ret; |
1055 | 1035 | } |
1056 | -EXPORT_SYMBOL(find_first_extent_bit); | |
1057 | 1036 | |
1058 | 1037 | /* find the first state struct with 'bits' set after 'start', and |
1059 | 1038 | * return it. tree->lock must be held. NULL will returned if |
... | ... | @@ -1085,7 +1064,6 @@ |
1085 | 1064 | out: |
1086 | 1065 | return NULL; |
1087 | 1066 | } |
1088 | -EXPORT_SYMBOL(find_first_extent_bit_state); | |
1089 | 1067 | |
1090 | 1068 | /* |
1091 | 1069 | * find a contiguous range of bytes in the file marked as delalloc, not |
... | ... | @@ -1372,7 +1350,6 @@ |
1372 | 1350 | } |
1373 | 1351 | return 0; |
1374 | 1352 | } |
1375 | -EXPORT_SYMBOL(extent_clear_unlock_delalloc); | |
1376 | 1353 | |
1377 | 1354 | /* |
1378 | 1355 | * count the number of bytes in the tree that have a given bit(s) |
... | ... | @@ -1598,7 +1575,6 @@ |
1598 | 1575 | spin_unlock(&tree->lock); |
1599 | 1576 | return bitset; |
1600 | 1577 | } |
1601 | -EXPORT_SYMBOL(test_range_bit); | |
1602 | 1578 | |
1603 | 1579 | /* |
1604 | 1580 | * helper function to set a given page up to date if all the |
... | ... | @@ -1952,7 +1928,6 @@ |
1952 | 1928 | set_page_private(page, EXTENT_PAGE_PRIVATE); |
1953 | 1929 | } |
1954 | 1930 | } |
1955 | -EXPORT_SYMBOL(set_page_extent_mapped); | |
1956 | 1931 | |
1957 | 1932 | static void set_page_extent_head(struct page *page, unsigned long len) |
1958 | 1933 | { |
... | ... | @@ -2128,7 +2103,6 @@ |
2128 | 2103 | submit_one_bio(READ, bio, 0, bio_flags); |
2129 | 2104 | return ret; |
2130 | 2105 | } |
2131 | -EXPORT_SYMBOL(extent_read_full_page); | |
2132 | 2106 | |
2133 | 2107 | /* |
2134 | 2108 | * the writepage semantics are similar to regular writepage. extent |
... | ... | @@ -2533,7 +2507,6 @@ |
2533 | 2507 | submit_one_bio(WRITE, epd.bio, 0, 0); |
2534 | 2508 | return ret; |
2535 | 2509 | } |
2536 | -EXPORT_SYMBOL(extent_write_full_page); | |
2537 | 2510 | |
2538 | 2511 | int extent_write_locked_range(struct extent_io_tree *tree, struct inode *inode, |
2539 | 2512 | u64 start, u64 end, get_extent_t *get_extent, |
2540 | 2513 | |
... | ... | @@ -2579,9 +2552,7 @@ |
2579 | 2552 | submit_one_bio(WRITE, epd.bio, 0, 0); |
2580 | 2553 | return ret; |
2581 | 2554 | } |
2582 | -EXPORT_SYMBOL(extent_write_locked_range); | |
2583 | 2555 | |
2584 | - | |
2585 | 2556 | int extent_writepages(struct extent_io_tree *tree, |
2586 | 2557 | struct address_space *mapping, |
2587 | 2558 | get_extent_t *get_extent, |
... | ... | @@ -2602,7 +2573,6 @@ |
2602 | 2573 | submit_one_bio(WRITE, epd.bio, 0, 0); |
2603 | 2574 | return ret; |
2604 | 2575 | } |
2605 | -EXPORT_SYMBOL(extent_writepages); | |
2606 | 2576 | |
2607 | 2577 | int extent_readpages(struct extent_io_tree *tree, |
2608 | 2578 | struct address_space *mapping, |
... | ... | @@ -2643,7 +2613,6 @@ |
2643 | 2613 | submit_one_bio(READ, bio, 0, bio_flags); |
2644 | 2614 | return 0; |
2645 | 2615 | } |
2646 | -EXPORT_SYMBOL(extent_readpages); | |
2647 | 2616 | |
2648 | 2617 | /* |
2649 | 2618 | * basic invalidatepage code, this waits on any locked or writeback |
... | ... | @@ -2668,7 +2637,6 @@ |
2668 | 2637 | 1, 1, GFP_NOFS); |
2669 | 2638 | return 0; |
2670 | 2639 | } |
2671 | -EXPORT_SYMBOL(extent_invalidatepage); | |
2672 | 2640 | |
2673 | 2641 | /* |
2674 | 2642 | * simple commit_write call, set_range_dirty is used to mark both |
... | ... | @@ -2689,7 +2657,6 @@ |
2689 | 2657 | } |
2690 | 2658 | return 0; |
2691 | 2659 | } |
2692 | -EXPORT_SYMBOL(extent_commit_write); | |
2693 | 2660 | |
2694 | 2661 | int extent_prepare_write(struct extent_io_tree *tree, |
2695 | 2662 | struct inode *inode, struct page *page, |
... | ... | @@ -2787,7 +2754,6 @@ |
2787 | 2754 | /* FIXME, zero out newly allocated blocks on error */ |
2788 | 2755 | return err; |
2789 | 2756 | } |
2790 | -EXPORT_SYMBOL(extent_prepare_write); | |
2791 | 2757 | |
2792 | 2758 | /* |
2793 | 2759 | * a helper for releasepage, this tests for areas of the page that |
... | ... | @@ -2813,7 +2779,6 @@ |
2813 | 2779 | } |
2814 | 2780 | return ret; |
2815 | 2781 | } |
2816 | -EXPORT_SYMBOL(try_release_extent_state); | |
2817 | 2782 | |
2818 | 2783 | /* |
2819 | 2784 | * a helper for releasepage. As long as there are no locked extents |
... | ... | @@ -2863,7 +2828,6 @@ |
2863 | 2828 | } |
2864 | 2829 | return try_release_extent_state(map, tree, page, mask); |
2865 | 2830 | } |
2866 | -EXPORT_SYMBOL(try_release_extent_mapping); | |
2867 | 2831 | |
2868 | 2832 | sector_t extent_bmap(struct address_space *mapping, sector_t iblock, |
2869 | 2833 | get_extent_t *get_extent) |
... | ... | @@ -3042,7 +3006,6 @@ |
3042 | 3006 | __free_extent_buffer(eb); |
3043 | 3007 | return exists; |
3044 | 3008 | } |
3045 | -EXPORT_SYMBOL(alloc_extent_buffer); | |
3046 | 3009 | |
3047 | 3010 | struct extent_buffer *find_extent_buffer(struct extent_io_tree *tree, |
3048 | 3011 | u64 start, unsigned long len, |
... | ... | @@ -3061,7 +3024,6 @@ |
3061 | 3024 | |
3062 | 3025 | return eb; |
3063 | 3026 | } |
3064 | -EXPORT_SYMBOL(find_extent_buffer); | |
3065 | 3027 | |
3066 | 3028 | void free_extent_buffer(struct extent_buffer *eb) |
3067 | 3029 | { |
... | ... | @@ -3073,7 +3035,6 @@ |
3073 | 3035 | |
3074 | 3036 | WARN_ON(1); |
3075 | 3037 | } |
3076 | -EXPORT_SYMBOL(free_extent_buffer); | |
3077 | 3038 | |
3078 | 3039 | int clear_extent_buffer_dirty(struct extent_io_tree *tree, |
3079 | 3040 | struct extent_buffer *eb) |
... | ... | @@ -3128,7 +3089,6 @@ |
3128 | 3089 | } |
3129 | 3090 | return 0; |
3130 | 3091 | } |
3131 | -EXPORT_SYMBOL(clear_extent_buffer_dirty); | |
3132 | 3092 | |
3133 | 3093 | int wait_on_extent_buffer_writeback(struct extent_io_tree *tree, |
3134 | 3094 | struct extent_buffer *eb) |
... | ... | @@ -3136,7 +3096,6 @@ |
3136 | 3096 | return wait_on_extent_writeback(tree, eb->start, |
3137 | 3097 | eb->start + eb->len - 1); |
3138 | 3098 | } |
3139 | -EXPORT_SYMBOL(wait_on_extent_buffer_writeback); | |
3140 | 3099 | |
3141 | 3100 | int set_extent_buffer_dirty(struct extent_io_tree *tree, |
3142 | 3101 | struct extent_buffer *eb) |
... | ... | @@ -3167,7 +3126,6 @@ |
3167 | 3126 | } |
3168 | 3127 | return 0; |
3169 | 3128 | } |
3170 | -EXPORT_SYMBOL(set_extent_buffer_dirty); | |
3171 | 3129 | |
3172 | 3130 | int clear_extent_buffer_uptodate(struct extent_io_tree *tree, |
3173 | 3131 | struct extent_buffer *eb) |
... | ... | @@ -3212,7 +3170,6 @@ |
3212 | 3170 | } |
3213 | 3171 | return 0; |
3214 | 3172 | } |
3215 | -EXPORT_SYMBOL(set_extent_buffer_uptodate); | |
3216 | 3173 | |
3217 | 3174 | int extent_range_uptodate(struct extent_io_tree *tree, |
3218 | 3175 | u64 start, u64 end) |
... | ... | @@ -3267,7 +3224,6 @@ |
3267 | 3224 | } |
3268 | 3225 | return pg_uptodate; |
3269 | 3226 | } |
3270 | -EXPORT_SYMBOL(extent_buffer_uptodate); | |
3271 | 3227 | |
3272 | 3228 | int read_extent_buffer_pages(struct extent_io_tree *tree, |
3273 | 3229 | struct extent_buffer *eb, |
... | ... | @@ -3366,7 +3322,6 @@ |
3366 | 3322 | } |
3367 | 3323 | return ret; |
3368 | 3324 | } |
3369 | -EXPORT_SYMBOL(read_extent_buffer_pages); | |
3370 | 3325 | |
3371 | 3326 | void read_extent_buffer(struct extent_buffer *eb, void *dstv, |
3372 | 3327 | unsigned long start, |
... | ... | @@ -3399,7 +3354,6 @@ |
3399 | 3354 | i++; |
3400 | 3355 | } |
3401 | 3356 | } |
3402 | -EXPORT_SYMBOL(read_extent_buffer); | |
3403 | 3357 | |
3404 | 3358 | int map_private_extent_buffer(struct extent_buffer *eb, unsigned long start, |
3405 | 3359 | unsigned long min_len, char **token, char **map, |
... | ... | @@ -3439,7 +3393,6 @@ |
3439 | 3393 | *map_len = PAGE_CACHE_SIZE - offset; |
3440 | 3394 | return 0; |
3441 | 3395 | } |
3442 | -EXPORT_SYMBOL(map_private_extent_buffer); | |
3443 | 3396 | |
3444 | 3397 | int map_extent_buffer(struct extent_buffer *eb, unsigned long start, |
3445 | 3398 | unsigned long min_len, |
3446 | 3399 | |
... | ... | @@ -3465,13 +3418,11 @@ |
3465 | 3418 | } |
3466 | 3419 | return err; |
3467 | 3420 | } |
3468 | -EXPORT_SYMBOL(map_extent_buffer); | |
3469 | 3421 | |
3470 | 3422 | void unmap_extent_buffer(struct extent_buffer *eb, char *token, int km) |
3471 | 3423 | { |
3472 | 3424 | kunmap_atomic(token, km); |
3473 | 3425 | } |
3474 | -EXPORT_SYMBOL(unmap_extent_buffer); | |
3475 | 3426 | |
3476 | 3427 | int memcmp_extent_buffer(struct extent_buffer *eb, const void *ptrv, |
3477 | 3428 | unsigned long start, |
... | ... | @@ -3509,7 +3460,6 @@ |
3509 | 3460 | } |
3510 | 3461 | return ret; |
3511 | 3462 | } |
3512 | -EXPORT_SYMBOL(memcmp_extent_buffer); | |
3513 | 3463 | |
3514 | 3464 | void write_extent_buffer(struct extent_buffer *eb, const void *srcv, |
3515 | 3465 | unsigned long start, unsigned long len) |
... | ... | @@ -3542,7 +3492,6 @@ |
3542 | 3492 | i++; |
3543 | 3493 | } |
3544 | 3494 | } |
3545 | -EXPORT_SYMBOL(write_extent_buffer); | |
3546 | 3495 | |
3547 | 3496 | void memset_extent_buffer(struct extent_buffer *eb, char c, |
3548 | 3497 | unsigned long start, unsigned long len) |
... | ... | @@ -3573,7 +3522,6 @@ |
3573 | 3522 | i++; |
3574 | 3523 | } |
3575 | 3524 | } |
3576 | -EXPORT_SYMBOL(memset_extent_buffer); | |
3577 | 3525 | |
3578 | 3526 | void copy_extent_buffer(struct extent_buffer *dst, struct extent_buffer *src, |
3579 | 3527 | unsigned long dst_offset, unsigned long src_offset, |
... | ... | @@ -3608,7 +3556,6 @@ |
3608 | 3556 | i++; |
3609 | 3557 | } |
3610 | 3558 | } |
3611 | -EXPORT_SYMBOL(copy_extent_buffer); | |
3612 | 3559 | |
3613 | 3560 | static void move_pages(struct page *dst_page, struct page *src_page, |
3614 | 3561 | unsigned long dst_off, unsigned long src_off, |
... | ... | @@ -3692,7 +3639,6 @@ |
3692 | 3639 | len -= cur; |
3693 | 3640 | } |
3694 | 3641 | } |
3695 | -EXPORT_SYMBOL(memcpy_extent_buffer); | |
3696 | 3642 | |
3697 | 3643 | void memmove_extent_buffer(struct extent_buffer *dst, unsigned long dst_offset, |
3698 | 3644 | unsigned long src_offset, unsigned long len) |
... | ... | @@ -3741,7 +3687,6 @@ |
3741 | 3687 | len -= cur; |
3742 | 3688 | } |
3743 | 3689 | } |
3744 | -EXPORT_SYMBOL(memmove_extent_buffer); | |
3745 | 3690 | |
3746 | 3691 | int try_release_extent_buffer(struct extent_io_tree *tree, struct page *page) |
3747 | 3692 | { |
... | ... | @@ -3770,5 +3715,4 @@ |
3770 | 3715 | spin_unlock(&tree->buffer_lock); |
3771 | 3716 | return ret; |
3772 | 3717 | } |
3773 | -EXPORT_SYMBOL(try_release_extent_buffer); |