summaryrefslogtreecommitdiffstats
path: root/fs
diff options
context:
space:
mode:
authorWei Yongjun <weiyongjun1@huawei.com>2018-01-05 04:41:20 -0500
committerJaegeuk Kim <jaegeuk@kernel.org>2018-01-16 18:39:59 -0500
commit94b1e10e745424fe6183023ff5a525bf7d12f779 (patch)
treeb6e9c59bcc540120402e51ccdbaa3a9ddf3c1427 /fs
parent7e65be49ed94f89cbf5add7dadf6e338f0cc6e7b (diff)
f2fs: make local functions static
Fixes the following sparse warnings: fs/f2fs/segment.c:887:6: warning: symbol '__check_sit_bitmap' was not declared. Should it be static? fs/f2fs/segment.c:1327:6: warning: symbol 'f2fs_wait_discard_bio' was not declared. Should it be static? fs/f2fs/super.c:1661:5: warning: symbol 'f2fs_get_projid' was not declared. Should it be static? Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com> Reviewed-by: Chao Yu <yuchao0@huawei.com> Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Diffstat (limited to 'fs')
-rw-r--r--fs/f2fs/segment.c4
-rw-r--r--fs/f2fs/super.c2
2 files changed, 3 insertions, 3 deletions
diff --git a/fs/f2fs/segment.c b/fs/f2fs/segment.c
index f2842a8a1341..b4b90980dc7b 100644
--- a/fs/f2fs/segment.c
+++ b/fs/f2fs/segment.c
@@ -884,7 +884,7 @@ static void f2fs_submit_discard_endio(struct bio *bio)
884 bio_put(bio); 884 bio_put(bio);
885} 885}
886 886
887void __check_sit_bitmap(struct f2fs_sb_info *sbi, 887static void __check_sit_bitmap(struct f2fs_sb_info *sbi,
888 block_t start, block_t end) 888 block_t start, block_t end)
889{ 889{
890#ifdef CONFIG_F2FS_CHECK_FS 890#ifdef CONFIG_F2FS_CHECK_FS
@@ -1324,7 +1324,7 @@ static void __wait_all_discard_cmd(struct f2fs_sb_info *sbi,
1324} 1324}
1325 1325
1326/* This should be covered by global mutex, &sit_i->sentry_lock */ 1326/* This should be covered by global mutex, &sit_i->sentry_lock */
1327void f2fs_wait_discard_bio(struct f2fs_sb_info *sbi, block_t blkaddr) 1327static void f2fs_wait_discard_bio(struct f2fs_sb_info *sbi, block_t blkaddr)
1328{ 1328{
1329 struct discard_cmd_control *dcc = SM_I(sbi)->dcc_info; 1329 struct discard_cmd_control *dcc = SM_I(sbi)->dcc_info;
1330 struct discard_cmd *dc; 1330 struct discard_cmd *dc;
diff --git a/fs/f2fs/super.c b/fs/f2fs/super.c
index 4904d1644052..8b86a483ddd7 100644
--- a/fs/f2fs/super.c
+++ b/fs/f2fs/super.c
@@ -1691,7 +1691,7 @@ void f2fs_quota_off_umount(struct super_block *sb)
1691 f2fs_quota_off(sb, type); 1691 f2fs_quota_off(sb, type);
1692} 1692}
1693 1693
1694int f2fs_get_projid(struct inode *inode, kprojid_t *projid) 1694static int f2fs_get_projid(struct inode *inode, kprojid_t *projid)
1695{ 1695{
1696 *projid = F2FS_I(inode)->i_projid; 1696 *projid = F2FS_I(inode)->i_projid;
1697 return 0; 1697 return 0;