Re: [PATCH v3 04/11] exfat: add exfat_file_open()

From: CharSyam

Date: Wed May 13 2026 - 08:11:46 EST


Hi, Namjae.

Looks good to me.

Thanks.
DaeMyung.

2026년 5월 13일 (수) 오후 8:25, Namjae Jeon <linkinjeon@xxxxxxxxxx>님이 작성:
>
> Add exfat_file_open() to handle file open operation for exFAT.
> This change is a preparation step before introducing iomap-based direct
> IO support.
>
> Signed-off-by: Namjae Jeon <linkinjeon@xxxxxxxxxx>
> ---
> fs/exfat/file.c | 9 +++++++++
> 1 file changed, 9 insertions(+)
>
> diff --git a/fs/exfat/file.c b/fs/exfat/file.c
> index 29a36a80e29b..d0ecdcb4bf7a 100644
> --- a/fs/exfat/file.c
> +++ b/fs/exfat/file.c
> @@ -800,7 +800,16 @@ static ssize_t exfat_splice_read(struct file *in, loff_t *ppos,
> return filemap_splice_read(in, ppos, pipe, len, flags);
> }
>
> +static int exfat_file_open(struct inode *inode, struct file *filp)
> +{
> + if (unlikely(exfat_forced_shutdown(inode->i_sb)))
> + return -EIO;
> +
> + return generic_file_open(inode, filp);
> +}
> +
> const struct file_operations exfat_file_operations = {
> + .open = exfat_file_open,
> .llseek = generic_file_llseek,
> .read_iter = exfat_file_read_iter,
> .write_iter = exfat_file_write_iter,
> --
> 2.25.1
>
>