| Date | Tue, 23 Oct 2012 11:21:46 -0700 | From | Greg KH <> | Subject | [PATCH 1/3] f2fs: gc.h: make should_do_checkpoint() inline |
| |
This should be an inline function, not a "real" function. Now other files can properly include gc.h.
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
--- fs/f2fs/gc.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
--- a/fs/f2fs/gc.h +++ b/fs/f2fs/gc.h @@ -191,7 +191,7 @@ static inline int is_idle(struct f2fs_sb return !(rl->count[BLK_RW_SYNC]) && !(rl->count[BLK_RW_ASYNC]); } -static bool should_do_checkpoint(struct f2fs_sb_info *sbi) +static inline bool should_do_checkpoint(struct f2fs_sb_info *sbi) { unsigned int pages_per_sec = sbi->segs_per_sec * (1 << sbi->log_blocks_per_seg);
|