From patchwork Wed Jul 10 01:33:07 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Wu Bo X-Patchwork-Id: 13728768 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from lists.sourceforge.net (lists.sourceforge.net [216.105.38.7]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 89851C3DA41 for ; Wed, 10 Jul 2024 01:19:34 +0000 (UTC) Received: from [127.0.0.1] (helo=sfs-ml-3.v29.lw.sourceforge.com) by sfs-ml-3.v29.lw.sourceforge.com with esmtp (Exim 4.95) (envelope-from ) id 1sRLza-00035k-LH; Wed, 10 Jul 2024 01:19:34 +0000 Received: from [172.30.29.66] (helo=mx.sourceforge.net) by sfs-ml-3.v29.lw.sourceforge.com with esmtps (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.95) (envelope-from ) id 1sRLzZ-00035d-6k for linux-f2fs-devel@lists.sourceforge.net; Wed, 10 Jul 2024 01:19:32 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sourceforge.net; s=x; h=MIME-Version:Content-Type:Content-Transfer-Encoding :References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From:Sender:Reply-To: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=CDHRGeYMIYMR3MKuYJG5LMrqEXmMvyMMMZn0tdgP8z8=; b=DzM6l/9J9rCmVxuTM1yoDO4NUA OfLooOjDdHTRdrXCMmkogPRrcd/K+vwK+4vhxM65+Co2/tg6IpbzojGwup/creYx2dBkOK1IrPWNQ BtICuu5jURj7lWdgdpZttzVyoWKU1LIB2jMfJz8JPkhODIbN7GUt1Xz2ilMnkZ0UYc1Y=; DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sf.net; s=x ; h=MIME-Version:Content-Type:Content-Transfer-Encoding:References: In-Reply-To:Message-Id:Date:Subject:Cc:To:From:Sender:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=CDHRGeYMIYMR3MKuYJG5LMrqEXmMvyMMMZn0tdgP8z8=; b=APUeOg1cROkFccAidO5SEqZeqM X+H88vsfJeu3WxC6mGLZCFj4kmFCLuzt1ZobpeXT7YVSz7gxcUtsyd8mHaIN4yvzVkJXn7q+/uJLd SB0oEQRq7o9iBgmfRifniKzSA2fNHJrFCSwnrzwsSnRbPjDSb7BtjSLyVnJBBL9mlVGA=; Received: from mail-tyzapc01on2049.outbound.protection.outlook.com ([40.107.117.49] helo=APC01-TYZ-obe.outbound.protection.outlook.com) by sfi-mx-2.v28.lw.sourceforge.com with esmtps (TLS1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.95) id 1sRLzY-0004qo-O5 for linux-f2fs-devel@lists.sourceforge.net; Wed, 10 Jul 2024 01:19:32 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=QzPrBJwGevlhuApPbB9JrJmGUvFoSLIddRQJE83pJdXr9gKZO3jcMRVxMrMsDRlAx4yK5f3Wt6qQOmm74b+2rOLRY8KXn18oOT9ik6Xj2geHqk29xu+d4lt3Q32NHNi4bDrwN/vBiKnhngH514wP5SII2jJXc2LkFEtoDcdIcWk2obMnLNoZv5mO8Z/lGnqvZ5DJ3++++KNoVkbj5R8DloQAw57fyGCtz9XSybiVw+TGvJBQE0IUraUYLziCCl3BeHMXly+z4AEiUp+U/+D6cDcpdgDEhTwvKed4VeW8e+BO9baKXl0aoLkViC75ddYOcA1fYtRwfiSQw24wgl9bBQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=CDHRGeYMIYMR3MKuYJG5LMrqEXmMvyMMMZn0tdgP8z8=; b=hGa8G7GVPNSIRet7AXfcNkesHA+COwdMeyunQJis6lzZIrdjE4y/Y7hVi7P+GYEdS8BrRx8ky/FAo0/D3w9tbsJXzWApDL7BlGkL50MrKQnWgXESrLVJ6IsdNkEl9bRBwcphC7goN/mx3ahL+nBjDQRaIC/q07y3W8kdo4vI2nUNAUnkn1wgra0BvM9B0Qe82m3sirsSidtVUFgktr1zzrdIDuWL3+3EohdI7pd8KiFg07vEpRIbXz2T5T3KyyTbFKXu7bJ7WMeZUtqolaUig57FLWXby6fQlyt+rdmIOYCLsvCMMkhRhQkbcIB/RXPijIiF7/zD1XjWrwGD6bKOrA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=vivo.com; dmarc=pass action=none header.from=vivo.com; dkim=pass header.d=vivo.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=vivo.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=CDHRGeYMIYMR3MKuYJG5LMrqEXmMvyMMMZn0tdgP8z8=; b=NvKMFIUdQuljtOocgp8S7UO2o4Lfu/iKfDZkD5zqwTVnwzOepjwJ89IiI+FMxsMRAk/If1HY8RJtj0aoRSymhTlDDzJslcBUxTQKWEF6tkiuctX9tf/091eXHtRAdvVvMvmk3eXzsIVG10BwQLcYgCTVc9DX4CfXO/pBs+CLQW8CC3HXxg3RKMy+Dk5c6eAaS+4Y/1TEoBDAuzGtrBwxh6jes97RyrGf3fuq74G6jer+MJqBQ4S043RBE1M2KIxgZEo0+AeOgjXEQ7jz+T7dX93XZl+ktie65GZ/vrbjLyDuuQED7HfYUm2+btzNCWxx8xtyVv1JU9ukXR2ohBISBg== Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=vivo.com; Received: from PSAPR06MB4486.apcprd06.prod.outlook.com (2603:1096:301:89::11) by JH0PR06MB6889.apcprd06.prod.outlook.com (2603:1096:990:46::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7741.35; Wed, 10 Jul 2024 01:19:28 +0000 Received: from PSAPR06MB4486.apcprd06.prod.outlook.com ([fe80::43cb:1332:afef:81e5]) by PSAPR06MB4486.apcprd06.prod.outlook.com ([fe80::43cb:1332:afef:81e5%5]) with mapi id 15.20.7741.033; Wed, 10 Jul 2024 01:19:27 +0000 To: Jaegeuk Kim , Chao Yu Date: Tue, 9 Jul 2024 19:33:07 -0600 Message-Id: <3ae7c67217cfa89d6e152853071fef4adfdc4766.1720515215.git.bo.wu@vivo.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: References: X-ClientProxiedBy: SI2PR01CA0030.apcprd01.prod.exchangelabs.com (2603:1096:4:192::15) To PSAPR06MB4486.apcprd06.prod.outlook.com (2603:1096:301:89::11) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: PSAPR06MB4486:EE_|JH0PR06MB6889:EE_ X-MS-Office365-Filtering-Correlation-Id: 7d5c315c-b40f-4426-ac08-08dca07e579b X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; ARA:13230040|376014|52116014|366016|1800799024|38350700014; X-Microsoft-Antispam-Message-Info: Q0hd2Pf4yy8SJYeAyRpV8gnc32Fdst/UsKkp5JOk7pwUM39I4WZ1pzOL8NZXjNhXDUCb15A0DMVYLGB3PdduY0+fYrUo2h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F63uBIZjPIsDuVzSQLnL6mEenvx6kD2XhA9a3a3niZ7f7nfLqXSUVoKqqab7ODijYKdtjV97Z1vUpKSh++00wCsupAqE94zUWmmg3E/7Hn1RG8mXsEHcqTgXZRGHNcn3098yeszKBBFE9v9uktETLziLEv2Qvp03tWeTW/yDfLR+58+fLrXu0zmzYfeO+2G5eq20922X1sDttV7y8VxVSenBl8TmTxItz7cHMe5yGuZXsXT6SNZQ== X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:PSAPR06MB4486.apcprd06.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230040)(376014)(52116014)(366016)(1800799024)(38350700014); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: jwBaedmmEJqVDHC92voV9Zr3xxVGE4mlnHvdKf0kuP362k3QVnVWuRQjQSCJmNpHLHomGimdP1mkjf10hyLpEGNnxV5LcWO3TXP8ugG3Xy0EnIpbzsbhmT+lKLYItybVy9tACYUZJnrbADIxNLaF0BUULCNqzO1nFtXWt+J/c34DP515uQ9KBkO4bdJszojhC81q85V1pkrWDNXsidAMaoBFa0LWa3RLHUD153Dty10i/QZtpkxvyjWJmURtNm4KX66y5mJSxixCqX6dWOiAiuDg9ndhf6YL2vJ8whYd+aAS0ek6jt5OfenNi8CRgXiea3/1eiBD19Wo99MTeE2HNhro8LX8LNE1XXr8Voesk6lHsWJDOuiELC2S+I0vJuCKoQW+kqiIdhId1W0P1JQdimJZKHwiJUohhVfqW7oQb51fvWI2EZKP9GTeg8lcg5yCRBXb7uap/8+XhtgHmLpIOTgPXj39XIu2lFB9JXphctqCmY7ATt8UENT24AhF/knEAPPC7xjp/mV5ts71mUOzrYAfeg60KSnQ0LfuP2K6DQWrPyMI/ymNB084ppv+dx10gy95D1+AJWeFvkg+H6GEZMekpAWIrBhxoGs6/fuumv3kNOibCp3puoblsn4X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PR06MB4486.apcprd06.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 10 Jul 2024 01:19:27.7787 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 923e42dc-48d5-4cbe-b582-1a797a6412ed X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: wnw04RpFJGLko8vXsijqAyoQZgvhId+t6MpRtyiCLhvmET1xGd/MuU6MqSapHjOe2uPy/UHJnD92DplooBWpSQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: JH0PR06MB6889 X-Headers-End: 1sRLzY-0004qo-O5 Subject: [f2fs-dev] [RFC PATCH 5/5] f2fs: set inline tail flag when create inode X-BeenThere: linux-f2fs-devel@lists.sourceforge.net X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-Patchwork-Original-From: Wu Bo via Linux-f2fs-devel From: Wu Bo Reply-To: Wu Bo Cc: Wu Bo , linux-kernel@vger.kernel.org, Wu Bo , linux-f2fs-devel@lists.sourceforge.net Errors-To: linux-f2fs-devel-bounces@lists.sourceforge.net Set inline tail flag to enable this feature when new inode is created. Inherit the conditions from inline data. Signed-off-by: Wu Bo --- 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);