summaryrefslogtreecommitdiffstats
path: root/fs/f2fs/sysfs.c
diff options
context:
space:
mode:
authorYangtao Li <frank.li@vivo.com>2023-02-16 21:53:24 +0800
committerJaegeuk Kim <jaegeuk@kernel.org>2023-03-29 15:17:37 -0700
commit447286ebadaafa551550704ff0b42eb08b1d1cb2 (patch)
tree54cc1edc083d17a0ce9fa43fd5a07623caf4c41b /fs/f2fs/sysfs.c
parent960fa2c828a0af7a3b03b295e6aa17b2afeb5e07 (diff)
downloadlinux-447286ebadaafa551550704ff0b42eb08b1d1cb2.tar.gz
linux-447286ebadaafa551550704ff0b42eb08b1d1cb2.tar.bz2
linux-447286ebadaafa551550704ff0b42eb08b1d1cb2.zip
f2fs: convert to use bitmap API
Let's use BIT() and GENMASK() instead of open it. Signed-off-by: Yangtao Li <frank.li@vivo.com> Reviewed-by: Chao Yu <chao@kernel.org> Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Diffstat (limited to 'fs/f2fs/sysfs.c')
-rw-r--r--fs/f2fs/sysfs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/f2fs/sysfs.c b/fs/f2fs/sysfs.c
index 5397bd8bfcf7..9ddc6ee19433 100644
--- a/fs/f2fs/sysfs.c
+++ b/fs/f2fs/sysfs.c
@@ -452,7 +452,7 @@ out:
if (ret < 0)
return ret;
#ifdef CONFIG_F2FS_FAULT_INJECTION
- if (a->struct_type == FAULT_INFO_TYPE && t >= (1 << FAULT_MAX))
+ if (a->struct_type == FAULT_INFO_TYPE && t >= BIT(FAULT_MAX))
return -EINVAL;
if (a->struct_type == FAULT_INFO_RATE && t >= UINT_MAX)
return -EINVAL;