]> www.infradead.org Git - users/willy/xarray.git/commit
exfat: do not zero the extended part
authorYuezhang Mo <Yuezhang.Mo@sony.com>
Tue, 30 May 2023 09:35:00 +0000 (17:35 +0800)
committerNamjae Jeon <linkinjeon@kernel.org>
Mon, 8 Jan 2024 12:57:22 +0000 (21:57 +0900)
commitf55c096f62f100aa9f5f48d86e1b6846ecbd67e7
treed5dce12faa25ab245312c8741e391d9c6e3e0aa0
parent11a347fb6cef62ce47e84b97c45f2b2497c7593b
exfat: do not zero the extended part

Since the read operation beyond the ValidDataLength returns zero,
if we just extend the size of the file, we don't need to zero the
extended part, but only change the DataLength without changing
the ValidDataLength.

Signed-off-by: Yuezhang Mo <Yuezhang.Mo@sony.com>
Reviewed-by: Andy Wu <Andy.Wu@sony.com>
Reviewed-by: Aoyama Wataru <wataru.aoyama@sony.com>
Reviewed-by: Sungjong Seo <sj1557.seo@samsung.com>
Signed-off-by: Namjae Jeon <linkinjeon@kernel.org>
fs/exfat/file.c
fs/exfat/inode.c