diff options
author | Yuezhang Mo <Yuezhang.Mo@sony.com> | 2023-03-13 07:38:53 +0300 |
---|---|---|
committer | Namjae Jeon <linkinjeon@kernel.org> | 2024-01-08 15:57:22 +0300 |
commit | 11a347fb6cef62ce47e84b97c45f2b2497c7593b (patch) | |
tree | 30623f314a2a58d6ab1d3aaf53ef640d4d5447e3 /fs/exfat/exfat_fs.h | |
parent | 34939ae005ec402ee183956114b1a74cb57b8b9d (diff) | |
download | linux-11a347fb6cef62ce47e84b97c45f2b2497c7593b.tar.xz |
exfat: change to get file size from DataLength
In stream extension directory entry, the ValidDataLength
field describes how far into the data stream user data has
been written, and the DataLength field describes the file
size.
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>
Diffstat (limited to 'fs/exfat/exfat_fs.h')
-rw-r--r-- | fs/exfat/exfat_fs.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/exfat/exfat_fs.h b/fs/exfat/exfat_fs.h index 8030780a199b..9474cd50da6d 100644 --- a/fs/exfat/exfat_fs.h +++ b/fs/exfat/exfat_fs.h @@ -207,6 +207,7 @@ struct exfat_dir_entry { unsigned char flags; unsigned short attr; loff_t size; + loff_t valid_size; unsigned int num_subdirs; struct timespec64 atime; struct timespec64 mtime; @@ -316,6 +317,7 @@ struct exfat_inode_info { loff_t i_size_aligned; /* on-disk position of directory entry or 0 */ loff_t i_pos; + loff_t valid_size; /* hash by i_location */ struct hlist_node i_hash_fat; /* protect bmap against truncate */ |