[f2fs-dev] [PATCH -next v3] f2fs: remove unnecessary read for F2FS_FITS_IN_INODE

2022-03-09 Thread Jia Yang via Linux-f2fs-devel
F2FS_FITS_IN_INODE only cares the type of f2fs inode, so there is no need to read node page of f2fs inode. Signed-off-by: Jia Yang --- fs/f2fs/file.c | 17 - 1 file changed, 4 insertions(+), 13 deletions(-) diff --git a/fs/f2fs/file.c b/fs/f2fs/file.c index cfdc41f87f5d..7049be2

[f2fs-dev] [PATCH -next v2] f2fs: remove unnecessary read for F2FS_FITS_IN_INODE

2022-03-09 Thread Jia Yang via Linux-f2fs-devel
F2FS_FITS_IN_INODE only cares the type of f2fs inode, so there is no need to read node page of f2fs inode. Signed-off-by: Jia Yang --- v2: - initialize ri with NULL --- fs/f2fs/file.c | 15 --- 1 file changed, 4 insertions(+), 11 deletions(-) diff --git a/fs/f2fs/file.c b/fs/f2fs/fi

Re: [f2fs-dev] [PATCH -next] f2fs: remove unnecessary read for F2FS_FITS_IN_INODE

2022-03-08 Thread Jia Yang via Linux-f2fs-devel
On 2022/3/9 12:12, Chao Yu wrote: > On 2022/3/8 16:19, Jia Yang via Linux-f2fs-devel wrote: >> >> >> On 2022/3/7 18:40, Chao Yu wrote: >>> On 2022/3/7 16:12, Jia Yang via Linux-f2fs-devel wrote: >>>> F2FS_FITS_IN_INODE only cares the type of f2fs inode,

Re: [f2fs-dev] [PATCH -next] f2fs: remove unnecessary read for F2FS_FITS_IN_INODE

2022-03-08 Thread Jia Yang via Linux-f2fs-devel
On 2022/3/7 18:40, Chao Yu wrote: > On 2022/3/7 16:12, Jia Yang via Linux-f2fs-devel wrote: >> F2FS_FITS_IN_INODE only cares the type of f2fs inode, so there >> is no need to read node page of f2fs inode. >> >> Signed-off-by: Jia Yang >> --- >>   fs/

[f2fs-dev] [PATCH -next] f2fs: remove unnecessary read for F2FS_FITS_IN_INODE

2022-03-06 Thread Jia Yang via Linux-f2fs-devel
F2FS_FITS_IN_INODE only cares the type of f2fs inode, so there is no need to read node page of f2fs inode. Signed-off-by: Jia Yang --- fs/f2fs/file.c | 10 ++ 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/fs/f2fs/file.c b/fs/f2fs/file.c index cfdc41f87f5d..4b93fbec2ec0 10