* [PATCH] f2fs: allow F2FS_IPU_NOCACHE for pinned file
@ 2024-09-15 3:22 Jaegeuk Kim
2024-09-16 19:41 ` [f2fs-dev] " Daeho Jeong
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: Jaegeuk Kim @ 2024-09-15 3:22 UTC (permalink / raw)
To: linux-kernel, linux-f2fs-devel; +Cc: Jaegeuk Kim
This patch allows f2fs to submit bios of in-place writes on pinned file.
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
---
fs/f2fs/sysfs.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/fs/f2fs/sysfs.c b/fs/f2fs/sysfs.c
index d18931b7b094..c56e8c873935 100644
--- a/fs/f2fs/sysfs.c
+++ b/fs/f2fs/sysfs.c
@@ -792,7 +792,8 @@ static ssize_t __sbi_store(struct f2fs_attr *a,
if (!strcmp(a->attr.name, "ipu_policy")) {
if (t >= BIT(F2FS_IPU_MAX))
return -EINVAL;
- if (t && f2fs_lfs_mode(sbi))
+ /* allow F2FS_IPU_NOCACHE only for IPU in the pinned file */
+ if (f2fs_lfs_mode(sbi) && (t & ~BIT(F2FS_IPU_NOCACHE)))
return -EINVAL;
SM_I(sbi)->ipu_policy = (unsigned int)t;
return count;
--
2.46.0.662.g92d0881bb0-goog
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [f2fs-dev] [PATCH] f2fs: allow F2FS_IPU_NOCACHE for pinned file
2024-09-15 3:22 [PATCH] f2fs: allow F2FS_IPU_NOCACHE for pinned file Jaegeuk Kim
@ 2024-09-16 19:41 ` Daeho Jeong
2024-09-16 21:30 ` patchwork-bot+f2fs
2024-09-19 1:24 ` Chao Yu
2 siblings, 0 replies; 4+ messages in thread
From: Daeho Jeong @ 2024-09-16 19:41 UTC (permalink / raw)
To: Jaegeuk Kim; +Cc: linux-kernel, linux-f2fs-devel
On Sat, Sep 14, 2024 at 8:24 PM Jaegeuk Kim via Linux-f2fs-devel
<linux-f2fs-devel@lists.sourceforge.net> wrote:
>
> This patch allows f2fs to submit bios of in-place writes on pinned file.
>
> Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
> ---
> fs/f2fs/sysfs.c | 3 ++-
> 1 file changed, 2 insertions(+), 1 deletion(-)
>
> diff --git a/fs/f2fs/sysfs.c b/fs/f2fs/sysfs.c
> index d18931b7b094..c56e8c873935 100644
> --- a/fs/f2fs/sysfs.c
> +++ b/fs/f2fs/sysfs.c
> @@ -792,7 +792,8 @@ static ssize_t __sbi_store(struct f2fs_attr *a,
> if (!strcmp(a->attr.name, "ipu_policy")) {
> if (t >= BIT(F2FS_IPU_MAX))
> return -EINVAL;
> - if (t && f2fs_lfs_mode(sbi))
> + /* allow F2FS_IPU_NOCACHE only for IPU in the pinned file */
> + if (f2fs_lfs_mode(sbi) && (t & ~BIT(F2FS_IPU_NOCACHE)))
> return -EINVAL;
> SM_I(sbi)->ipu_policy = (unsigned int)t;
> return count;
> --
> 2.46.0.662.g92d0881bb0-goog
>
Reviewed-by: Daeho Jeong <daehojeong@google.com>
Thanks,
>
>
> _______________________________________________
> Linux-f2fs-devel mailing list
> Linux-f2fs-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/linux-f2fs-devel
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [f2fs-dev] [PATCH] f2fs: allow F2FS_IPU_NOCACHE for pinned file
2024-09-15 3:22 [PATCH] f2fs: allow F2FS_IPU_NOCACHE for pinned file Jaegeuk Kim
2024-09-16 19:41 ` [f2fs-dev] " Daeho Jeong
@ 2024-09-16 21:30 ` patchwork-bot+f2fs
2024-09-19 1:24 ` Chao Yu
2 siblings, 0 replies; 4+ messages in thread
From: patchwork-bot+f2fs @ 2024-09-16 21:30 UTC (permalink / raw)
To: Jaegeuk Kim; +Cc: linux-kernel, linux-f2fs-devel
Hello:
This patch was applied to jaegeuk/f2fs.git (dev)
by Jaegeuk Kim <jaegeuk@kernel.org>:
On Sun, 15 Sep 2024 03:22:51 +0000 you wrote:
> This patch allows f2fs to submit bios of in-place writes on pinned file.
>
> Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
> ---
> fs/f2fs/sysfs.c | 3 ++-
> 1 file changed, 2 insertions(+), 1 deletion(-)
Here is the summary with links:
- [f2fs-dev] f2fs: allow F2FS_IPU_NOCACHE for pinned file
https://git.kernel.org/jaegeuk/f2fs/c/755f18261376
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [f2fs-dev] [PATCH] f2fs: allow F2FS_IPU_NOCACHE for pinned file
2024-09-15 3:22 [PATCH] f2fs: allow F2FS_IPU_NOCACHE for pinned file Jaegeuk Kim
2024-09-16 19:41 ` [f2fs-dev] " Daeho Jeong
2024-09-16 21:30 ` patchwork-bot+f2fs
@ 2024-09-19 1:24 ` Chao Yu
2 siblings, 0 replies; 4+ messages in thread
From: Chao Yu @ 2024-09-19 1:24 UTC (permalink / raw)
To: Jaegeuk Kim, linux-kernel, linux-f2fs-devel; +Cc: chao
On 2024/9/15 11:22, Jaegeuk Kim via Linux-f2fs-devel wrote:
> This patch allows f2fs to submit bios of in-place writes on pinned file.
>
> Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Reviewed-by: Chao Yu <chao@kernel.org>
Thanks,
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2024-09-19 1:24 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-09-15 3:22 [PATCH] f2fs: allow F2FS_IPU_NOCACHE for pinned file Jaegeuk Kim
2024-09-16 19:41 ` [f2fs-dev] " Daeho Jeong
2024-09-16 21:30 ` patchwork-bot+f2fs
2024-09-19 1:24 ` Chao Yu
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox