Received: by 2002:a25:23cc:0:0:0:0:0 with SMTP id j195csp554943ybj; Tue, 5 May 2020 03:44:48 -0700 (PDT) X-Google-Smtp-Source: APiQypIfoZmLGSTlkIoi++j3/qH58vme79151jy/pTvoiRexnD5YhtdF9SvzElNPPkshOulwdArT X-Received: by 2002:a50:eb8b:: with SMTP id y11mr1921111edr.229.1588675487930; Tue, 05 May 2020 03:44:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1588675487; cv=none; d=google.com; s=arc-20160816; b=m/kJQBfQXvn6KYJYusQHfVM61hr1FbzuVi/BNi6jpfc9SIyTDiApRdigWjVjJQBjSZ 2K+NFY7x6xvgIXd/u9SHhkKGAGfeBn3ZxXfYONtudyBtVHpguU6nr8rgWJ22AKbm4LUX 1B8KpAPKfeEr21sgAU1H1HLjJ40bOsmFoTACRu9GW6L2z9/PNTpfy/eriERuz8lFXMkH UtpdzOCPbWEWQPQjIvYvkA+1YLZfZ/3ETtfAfKEF3OY0Jie0nMr0I3HpQDqeKDJfW3iv Moz807gCPSuCaVqkAPRp5AAdn4aJdKwxFkWiQMFvLrfXEVZvaQVt8tZIsaVKH+CANRUg wWpw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=0LWFEkfosgumMQnoSRa2fvKzhVBSwjdwYYdoKSmiS2s=; b=M+sCTqiX3fc7fGcdzFhCmn7Hsq+oQkbGUqN+xcsDOlgNumpkTfQbgvbc0WTsIofu/v rCVVTBfShBwDSX6YTU8/kXuXp8zpsoDJP4zC9aBWoroMnAN37BrurKZFqVAfi0uK49rG pCnBTVdmczhrCMref8kHAfmHP9J+Xv3lr6FmHEy72RA5z/LqmPuE7VyW3rt4QkMMJ9nG s1VgkWPhEqB18c7csqy8triMONOcO6sN9TJXzEKYR7MFgmFG3m4+QWU9HU5z6+wulALf 8qnC/QpUuIXIwJq9/imDHi6gim1QE/2wNmzJFobhJMK6bAlhzf6+tqUQWs4ojtQwQGYA adnA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id v21si961405edl.93.2020.05.05.03.44.23; Tue, 05 May 2020 03:44:47 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728713AbgEEKnW (ORCPT + 99 others); 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.