erofs: cleanup i_format-related stuffs
authorGao Xiang <hsiangkao@linux.alibaba.com>
Fri, 14 Apr 2023 08:30:27 +0000 (16:30 +0800)
committerGao Xiang <hsiangkao@linux.alibaba.com>
Sun, 16 Apr 2023 17:15:55 +0000 (01:15 +0800)
commit745ed7d77834048879bf24088c94e5a6462b613f
treeb8332bbd8252efaa88935b3f7a55438a0f583512
parent10656f9ca60ed85f4cfc06bcbe1f240ee310fa8c
erofs: cleanup i_format-related stuffs

Switch EROFS_I_{VERSION,DATALAYOUT}_BITS into
EROFS_I_{VERSION,DATALAYOUT}_MASK.

Also avoid erofs_bitrange() since its functionality is simple enough.

Signed-off-by: Gao Xiang <hsiangkao@linux.alibaba.com>
Reviewed-by: Chao Yu <chao@kernel.org>
Link: https://lore.kernel.org/r/20230414083027.12307-2-hsiangkao@linux.alibaba.com
fs/erofs/erofs_fs.h
fs/erofs/internal.h