From: Chao Yu <chao@kernel.org>
To: Daeho Jeong <daeho43@gmail.com>,
linux-kernel@vger.kernel.org,
linux-f2fs-devel@lists.sourceforge.net, kernel-team@android.com
Cc: chao@kernel.org, Daeho Jeong <daehojeong@google.com>,
kernel test robot <lkp@intel.com>
Subject: Re: [f2fs-dev] [PATCH v2 1/2] f2fs: use BIT_ULL for mount option bitmasks
Date: Tue, 20 Oct 2026 17:13:00 +0800 [thread overview]
Message-ID: <18402f96-1c9f-46b2-8ce0-b28e1947e2af@kernel.org> (raw)
In-Reply-To: <06bbc322-f0f4-41fa-b645-e5291803506e@kernel.org>
FYI, in dev, it missed to add my rvb.
On 9/14/26 10:53, Chao Yu wrote:
> On 9/11/26 22:35, Daeho Jeong wrote:
>> From: Daeho Jeong <daehojeong@google.com>
>>
>> Although f2fs_mount_info.opt and f2fs_fs_context.opt_mask are declared as
>> unsigned long long (64 bits), the option bit manipulation macros
>> (clear_opt, set_opt, test_opt) and context helpers (ctx_set_opt,
>> ctx_clear_opt, ctx_test_opt) use BIT(), which expands to (UL(1) << nr).
>>
>> On 32-bit architectures, sizeof(unsigned long) is 32 bits, causing shift
>> count overflow warnings and functional truncation if mount option indices
>> reach or exceed 32.
>>
>> Replace BIT() with BIT_ULL() for mount option bitmasks and helpers.
>> Additionally, introduce ctx_clear_opt_mask() and ctx_test_opt_mask()
>> helpers to avoid open-coded bitwise manipulations on ctx->opt_mask.
>>
>> Reported-by: kernel test robot <lkp@intel.com>
>> Closes: https://lore.kernel.org/oe-kbuild-all/202609111633.uyRbsEUB-lkp@intel.com/
>> Signed-off-by: Daeho Jeong <daehojeong@google.com>
>
> Reviewed-by: Chao Yu <chao@kernel.org>
>
> Thanks,
next prev parent reply other threads:[~2026-10-20 9:13 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-09-11 14:35 Daeho Jeong
2026-09-11 14:35 ` [PATCH v2 2/2] f2fs: introduce reserve_shrink mount option for filesystem shrinkage Daeho Jeong
2026-09-14 7:15 ` [f2fs-dev] " Chao Yu
2026-09-14 16:24 ` Daeho Jeong
2026-10-13 1:27 ` Chao Yu
2026-10-13 2:15 ` Daeho Jeong
2026-10-13 15:36 ` Daeho Jeong
2026-10-13 23:27 ` Daeho Jeong
2026-10-14 3:13 ` Chao Yu
2026-10-16 15:49 ` Jaegeuk Kim
2026-10-16 15:54 ` Daeho Jeong
2026-10-16 16:04 ` Jaegeuk Kim
2026-10-16 16:09 ` Daeho Jeong
2026-09-14 2:53 ` [f2fs-dev] [PATCH v2 1/2] f2fs: use BIT_ULL for mount option bitmasks Chao Yu
2026-10-20 9:13 ` Chao Yu [this message]
2026-10-19 15:40 ` patchwork-bot+f2fs
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=18402f96-1c9f-46b2-8ce0-b28e1947e2af@kernel.org \
--to=chao@kernel.org \
--cc=daeho43@gmail.com \
--cc=daehojeong@google.com \
--cc=kernel-team@android.com \
--cc=linux-f2fs-devel@lists.sourceforge.net \
--cc=linux-kernel@vger.kernel.org \
--cc=lkp@intel.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®