[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <3ae7c67217cfa89d6e152853071fef4adfdc4766.1720515215.git.bo.wu@vivo.com>
Date: Tue, 9 Jul 2024 19:33:07 -0600
From: Wu Bo <bo.wu@...o.com>
To: Jaegeuk Kim <jaegeuk@...nel.org>,
Chao Yu <chao@...nel.org>
Cc: linux-f2fs-devel@...ts.sourceforge.net,
linux-kernel@...r.kernel.org,
Wu Bo <wubo.oduw@...il.com>,
Wu Bo <bo.wu@...o.com>
Subject: [RFC PATCH 5/5] f2fs: set inline tail flag when create inode
Set inline tail flag to enable this feature when new inode is created.
Inherit the conditions from inline data.
Signed-off-by: Wu Bo <bo.wu@...o.com>
---
fs/f2fs/namei.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/fs/f2fs/namei.c b/fs/f2fs/namei.c
index e54f8c08bda8..ef5111420524 100644
--- a/fs/f2fs/namei.c
+++ b/fs/f2fs/namei.c
@@ -313,6 +313,9 @@ static struct inode *f2fs_new_inode(struct mnt_idmap *idmap,
/* Should enable inline_data after compression set */
if (test_opt(sbi, INLINE_DATA) && f2fs_may_inline_data(inode))
set_inode_flag(inode, FI_INLINE_DATA);
+ /* Inherit the conditions from inline data */
+ if (test_opt(sbi, INLINE_TAIL) && f2fs_has_inline_data(inode))
+ set_inode_flag(inode, FI_INLINE_TAIL);
if (name && !test_opt(sbi, DISABLE_EXT_IDENTIFY))
set_file_temperature(sbi, inode, name);
--
2.35.3
Powered by blists - more mailing lists