android_kernel_motorola_sm6375/fs/sysv
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Chen Zhongjin 7aa5325e1b fs: sysv: Fix sysv_nblocks() returns wrong value
[ Upstream commit e0c49bd2b4d3cd1751491eb2d940bce968ac65e9 ]

sysv_nblocks() returns 'blocks' rather than 'res', which only counting
the number of triple-indirect blocks and causing sysv_getattr() gets a
wrong result.

[AV: this is actually a sysv counterpart of minixfs fix -
0fcd426de9d0 "[PATCH] minix block usage counting fix" in
historical tree; mea culpa, should've thought to check
fs/sysv back then...]

Fixes: 1da177e4c3 ("Linux-2.6.12-rc2")
Signed-off-by: Chen Zhongjin <[email protected]>
Signed-off-by: Al Viro <[email protected]>
Signed-off-by: Sasha Levin <[email protected]>
2023-01-18 11:40:58 +01:00
..
balloc.c
dir.c
file.c
ialloc.c
inode.c
itree.c fs: sysv: Fix sysv_nblocks() returns wrong value 2023-01-18 11:40:58 +01:00
Kconfig treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00
Makefile treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00
namei.c
super.c fs: sysv: Initialize filesystem timestamp ranges 2019-08-30 07:27:18 -07:00
sysv.h