Commit c2b9f66d authored by Yuezhang Mo's avatar Yuezhang Mo Committed by sanglipeng
Browse files

exfat: fix inode->i_blocks for non-512 byte sector size device

stable inclusion
from stable-v5.10.173
commit f9dbc35ecb9431d1396f550c4a471486e3133b68
category: bugfix
bugzilla: https://gitee.com/openeuler/kernel/issues/I8BFR3

Reference: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=f9dbc35ecb9431d1396f550c4a471486e3133b68



--------------------------------

commit 39c1ce8e upstream.

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

Fixes: 98d91704 ("exfat: add file operations")
Cc: stable@vger.kernel.org # v5.7+
Reported-by: default avatarWang Yugui <wangyugui@e16-tech.com>
Tested-by: default avatarWang Yugui <wangyugui@e16-tech.com>
Signed-off-by: default avatarYuezhang Mo <Yuezhang.Mo@sony.com>
Reviewed-by: default avatarAndy Wu <Andy.Wu@sony.com>
Signed-off-by: default avatarNamjae Jeon <linkinjeon@kernel.org>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: default avatarsanglipeng <sanglipeng1@jd.com>
parent 91fb90fe
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment