RE: [PATCH v4 2/2] exfat: add support ioctl and FITRIM function

From: Sungjong Seo
Date: Tue Mar 02 2021 - 03:39:34 EST


> Add FITRIM ioctl to enable discarding unused blocks while mounted.
> As current exFAT doesn't have generic ioctl handler, add empty ioctl
> function first, and add FITRIM handler.
>
> Reviewed-by: Chaitanya Kulkarni <chaitanya.kulkarni@xxxxxxx>
> Signed-off-by: Hyeongseok Kim <hyeongseok@xxxxxxxxx>
> ---
> fs/exfat/balloc.c | 80 +++++++++++++++++++++++++++++++++++++++++++++
> fs/exfat/dir.c | 5 +++
> fs/exfat/exfat_fs.h | 4 +++
> fs/exfat/file.c | 53 ++++++++++++++++++++++++++++++
> 4 files changed, 142 insertions(+)
>

It looks better than v3.
Thanks for your work!

Acked-by: Sungjong Seo <sj1557.seo@xxxxxxxxxxx>

BTW, there is still a problem that the alloc/free cluster operation waits
until the trimfs operation is finished.
Any ideas for improvement in the future are welcome. :)