[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <700bd4aa-20ac-a73d-2fb8-416e41ba208b@kernel.org>
Date: Mon, 19 Jun 2023 09:01:14 +0800
From: Chao Yu <chao@...nel.org>
To: Yunlei He <heyunlei@...o.com>, jaegeuk@...nel.org
Cc: linux-f2fs-devel@...ts.sourceforge.net,
linux-kernel@...r.kernel.org
Subject: Re: [f2fs-dev][PATCH] f2fs: count mmap write io more accurately
On 2023/6/13 14:51, Yunlei He wrote:
> This patch count mmap write io more accurately and remove
> redundant PageUptodate judgement in f2fs_vm_page_mkwrite.
Yunlei,
What about separating this patch:
- remove unneeded uptodate check/set.
- fix incorrect PageMappedToDisk check and goto logic.
Thanks,
>
> Signed-off-by: Yunlei He <heyunlei@...o.com>
> ---
> fs/f2fs/file.c | 4 +---
> 1 file changed, 1 insertion(+), 3 deletions(-)
>
> diff --git a/fs/f2fs/file.c b/fs/f2fs/file.c
> index 4dd4e2bd000a..34a6177c64a4 100644
> --- a/fs/f2fs/file.c
> +++ b/fs/f2fs/file.c
> @@ -149,14 +149,12 @@ static vm_fault_t f2fs_vm_page_mkwrite(struct vm_fault *vmf)
> zero_user_segment(page, offset, PAGE_SIZE);
> }
> set_page_dirty(page);
> - if (!PageUptodate(page))
> - SetPageUptodate(page);
>
> +out_sem:
> f2fs_update_iostat(sbi, inode, APP_MAPPED_IO, F2FS_BLKSIZE);
> f2fs_update_time(sbi, REQ_TIME);
>
> trace_f2fs_vm_page_mkwrite(page, DATA);
> -out_sem:
> filemap_invalidate_unlock_shared(inode->i_mapping);
>
> sb_end_pagefault(inode->i_sb);
> --
Powered by blists - more mailing lists