exfat: fix inode->i_blocks for non-512 byte sector size device
authorYuezhang Mo <Yuezhang.Mo@sony.com>
Wed, 4 Jan 2023 06:37:47 +0000 (14:37 +0800)
committerNamjae Jeon <linkinjeon@kernel.org>
Mon, 27 Feb 2023 12:14:45 +0000 (21:14 +0900)
commit39c1ce8eafc0ff64fb9e28536ccc7df6a8e2999d
treebadb112dfa32ee543e7c91671d656065b26f4ea7
parentbdaadfd343e3cba49ad0b009ff4b148dad0fa404
exfat: fix inode->i_blocks for non-512 byte sector size device

inode->i_blocks is not real number of blocks, but 512 byte ones.

Fixes: 98d917047e8b ("exfat: add file operations")
Cc: stable@vger.kernel.org # v5.7+
Reported-by: Wang Yugui <wangyugui@e16-tech.com>
Tested-by: Wang Yugui <wangyugui@e16-tech.com>
Signed-off-by: Yuezhang Mo <Yuezhang.Mo@sony.com>
Reviewed-by: Andy Wu <Andy.Wu@sony.com>
Signed-off-by: Namjae Jeon <linkinjeon@kernel.org>
fs/exfat/file.c
fs/exfat/inode.c
fs/exfat/namei.c
fs/exfat/super.c