f2fs: introduce IS_F2FS_IPU_* macro

[ Upstream commit fdb7ccc3f9 ]

IS_F2FS_IPU_* macro can be used to identify whether
f2fs ipu related policies are enabled.

BTW, convert to use BIT() instead of open code.

Signed-off-by: Yangtao Li <frank.li@vivo.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Stable-dep-of: c5bf834833 ("f2fs: fix to set ipu policy")
Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
Yangtao Li 2022-11-19 03:18:39 +08:00 • committed by Greg Kroah-Hartman
commit c2f633a4c1
4 changed files with 29 additions and 19 deletions