RE: [PATCH] fs: fat: add check for dir size in fat_calc_dir_size

2020-07-06 Thread Anupam Aggarwal
Hi Ogawa, >Anyway, fsck would be main way. And on other hand, if we want to add >mitigation for corruption, we would have to see much more details of >this corruption. Can you put somewhere to access the corrupted image >(need the only metadata) to reproduce? Sorry, uploading of any file not all

RE: [PATCH] fs: fat: add check for dir size in fat_calc_dir_size

2020-07-03 Thread Anupam Aggarwal
Hi Ogawa, >So what was the root cause of slowness on big directory? Problem happened on FAT32 formatted 32GB USB 3.0 pendrive, which has 20GB of data, cluster size is 16KB It has one corrupted directory whose size calculated by fat_calc_dir_size() is 1146896384 bytes i.e. 1.06 GB. When directo

[PATCH] fs: fat: add check for dir size in fat_calc_dir_size

2020-06-29 Thread Anupam Aggarwal
ror, which will prevent lookup in corrupted directory Signed-off-by: Anupam Aggarwal Signed-off-by: Amit Sahrawat --- fs/fat/inode.c | 7 +++ 1 file changed, 7 insertions(+) diff --git a/fs/fat/inode.c b/fs/fat/inode.c index a0cf99d..9b2e81e 100644 --- a/fs/fat/inode.c +++ b/fs/fat/inode.c

[PATCH] init: include nfs header files when CONFIG_ROOT_NFS is enabled

2020-05-29 Thread Anupam Aggarwal
Move inclusion of header files linux/nfs_fs.h, linux/nfs_fs_sb.h & linux/nfs_mount.h under config CONFIG_ROOT_NFS Signed-off-by: Anupam Aggarwal Signed-off-by: Vivek Trivedi Signed-off-by: Amit Sahrawat --- init/do_mounts.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/

[PATCH] dcache: use of d_time under required configs

2020-05-29 Thread Anupam Aggarwal
ins unchanged dentry object is vastly used, so this change should be useful for memory saving Signed-off-by: Anupam Aggarwal Signed-off-by: Vivek Trivedi Signed-off-by: Amit Sahrawat --- include/linux/dcache.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/linux/dcache.h b/include/l

[PATCH] sparc: remove unused header file nfs_fs.h

2020-05-29 Thread Anupam Aggarwal
Remove unused header file linux/nfs_fs.h Signed-off-by: Anupam Aggarwal Signed-off-by: Vivek Trivedi Signed-off-by: Amit Sahrawat --- arch/sparc/kernel/sys_sparc32.c | 1 - 1 file changed, 1 deletion(-) diff --git a/arch/sparc/kernel/sys_sparc32.c b/arch/sparc/kernel/sys_sparc32.c index