[GIT PULL] exfat update for 6.3-rc1

From: Namjae Jeon
Date: Wed Mar 01 2023 - 08:38:32 EST


Hi Linus,

This is exfat update pull request for v6.3-rc1. I add description of
this pull request on below. Please pull exfat with following ones.

Thanks!

The following changes since commit c9c3395d5e3dcc6daee66c6908354d47bf98cb0c:

Linux 6.2 (2023-02-19 14:24:22 -0800)

are available in the Git repository at:

git://git.kernel.org/pub/scm/linux/kernel/git/linkinjeon/exfat.git
tags/exfat-for-6.3-rc1

for you to fetch changes up to d5c514b6a0c0b77ed7e5ef2484e8b20eb09c5f27:

exfat: fix the newly allocated clusters are not freed in error
handling (2023-02-28 20:01:40 +0900)

----------------------------------------------------------------
Description for this pull request:
- Handle vendor extension and allocation entries as unrecognized
benign secondary entries.
- Fix wrong ->i_blocks on devices with non-512 byte sector.
- Add the check to avoid returning -EIO from exfat_readdir() at
current position exceeding the directory size.
- Fix a bug that reach the end of the directory stream at a position
not aligned with the dentry size.
- Redefine DIR_DELETED as 0xFFFFFFF7, the bad cluster number.
- Two cleanup fixes and fix cluster leakage in error handling.

----------------------------------------------------------------
Namjae Jeon (1):
exfat: handle unreconized benign secondary entries

Sungjong Seo (1):
exfat: redefine DIR_DELETED as the bad cluster number

Yuezhang Mo (6):
exfat: fix unexpected EOF while reading dir
exfat: fix reporting fs error when reading dir beyond EOF
exfat: fix inode->i_blocks for non-512 byte sector size device
exfat: remove unneeded code from exfat_alloc_cluster()
exfat: don't print error log in normal case
exfat: fix the newly allocated clusters are not freed in error handling

fs/exfat/dir.c | 90 ++++++++++++++++++++++++++++++++++------------------
fs/exfat/exfat_fs.h | 4 ++-
fs/exfat/exfat_raw.h | 21 ++++++++++++
fs/exfat/fatent.c | 32 +++++++------------
fs/exfat/file.c | 3 +-
fs/exfat/inode.c | 6 ++--
fs/exfat/namei.c | 2 +-
fs/exfat/super.c | 3 +-
8 files changed, 101 insertions(+), 60 deletions(-)