Re: [PATCH] fs: fix undefined behavior in bit shift for SB_NOUSER

From: cuigaosheng
Date: Mon Oct 31 2022 - 09:57:08 EST


Let's mark all of the flags as unsigned instead of just one so that
we don't mix types. s_flags is already unsigned (although for some
reason long) already.

And while you touch this please add the proper whitespaces around the
shift operator everywhere.

Thanks for taking time to review this patch, I have made patch v2 and submit it.

On 2022/10/31 21:15, Christoph Hellwig wrote:
Let's mark all of the flags as unsigned instead of just one so that
we don't mix types. s_flags is already unsigned (although for some
reason long) already.

And while you touch this please add the proper whitespaces around the
shift operator everywhere.