From: "Sungjong Seo" <sj1557.seo@samsung.com>
To: "'Chi Zhiling'" <chizhiling@163.com>,
"'Namjae Jeon'" <linkinjeon@kernel.org>,
"'Yuezhang Mo'" <yuezhang.mo@sony.com>
Cc: <linux-fsdevel@vger.kernel.org>, <linux-kernel@vger.kernel.org>,
"'Chi Zhiling'" <chizhiling@kylinos.cn>, <cpgs@samsung.com>,
<sj1557.seo@samsung.com>
Subject: RE: [PATCH v3 0/6] exfat: unify FAT chain walking helpers
Date: Fri, 3 Apr 2026 17:38:40 +0900 [thread overview]
Message-ID: <1368594774.61775206083439.JavaMail.epsvc@epcpadp2new> (raw)
In-Reply-To: <20260403080538.361663-1-chizhiling@163.com>
> This series introduces and uses two new helpers to simplify FAT chain
> walking logic across the exfat driver:
>
> 1. exfat_fat_walk - walks FAT chain by a given step, handling both
> ALLOC_NO_FAT_CHAIN and ALLOC_FAT_CHAIN modes
>
> 2. exfat_chain_advance - walks an exfat_chain structure by a given step,
> updating both ->dir and ->size fields atomically with proper boundary
> checking
>
> These helpers replace open-coded cluster walking logic in dir.c, namei.c
> and inode.c, improving code readability and ensuring consistent error
> handling for corrupted FAT chains.
>
> Also includes a fix for incorrect directory checksum when renaming a file
> to a shorter name.
>
> ---
>
> Changes in v3:
> - rework exfat_chain_advance
> - add error handling in exfat_find_location
> - misc tweaks
The patch-set looks good to me:
Reviewed-by: Sungjong Seo <sj1557.seo@samsung.com>
Thanks.
>
> v1:https://lore.kernel.org/linux-fsdevel/20260331091113.20882-1-
> chizhiling@163.com/
> v2:https://lore.kernel.org/linux-fsdevel/20260401071138.114836-1-
> chizhiling@163.com/
>
>
> Chi Zhiling (6):
> exfat: fix incorrect directory checksum after rename to shorter name
> exfat: introduce exfat_cluster_walk helper
> exfat: use exfat_cluster_walk helper
> exfat: remove NULL cache pointer case in exfat_ent_get
> exfat: introduce exfat_chain_advance helper
> exfat: use exfat_chain_advance helper
>
> fs/exfat/dir.c | 119 +++++++++++---------------------------------
> fs/exfat/exfat_fs.h | 44 +++++++++++++++-
> fs/exfat/fatent.c | 23 ++++-----
> fs/exfat/inode.c | 11 +---
> fs/exfat/namei.c | 28 +++--------
> 5 files changed, 91 insertions(+), 134 deletions(-)
>
>
> base-commit: 4129a3a2751cba8511cee5d13145223662a8e019
> --
> 2.43.0
next prev parent reply other threads:[~2026-04-03 8:48 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <CGME20260403080638epcas1p34e96a9d3f74f963d1085f67399f51da2@epcas1p3.samsung.com>
2026-04-03 8:05 ` [PATCH v3 0/6] exfat: unify FAT chain walking helpers Chi Zhiling
2026-04-03 8:05 ` [PATCH v3 1/6] exfat: fix incorrect directory checksum after rename to shorter name Chi Zhiling
2026-04-03 8:05 ` [PATCH v3 2/6] exfat: introduce exfat_cluster_walk helper Chi Zhiling
2026-04-03 8:05 ` [PATCH v3 3/6] exfat: use " Chi Zhiling
2026-04-03 8:05 ` [PATCH v3 4/6] exfat: remove NULL cache pointer case in exfat_ent_get Chi Zhiling
2026-04-03 8:05 ` [PATCH v3 5/6] exfat: introduce exfat_chain_advance helper Chi Zhiling
2026-04-03 8:05 ` [PATCH v3 6/6] exfat: use " Chi Zhiling
2026-04-03 8:38 ` Sungjong Seo [this message]
2026-04-03 10:07 ` [PATCH v3 0/6] exfat: unify FAT chain walking helpers Yuezhang.Mo
2026-04-03 13:44 ` Namjae Jeon
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=1368594774.61775206083439.JavaMail.epsvc@epcpadp2new \
--to=sj1557.seo@samsung.com \
--cc=chizhiling@163.com \
--cc=chizhiling@kylinos.cn \
--cc=cpgs@samsung.com \
--cc=linkinjeon@kernel.org \
--cc=linux-fsdevel@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=yuezhang.mo@sony.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