aboutsummaryrefslogtreecommitdiffstats
path: root/fs/ext4/extents.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/ext4/extents.c')
-rw-r--r--fs/ext4/extents.c36
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 */
742int ext4_ext_insert_index(handle_t *handle, struct inode *inode, 742static 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 */
1235int 1235static int ext4_ext_search_left(struct inode *inode,
1236ext4_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 */
1300int 1300static int ext4_ext_search_right(struct inode *inode,
1301ext4_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 */
1588int ext4_ext_try_to_merge(struct inode *inode, 1588static 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 */
1635unsigned int ext4_ext_check_overlap(struct inode *inode, 1635static 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
1848int ext4_ext_walk_space(struct inode *inode, ext4_lblk_t block, 1848static 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;