Skip to content

Commit 0ef8183

Browse files
chaseyuJaegeuk Kim
authored andcommitted
f2fs: add prefix for exported symbols
to avoid polluting global symbol namespace. Signed-off-by: Chao Yu <yuchao0@huawei.com> Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
1 parent ba87a45 commit 0ef8183

6 files changed

Lines changed: 15 additions & 15 deletions

File tree

‎fs/f2fs/compress.c‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -949,7 +949,7 @@ static int prepare_compress_overwrite(struct compress_ctx *cc,
949949
}
950950

951951
if (prealloc) {
952-
__do_map_lock(sbi, F2FS_GET_BLOCK_PRE_AIO, true);
952+
f2fs_do_map_lock(sbi, F2FS_GET_BLOCK_PRE_AIO, true);
953953

954954
set_new_dnode(&dn, cc->inode, NULL, NULL, 0);
955955

@@ -964,7 +964,7 @@ static int prepare_compress_overwrite(struct compress_ctx *cc,
964964
break;
965965
}
966966

967-
__do_map_lock(sbi, F2FS_GET_BLOCK_PRE_AIO, false);
967+
f2fs_do_map_lock(sbi, F2FS_GET_BLOCK_PRE_AIO, false);
968968
}
969969

970970
if (likely(!ret)) {

‎fs/f2fs/data.c‎

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1426,7 +1426,7 @@ int f2fs_preallocate_blocks(struct kiocb *iocb, struct iov_iter *from)
14261426
return err;
14271427
}
14281428

1429-
void __do_map_lock(struct f2fs_sb_info *sbi, int flag, bool lock)
1429+
void f2fs_do_map_lock(struct f2fs_sb_info *sbi, int flag, bool lock)
14301430
{
14311431
if (flag == F2FS_GET_BLOCK_PRE_AIO) {
14321432
if (lock)
@@ -1491,7 +1491,7 @@ int f2fs_map_blocks(struct inode *inode, struct f2fs_map_blocks *map,
14911491

14921492
next_dnode:
14931493
if (map->m_may_create)
1494-
__do_map_lock(sbi, flag, true);
1494+
f2fs_do_map_lock(sbi, flag, true);
14951495

14961496
/* When reading holes, we need its node page */
14971497
set_new_dnode(&dn, inode, NULL, NULL, 0);
@@ -1640,7 +1640,7 @@ int f2fs_map_blocks(struct inode *inode, struct f2fs_map_blocks *map,
16401640
f2fs_put_dnode(&dn);
16411641

16421642
if (map->m_may_create) {
1643-
__do_map_lock(sbi, flag, false);
1643+
f2fs_do_map_lock(sbi, flag, false);
16441644
f2fs_balance_fs(sbi, dn.node_changed);
16451645
}
16461646
goto next_dnode;
@@ -1666,7 +1666,7 @@ int f2fs_map_blocks(struct inode *inode, struct f2fs_map_blocks *map,
16661666
f2fs_put_dnode(&dn);
16671667
unlock_out:
16681668
if (map->m_may_create) {
1669-
__do_map_lock(sbi, flag, false);
1669+
f2fs_do_map_lock(sbi, flag, false);
16701670
f2fs_balance_fs(sbi, dn.node_changed);
16711671
}
16721672
out:
@@ -3217,7 +3217,7 @@ static int prepare_write_begin(struct f2fs_sb_info *sbi,
32173217

32183218
if (f2fs_has_inline_data(inode) ||
32193219
(pos & PAGE_MASK) >= i_size_read(inode)) {
3220-
__do_map_lock(sbi, flag, true);
3220+
f2fs_do_map_lock(sbi, flag, true);
32213221
locked = true;
32223222
}
32233223

@@ -3254,7 +3254,7 @@ static int prepare_write_begin(struct f2fs_sb_info *sbi,
32543254
err = f2fs_get_dnode_of_data(&dn, index, LOOKUP_NODE);
32553255
if (err || dn.data_blkaddr == NULL_ADDR) {
32563256
f2fs_put_dnode(&dn);
3257-
__do_map_lock(sbi, F2FS_GET_BLOCK_PRE_AIO,
3257+
f2fs_do_map_lock(sbi, F2FS_GET_BLOCK_PRE_AIO,
32583258
true);
32593259
WARN_ON(flag != F2FS_GET_BLOCK_PRE_AIO);
32603260
locked = true;
@@ -3270,7 +3270,7 @@ static int prepare_write_begin(struct f2fs_sb_info *sbi,
32703270
f2fs_put_dnode(&dn);
32713271
unlock_out:
32723272
if (locked)
3273-
__do_map_lock(sbi, flag, false);
3273+
f2fs_do_map_lock(sbi, flag, false);
32743274
return err;
32753275
}
32763276

‎fs/f2fs/f2fs.h‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3325,7 +3325,7 @@ block_t f2fs_get_unusable_blocks(struct f2fs_sb_info *sbi);
33253325
int f2fs_disable_cp_again(struct f2fs_sb_info *sbi, block_t unusable);
33263326
void f2fs_release_discard_addrs(struct f2fs_sb_info *sbi);
33273327
int f2fs_npages_for_summary_flush(struct f2fs_sb_info *sbi, bool for_ra);
3328-
void allocate_segment_for_resize(struct f2fs_sb_info *sbi, int type,
3328+
void f2fs_allocate_segment_for_resize(struct f2fs_sb_info *sbi, int type,
33293329
unsigned int start, unsigned int end);
33303330
void f2fs_allocate_new_segments(struct f2fs_sb_info *sbi, int type);
33313331
int f2fs_trim_fs(struct f2fs_sb_info *sbi, struct fstrim_range *range);
@@ -3448,7 +3448,7 @@ struct page *f2fs_get_lock_data_page(struct inode *inode, pgoff_t index,
34483448
struct page *f2fs_get_new_data_page(struct inode *inode,
34493449
struct page *ipage, pgoff_t index, bool new_i_size);
34503450
int f2fs_do_write_data_page(struct f2fs_io_info *fio);
3451-
void __do_map_lock(struct f2fs_sb_info *sbi, int flag, bool lock);
3451+
void f2fs_do_map_lock(struct f2fs_sb_info *sbi, int flag, bool lock);
34523452
int f2fs_map_blocks(struct inode *inode, struct f2fs_map_blocks *map,
34533453
int create, int flag);
34543454
int f2fs_fiemap(struct inode *inode, struct fiemap_extent_info *fieinfo,

‎fs/f2fs/file.c‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,11 +105,11 @@ static vm_fault_t f2fs_vm_page_mkwrite(struct vm_fault *vmf)
105105

106106
if (need_alloc) {
107107
/* block allocation */
108-
__do_map_lock(sbi, F2FS_GET_BLOCK_PRE_AIO, true);
108+
f2fs_do_map_lock(sbi, F2FS_GET_BLOCK_PRE_AIO, true);
109109
set_new_dnode(&dn, inode, NULL, NULL, 0);
110110
err = f2fs_get_block(&dn, page->index);
111111
f2fs_put_dnode(&dn);
112-
__do_map_lock(sbi, F2FS_GET_BLOCK_PRE_AIO, false);
112+
f2fs_do_map_lock(sbi, F2FS_GET_BLOCK_PRE_AIO, false);
113113
}
114114

115115
#ifdef CONFIG_F2FS_FS_COMPRESSION

‎fs/f2fs/gc.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1441,7 +1441,7 @@ static int free_segment_range(struct f2fs_sb_info *sbi,
14411441

14421442
/* Move out cursegs from the target range */
14431443
for (type = CURSEG_HOT_DATA; type < NR_CURSEG_TYPE; type++)
1444-
allocate_segment_for_resize(sbi, type, start, end);
1444+
f2fs_allocate_segment_for_resize(sbi, type, start, end);
14451445

14461446
/* do GC to move out valid blocks in the range */
14471447
for (segno = start; segno <= end; segno += sbi->segs_per_sec) {

‎fs/f2fs/segment.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2700,7 +2700,7 @@ static void allocate_segment_by_default(struct f2fs_sb_info *sbi,
27002700
stat_inc_seg_type(sbi, curseg);
27012701
}
27022702

2703-
void allocate_segment_for_resize(struct f2fs_sb_info *sbi, int type,
2703+
void f2fs_allocate_segment_for_resize(struct f2fs_sb_info *sbi, int type,
27042704
unsigned int start, unsigned int end)
27052705
{
27062706
struct curseg_info *curseg = CURSEG_I(sbi, type);

0 commit comments

Comments
 (0)