diff options
author | Theodore Ts'o <tytso@mit.edu> | 2010-10-27 21:30:14 -0400 |
---|---|---|
committer | Theodore Ts'o <tytso@mit.edu> | 2010-10-27 21:30:14 -0400 |
commit | 1f109d5a17b438c4a54cbf6fd87a249e3d72fb21 (patch) | |
tree | f58c6fd431975bf900b502b80122e175065da657 /fs/ext4/extents.c | |
parent | 5dabfc78dcedbe46cb2e4872dde448de3cec2979 (diff) |
ext4: make various ext4 functions be static
These functions have no need to be exported beyond file context.
No functions needed to be moved for this commit; just some function
declarations changed to be static and removed from header files.
(A similar patch was submitted by Eric Sandeen, but I wanted to handle
code movement in separate patches to make sure code changes didn't
accidentally get dropped.)
Signed-off-by: Eric Sandeen <sandeen@redhat.com>
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
Diffstat (limited to 'fs/ext4/extents.c')
-rw-r--r-- | fs/ext4/extents.c | 36 |
1 files changed, 18 insertions, 18 deletions
diff --git a/fs/ext4/extents.c b/fs/ext4/extents.c index a1e20c8c4e0c..bd95375314ab 100644 --- a/fs/ext4/extents.c +++ b/fs/ext4/extents.c | |||
@@ -739,9 +739,9 @@ err: | |||
739 | * insert new index [@logical;@ptr] into the block at @curp; | 739 | * insert new index [@logical;@ptr] into the block at @curp; |
740 | * check where to insert: before @curp or after @curp | 740 | * check where to insert: before @curp or after @curp |
741 | */ | 741 | */ |
742 | int ext4_ext_insert_index(handle_t *handle, struct inode *inode, | 742 | static int ext4_ext_insert_index(handle_t *handle, struct inode *inode, |
743 | struct ext4_ext_path *curp, | 743 | struct ext4_ext_path *curp, |
744 | int logical, ext4_fsblk_t ptr) | 744 | int logical, ext4_fsblk_t ptr) |
745 | { | 745 | { |
746 | struct ext4_extent_idx *ix; | 746 | struct ext4_extent_idx *ix; |
747 | int len, err; | 747 | int len, err; |
@@ -1232,9 +1232,9 @@ out: | |||
1232 | * returns 0 at @phys | 1232 | * returns 0 at @phys |
1233 | * return value contains 0 (success) or error code | 1233 | * return value contains 0 (success) or error code |
1234 | */ | 1234 | */ |
1235 | int | 1235 | static int ext4_ext_search_left(struct inode *inode, |
1236 | ext4_ext_search_left(struct inode *inode, struct ext4_ext_path *path, | 1236 | struct ext4_ext_path *path, |
1237 | ext4_lblk_t *logical, ext4_fsblk_t *phys) | 1237 | ext4_lblk_t *logical, ext4_fsblk_t *phys) |
1238 | { | 1238 | { |
1239 | struct ext4_extent_idx *ix; | 1239 | struct ext4_extent_idx *ix; |
1240 | struct ext4_extent *ex; | 1240 | struct ext4_extent *ex; |
@@ -1297,9 +1297,9 @@ ext4_ext_search_left(struct inode *inode, struct ext4_ext_path *path, | |||
1297 | * returns 0 at @phys | 1297 | * returns 0 at @phys |
1298 | * return value contains 0 (success) or error code | 1298 | * return value contains 0 (success) or error code |
1299 | */ | 1299 | */ |
1300 | int | 1300 | static int ext4_ext_search_right(struct inode *inode, |
1301 | ext4_ext_search_right(struct inode *inode, struct ext4_ext_path *path, | 1301 | struct ext4_ext_path *path, |
1302 | ext4_lblk_t *logical, ext4_fsblk_t *phys) | 1302 | ext4_lblk_t *logical, ext4_fsblk_t *phys) |
1303 | { | 1303 | { |
1304 | struct buffer_head *bh = NULL; | 1304 | struct buffer_head *bh = NULL; |
1305 | struct ext4_extent_header *eh; | 1305 | struct ext4_extent_header *eh; |
@@ -1585,9 +1585,9 @@ ext4_can_extents_be_merged(struct inode *inode, struct ext4_extent *ex1, | |||
1585 | * Returns 0 if the extents (ex and ex+1) were _not_ merged and returns | 1585 | * Returns 0 if the extents (ex and ex+1) were _not_ merged and returns |
1586 | * 1 if they got merged. | 1586 | * 1 if they got merged. |
1587 | */ | 1587 | */ |
1588 | int ext4_ext_try_to_merge(struct inode *inode, | 1588 | static int ext4_ext_try_to_merge(struct inode *inode, |
1589 | struct ext4_ext_path *path, | 1589 | struct ext4_ext_path *path, |
1590 | struct ext4_extent *ex) | 1590 | struct ext4_extent *ex) |
1591 | { | 1591 | { |
1592 | struct ext4_extent_header *eh; | 1592 | struct ext4_extent_header *eh; |
1593 | unsigned int depth, len; | 1593 | unsigned int depth, len; |
@@ -1632,9 +1632,9 @@ int ext4_ext_try_to_merge(struct inode *inode, | |||
1632 | * such that there will be no overlap, and then returns 1. | 1632 | * such that there will be no overlap, and then returns 1. |
1633 | * If there is no overlap found, it returns 0. | 1633 | * If there is no overlap found, it returns 0. |
1634 | */ | 1634 | */ |
1635 | unsigned int ext4_ext_check_overlap(struct inode *inode, | 1635 | static unsigned int ext4_ext_check_overlap(struct inode *inode, |
1636 | struct ext4_extent *newext, | 1636 | struct ext4_extent *newext, |
1637 | struct ext4_ext_path *path) | 1637 | struct ext4_ext_path *path) |
1638 | { | 1638 | { |
1639 | ext4_lblk_t b1, b2; | 1639 | ext4_lblk_t b1, b2; |
1640 | unsigned int depth, len1; | 1640 | unsigned int depth, len1; |
@@ -1845,9 +1845,9 @@ cleanup: | |||
1845 | return err; | 1845 | return err; |
1846 | } | 1846 | } |
1847 | 1847 | ||
1848 | int ext4_ext_walk_space(struct inode *inode, ext4_lblk_t block, | 1848 | static int ext4_ext_walk_space(struct inode *inode, ext4_lblk_t block, |
1849 | ext4_lblk_t num, ext_prepare_callback func, | 1849 | ext4_lblk_t num, ext_prepare_callback func, |
1850 | void *cbdata) | 1850 | void *cbdata) |
1851 | { | 1851 | { |
1852 | struct ext4_ext_path *path = NULL; | 1852 | struct ext4_ext_path *path = NULL; |
1853 | struct ext4_ext_cache cbex; | 1853 | struct ext4_ext_cache cbex; |