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: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> Signed-off-by:
Greg Kroah-Hartman <gregkh@linuxfoundation.org> Signed-off-by:
sanglipeng <sanglipeng1@jd.com>
Loading
Please sign in to comment