f2fs: remove unused function overprovision_sections
diff mbox

Message ID 1502700763-73036-1-git-send-email-yunlong.song@huawei.com
State New
Headers show

Commit Message

Yunlong Song Aug. 14, 2017, 8:52 a.m. UTC
Signed-off-by: Yunlong Song <yunlong.song@huawei.com>
---
 fs/f2fs/segment.h | 5 -----
 1 file changed, 5 deletions(-)

Comments

Chao Yu Aug. 15, 2017, 12:36 p.m. UTC | #1
On 2017/8/14 16:52, Yunlong Song wrote:
> Signed-off-by: Yunlong Song <yunlong.song@huawei.com>

Reviewed-by: Chao Yu <yuchao0@huawei.com>

> ---
>  fs/f2fs/segment.h | 5 -----
>  1 file changed, 5 deletions(-)
> 
> diff --git a/fs/f2fs/segment.h b/fs/f2fs/segment.h
> index 7f700e5..b9b4f85 100644
> --- a/fs/f2fs/segment.h
> +++ b/fs/f2fs/segment.h
> @@ -492,11 +492,6 @@ static inline int overprovision_segments(struct f2fs_sb_info *sbi)
>  	return SM_I(sbi)->ovp_segments;
>  }
>  
> -static inline int overprovision_sections(struct f2fs_sb_info *sbi)
> -{
> -	return GET_SEC_FROM_SEG(sbi, (unsigned int)overprovision_segments(sbi));
> -}
> -
>  static inline int reserved_sections(struct f2fs_sb_info *sbi)
>  {
>  	return GET_SEC_FROM_SEG(sbi, (unsigned int)reserved_segments(sbi));
>

Patch
diff mbox

diff --git a/fs/f2fs/segment.h b/fs/f2fs/segment.h
index 7f700e5..b9b4f85 100644
--- a/fs/f2fs/segment.h
+++ b/fs/f2fs/segment.h
@@ -492,11 +492,6 @@  static inline int overprovision_segments(struct f2fs_sb_info *sbi)
 	return SM_I(sbi)->ovp_segments;
 }
 
-static inline int overprovision_sections(struct f2fs_sb_info *sbi)
-{
-	return GET_SEC_FROM_SEG(sbi, (unsigned int)overprovision_segments(sbi));
-}
-
 static inline int reserved_sections(struct f2fs_sb_info *sbi)
 {
 	return GET_SEC_FROM_SEG(sbi, (unsigned int)reserved_segments(sbi));