From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.2 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_SANE_1 autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 58C66C47256 for ; Tue, 5 May 2020 10:43:23 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 3F2A22073B for ; Tue, 5 May 2020 10:43:23 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728716AbgEEKnW (ORCPT ); Tue, 5 May 2020 06:43:22 -0400 Received: from verein.lst.de ([213.95.11.211]:34595 "EHLO verein.lst.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728638AbgEEKnW (ORCPT ); Tue, 5 May 2020 06:43:22 -0400 Received: by verein.lst.de (Postfix, from userid 2407) id 7AAAD68C4E; Tue, 5 May 2020 12:43:19 +0200 (CEST) Date: Tue, 5 May 2020 12:43:19 +0200 From: Christoph Hellwig To: Ritesh Harjani Cc: Christoph Hellwig , linux-ext4@vger.kernel.org, viro@zeniv.linux.org.uk, jack@suse.cz, tytso@mit.edu, adilger@dilger.ca, amir73il@gmail.com, linux-fsdevel@vger.kernel.org, linux-unionfs@vger.kernel.org Subject: Re: [PATCH 09/11] fs: handle FIEMAP_FLAG_SYNC in fiemap_prep Message-ID: <20200505104319.GC15815@lst.de> References: <20200427181957.1606257-1-hch@lst.de> <20200427181957.1606257-10-hch@lst.de> <20200501225232.9F1B4AE05D@d06av26.portsmouth.uk.ibm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200501225232.9F1B4AE05D@d06av26.portsmouth.uk.ibm.com> User-Agent: Mutt/1.5.17 (2007-11-01) Sender: linux-ext4-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-ext4@vger.kernel.org On Sat, May 02, 2020 at 04:22:31AM +0530, Ritesh Harjani wrote: > > > On 4/27/20 11:49 PM, Christoph Hellwig wrote: >> By moving FIEMAP_FLAG_SYNC handling to fiemap_prep we ensure it is >> handled once instead of duplicated, but can still be done under fs locks, >> like xfs/iomap intended with its duplicate handling. Also make sure the >> error value of filemap_write_and_wait is propagated to user space. > > > Forgot to remove filemap_write_and_wait() from > ext4_ioctl_get_es_cache() ? Fixed.