f2fs: refactor struct f2fs_attr macro
authorYangtao Li <frank.li@vivo.com>
Sat, 6 May 2023 15:16:03 +0000 (23:16 +0800)
committerJaegeuk Kim <jaegeuk@kernel.org>
Mon, 26 Jun 2023 13:21:41 +0000 (06:21 -0700)
commit6201c478dedcf7c50361b23b5c4d4f41a68921ac
treedd65d6f7902a15153116dbb0e8a4274ccbc51c83
parentc3355ea9d82fe6b1a4226c9a7d311f9c5715b456
f2fs: refactor struct f2fs_attr macro

This patch provides a large number of variants of F2FS_RW_ATTR
and F2FS_RO_ATTR macros, reducing the number of parameters required
to initialize the f2fs_attr structure.

Reported-by: kernel test robot <lkp@intel.com>
Link: https://lore.kernel.org/oe-kbuild-all/202304152234.wjaY3IYm-lkp@intel.com/
Signed-off-by: Yangtao Li <frank.li@vivo.com>
Reviewed-by: Chao Yu <chao@kernel.org>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
fs/f2fs/sysfs.c