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