exfat: reduce the size of exfat_entry_set_cache
authorYuezhang Mo <Yuezhang.Mo@sony.com>
Thu, 7 Apr 2022 07:55:56 +0000 (15:55 +0800)
committerNamjae Jeon <linkinjeon@kernel.org>
Mon, 12 Dec 2022 02:02:48 +0000 (11:02 +0900)
commitf83d8a3b532097276266b5e81073ea46e27b17ab
tree0470388c05d888dd74e75e1bfcaa15cfda8b4fb6
parente298c8a818a3e517582e60c412f4a41b3a1647c5
exfat: reduce the size of exfat_entry_set_cache

In normal, there are 19 directory entries at most for a file or
a directory.
  - A file directory entry
  - A stream extension directory entry
  - 1~17 file name directory entry

So the directory entries are in 3 sectors at most, it is enough
for struct exfat_entry_set_cache to pre-allocate 3 bh.

This commit changes the size of struct exfat_entry_set_cache as:

                   Before   After
32-bit system      88       32    bytes
64-bit system      168      48    bytes

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/exfat_fs.h