diff mbox series

[f2fs-dev,1/2] f2fs: convert to use F2FS_SMALL_VOLUME_IPU_POLICY macro

Message ID 20230613075157.41065-1-frank.li@vivo.com (mailing list archive)
State New
Headers show
Series [f2fs-dev,1/2] f2fs: convert to use F2FS_SMALL_VOLUME_IPU_POLICY macro | expand

Commit Message

李扬韬 June 13, 2023, 7:51 a.m. UTC
Just for cleanup.

Signed-off-by: Yangtao Li <frank.li@vivo.com>
---
 fs/f2fs/segment.h | 2 ++
 fs/f2fs/super.c   | 3 +--
 2 files changed, 3 insertions(+), 2 deletions(-)

Comments

patchwork-bot+f2fs@kernel.org June 22, 2023, 7:11 a.m. UTC | #1
Hello:

This series was applied to jaegeuk/f2fs.git (dev)
by Jaegeuk Kim <jaegeuk@kernel.org>:

On Tue, 13 Jun 2023 15:51:56 +0800 you wrote:
> Just for cleanup.
> 
> Signed-off-by: Yangtao Li <frank.li@vivo.com>
> ---
>  fs/f2fs/segment.h | 2 ++
>  fs/f2fs/super.c   | 3 +--
>  2 files changed, 3 insertions(+), 2 deletions(-)

Here is the summary with links:
  - [f2fs-dev,1/2] f2fs: convert to use F2FS_SMALL_VOLUME_IPU_POLICY macro
    (no matching commit)
  - [f2fs-dev,2/2] f2fs: convert to use sbi directly
    https://git.kernel.org/jaegeuk/f2fs/c/08f83cb23a3e

You are awesome, thank you!
diff mbox series

Patch

diff --git a/fs/f2fs/segment.h b/fs/f2fs/segment.h
index 2ca8fb5d0dc4..28ccbaffe546 100644
--- a/fs/f2fs/segment.h
+++ b/fs/f2fs/segment.h
@@ -708,6 +708,8 @@  enum {
 	F2FS_IPU_MAX,
 };
 
+#define F2FS_SMALL_VOLUME_IPU_POLICY (BIT(F2FS_IPU_FORCE) | BIT(F2FS_IPU_HONOR_OPU_WRITE))
+
 static inline bool IS_F2FS_IPU_DISABLE(struct f2fs_sb_info *sbi)
 {
 	return SM_I(sbi)->ipu_policy == F2FS_IPU_DISABLE;
diff --git a/fs/f2fs/super.c b/fs/f2fs/super.c
index 1b2c788ed80d..375a178540d6 100644
--- a/fs/f2fs/super.c
+++ b/fs/f2fs/super.c
@@ -4314,8 +4314,7 @@  static void f2fs_tuning_parameters(struct f2fs_sb_info *sbi)
 			SM_I(sbi)->dcc_info->discard_granularity =
 						MIN_DISCARD_GRANULARITY;
 		if (!f2fs_lfs_mode(sbi))
-			SM_I(sbi)->ipu_policy = BIT(F2FS_IPU_FORCE) |
-						BIT(F2FS_IPU_HONOR_OPU_WRITE);
+			SM_I(sbi)->ipu_policy = F2FS_SMALL_VOLUME_IPU_POLICY;
 	}
 
 	sbi->readdir_ra = true;