Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp760416ybl; Wed, 4 Dec 2019 10:23:40 -0800 (PST) X-Google-Smtp-Source: APXvYqxOgE99cWUqMyITAOD4i53P+F0CXIEQTKzmlyZrEkFV0VjwReVnnd2Uoc5IuRTM93j0UNpG X-Received: by 2002:a05:6830:1257:: with SMTP id s23mr3623757otp.241.1575483820394; Wed, 04 Dec 2019 10:23:40 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1575483820; cv=none; d=google.com; s=arc-20160816; b=D5q1LzOt6N++mI7NYQkivqQVQwUktP3BhIZVMF9qJhNsUixD208rEMcqA6j6yjf7ct cQKupRPHSIxNXEHqfJicrPX9vkvNiuyZvEW/NmSEW/5f95QMZe4WDGFkEMnciQeW4HC/ 2ozNY3JxdUNlku3Exfa8Ce/dG/ajfPV2cUp69lvwXcwWqAousJRSzVXW46og2MSR3XGv UuKzU5i94HNvedxDQ1Xb7CQxEP35eDdCB2IIGP8mYM+VwBDKeZV1d4yweIPIU3yngBys uMnsbbhrrSEbQDuZ0r4JETmBxWYabHtrstqRuND5UvzeUrGO/+NNoA9EPqY07wkdfDZ4 FGrQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=FkmRR301kPLgSwKfSXfl5tTOcc0Ogi/k3i88DN64hjc=; b=0CIq2NYAsM5+fyLirqg6nZq0nH8JIMmDryTdacE+AT8jvVmDdTYryhlNMtnnHbaSun bVpXHqWWItzOIEaLJLldLWaUgsZhfGqjuk11gZ/TOSBwgFOIys502ICr/RpbTplQGf5P kxZIMQIzfGYX0eDffWQcuL/Epz6QZMrl6YOyFREXzRgF0FMxPqdVsGrtcEfEJlxiaz77 r0V/K7GBQDaUHzlmw1JhI7l1P67ApQgDG+yjgqHXWm3FlyrdYiVblvjZbWzMGr/Nqhhl agSMh5WElrZ9FM0UzPZmP/poj0B17c0wSnvD7ef/UxTUuOIMxo6/+cwB6EsEUN2p6b1i pl8Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=YeBiyh0m; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id p12si3516997otk.86.2019.12.04.10.23.27; Wed, 04 Dec 2019 10:23:40 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=YeBiyh0m; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730073AbfLDSWU (ORCPT + 99 others); Wed, 4 Dec 2019 13:22:20 -0500 Received: from mail.kernel.org ([198.145.29.99]:52050 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729824AbfLDSFZ (ORCPT ); Wed, 4 Dec 2019 13:05:25 -0500 Received: from localhost (unknown [217.68.49.72]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id D510B2081B; Wed, 4 Dec 2019 18:05:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1575482725; bh=uAYZUiGgVZVA8TdMU5/qfdvQ0kgDh1SXmr8vRZKpNZc=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=YeBiyh0mGR2RmO67ujwV4NQaxPZ1L32Cq8UID0RTD9wWi73l9w5T/GdO8tyeD3SjO uIqse54dka3idgXMtuRbORrTt/NdyVepuTO2oL1zmhMKe70JdruhVN86pREuL2pMNS KpJQMi7qxWzpsQJ2hZWK+NkUOWANG0kPXiVSRyjA= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Chao Yu , Jaegeuk Kim , Sasha Levin Subject: [PATCH 4.14 111/209] f2fs: fix to dirty inode synchronously Date: Wed, 4 Dec 2019 18:55:23 +0100 Message-Id: <20191204175329.699008290@linuxfoundation.org> X-Mailer: git-send-email 2.24.0 In-Reply-To: <20191204175321.609072813@linuxfoundation.org> References: <20191204175321.609072813@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Chao Yu [ Upstream commit b32e019049e959ee10ec359893c9dd5d057dad55 ] If user change inode's i_flags via ioctl, let's add it into global dirty list, so that checkpoint can guarantee its persistence before fsync, it can make checkpoint keeping strong consistency. Signed-off-by: Chao Yu Signed-off-by: Jaegeuk Kim Signed-off-by: Sasha Levin --- fs/f2fs/file.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/f2fs/file.c b/fs/f2fs/file.c index 1b17921994459..d68b0132718a6 100644 --- a/fs/f2fs/file.c +++ b/fs/f2fs/file.c @@ -1593,7 +1593,7 @@ static int __f2fs_ioc_setflags(struct inode *inode, unsigned int flags) inode->i_ctime = current_time(inode); f2fs_set_inode_flags(inode); - f2fs_mark_inode_dirty_sync(inode, false); + f2fs_mark_inode_dirty_sync(inode, true); return 0; } -- 2.20.1