Re: [RFC PATCH v1 3/6] exfat: use atomic bit ops for volume dirty flag

From: Chi Zhiling

Date: Wed Aug 26 2026 - 22:08:55 EST


Hi, Namjae

You are right. This should not be removed. I will restore it in the
next version.


Thanks,

On 8/27/26 9:03 AM, Namjae Jeon wrote:
-static int exfat_set_vol_flags(struct super_block *sb, unsigned short new_flags)
+static int exfat_sync_vol_flags(struct super_block *sb)
{
struct exfat_sb_info *sbi = EXFAT_SB(sb);
struct boot_sector *p_boot = (struct boot_sector *)sbi->boot_bh->b_data;

- /* retain persistent-flags */
- new_flags |= sbi->vol_flags_persistent;
Please don't remove ->vol_flags_persistent. It prevents pre-existing
volume dirty flags from being lost, but removing it clears a dirty
flag set before mount during normal unmount.