Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp3527539yba; Mon, 8 Apr 2019 22:25:36 -0700 (PDT) X-Google-Smtp-Source: APXvYqwRHr8lCcQObOjmMUXPzqzcraqIC3vWQv0jE4tfmpjYI+NGNhb7TS15OjLQzPw6wmOTpigv X-Received: by 2002:a63:1f61:: with SMTP id q33mr30212935pgm.325.1554787536438; Mon, 08 Apr 2019 22:25:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1554787536; cv=none; d=google.com; s=arc-20160816; b=TyTDw42VajDKmLJAO6pdxJbpeWkeIH8vc/tWHZJuQ60GUHDpnWT0htDhXCLkRgdf67 tu6JttVSAa4g+q8/Qt6eHwOucqEKfFXJTkoYW8pPuJ8VGGJJ+0dQZVLJ/bhJp4di5twM aQS7X/TNEoA3ppJROyvxmSP9E5F33aOEAoaVnQo6IGViuJWHbSnFRaJ5yHG8Fls7kPyX nFobMPoyG1NbMD93lB9ChKY5hRNgowoxBZvXmWjSYo6zjagegeQImDhfuC539k+57CeO NXRW6RYRqnl9HIIlMcPBk6/LLnQXRUc5yuVbQ3G5Awv/IeNZFtMDfl88SYKc3b7Z4Bg3 iQvw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:message-id :in-reply-to:date:references:subject:cc:to:from; bh=1joDiIrMwoB51Hw7GUg9LCU9ic8pBndasRHJ+8TNyHE=; b=WBgrRhDnPSIainkQDKSOnVHFrPM1w5/NTmUWrskB9BInXgQw/38EW+ZpzcD+nHxb7Y Qy9PNVootZJ3UwXBS3yrYHmOxqLP+1C0VeTccY7X5sDWCMvtYlfwLmYFiOpYUhoYPjjH g8PvasXoWIiyh7JZSKn6s/dpoj1aq+pI/X4EIWwAmV20FxJprhvryvzC5nT862E64PR1 +PArROcqmGbyxQaBTMKY0tRsrp8iL58onEHklSqW3PRW/jdifPPVhF+JVsPZNbWZ0co2 5Z8SBjnzVyBGVbZFik1BpLw4GW/E42mYZN6yQHZRlhe0mKwZMLu1l5YOkuk9/8s4WXtp RTpg== ARC-Authentication-Results: i=1; mx.google.com; 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 g123si30252416pfb.24.2019.04.08.22.25.19; Mon, 08 Apr 2019 22:25:36 -0700 (PDT) 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; 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 S1727222AbfDIFWf (ORCPT + 99 others); Tue, 9 Apr 2019 01:22:35 -0400 Received: from mail.parknet.co.jp ([210.171.160.6]:50536 "EHLO mail.parknet.co.jp" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725550AbfDIFWf (ORCPT ); Tue, 9 Apr 2019 01:22:35 -0400 X-Greylist: delayed 345 seconds by postgrey-1.27 at vger.kernel.org; Tue, 09 Apr 2019 01:22:34 EDT Received: from ibmpc.myhome.or.jp (server.parknet.ne.jp [210.171.168.39]) by mail.parknet.co.jp (Postfix) with ESMTPSA id DFD4E15CBFF; Tue, 9 Apr 2019 14:22:32 +0900 (JST) Received: from devron.myhome.or.jp (foobar@devron.myhome.or.jp [192.168.0.3]) by ibmpc.myhome.or.jp (8.15.2/8.15.2/Debian-12) with ESMTPS id x395MV3j012491 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NOT); Tue, 9 Apr 2019 14:22:32 +0900 Received: from devron.myhome.or.jp (foobar@localhost [127.0.0.1]) by devron.myhome.or.jp (8.15.2/8.15.2/Debian-12) with ESMTPS id x395MVgG008354 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NOT); Tue, 9 Apr 2019 14:22:31 +0900 Received: (from hirofumi@localhost) by devron.myhome.or.jp (8.15.2/8.15.2/Submit) id x395MVYO008353; Tue, 9 Apr 2019 14:22:31 +0900 From: OGAWA Hirofumi To: "Darrick J. Wong" Cc: Hou Tao , linux-fsdevel@vger.kernel.org, viro@zeniv.linux.org.uk, jack@suse.cz, linux-kernel@vger.kernel.org Subject: Re: [PATCH] fat: issue flush after the writeback of FAT References: <20190409030158.136316-1-houtao1@huawei.com> <20190409034100.GF1177@magnolia> Date: Tue, 09 Apr 2019 14:22:31 +0900 In-Reply-To: <20190409034100.GF1177@magnolia> (Darrick J. Wong's message of "Mon, 8 Apr 2019 20:41:00 -0700") Message-ID: <87a7gzbvmw.fsf@mail.parknet.co.jp> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org "Darrick J. Wong" writes: >> + err = __generic_file_fsync(filp, start, end, datasync); >> + if (err) >> + return err; >> >> - res = generic_file_fsync(filp, start, end, datasync); >> err = sync_mapping_buffers(MSDOS_SB(inode->i_sb)->fat_inode->i_mapping); > > Huh. I would've thought that flushing the FAT would also be required > at the end of a WB_SYNC_ALL (aka data integrity) writepages call? In fatfs implement, FAT area is flushed by sync_mapping_buffers(fat_inode). (FAT buffer is dirtied only by using bh->b_assoc_map to fat_inode) Thanks. -- OGAWA Hirofumi