[PATCH] erofs-utils: fix mkfs flush inode i_u
Li GuiFu
bluce.lee at aliyun.com
Sun Feb 7 00:56:25 AEDT 2021
On 2021/1/31 17:45, Hu Weiwen wrote:
> When choosing which field of i_u to use, it should be `inode->i_mode & S_IFMT'
>
> Previously, the default branch is always taken. Fortunately, all 3 field has
> the same data type, and they are in the same union, so it happens to work.
>
> Signed-off-by: Hu Weiwen <sehuww at mail.scut.edu.cn>
It looks good
Reviewed-by: Li Guifu <bluce.lee at aliyun.com>
More information about the Linux-erofs
mailing list