Received: by 2002:a25:e7d8:0:0:0:0:0 with SMTP id e207csp2127616ybh; Fri, 13 Mar 2020 13:18:59 -0700 (PDT) X-Google-Smtp-Source: ADFU+vsGE8ZayDMx5Pa/jck2Nl0SHqeiiTIqirZ4qlECc6Wc7vdvWVafRZ76sv5GH1w5cTPG6XJV X-Received: by 2002:aca:c7c5:: with SMTP id x188mr8687868oif.130.1584130739819; Fri, 13 Mar 2020 13:18:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1584130739; cv=none; d=google.com; s=arc-20160816; b=V1+Aqg0Ktb+Ff/b3qWQ7/PsevV6zRj5lBrnRCZx9AzxhsIlQPPd5RskQfB0rhHYcU3 WGWkOW91naT4MdiMsix4CyYeaPDmc8zB8tqoIjk1KouX2wS7+Zmr7eN8iBSvvtwl3Pf0 +sbvALEe/83dx1CoVG7OWnxlrB180x6QEsznmaWFXkwVms8JmwWQnzGIQzf8BDWR61+3 C7Zk5bwkpkEY1hgpP52dVBdUUA0aIddFVbcb2aWTAIWiMOH4xXjlGWs4i6Hh8s0vZWXC /RAvdAH4bTk2DgM8GA/HTUj0YZ3/0lhor5nYVzzmwBPijnltfSEf/pZBtXtoGMLjAowi jhww== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=Tgv29oJzW3Rg85riGiMGP4V3Fj9xLoALY3Gc12yIVvc=; b=egTF8WMH1T1EnVTNUehaJ/GYqQbqeUxI3zkPVnN/aMaHb6bV4JVAMiWDUQEFYc4PnI Z5lbvkCcIzAeOtn5tiQ85w+IdAwXAFVYB6La2rsfRNRTq+0mxgogZ4cKLzcZymhj+IjT tdudI1zm3ycHmH4883VzrOU3d4tkXxX9UxDsejpt3Q/iwvY9u+6p1m4NGm/D/B/7DiRI Dey0Pzk0idDWjbC770VC+157+RYtAlMDuWQLjzVuByKjeEj2vnniX2Wdaeyp6+y9o4Qz JNED69NjSFkAn6S/O+sZKrGdfT6BlR3+9W5GNUQeBe6KWLNcF2s2IAdDxHq46gp1bjMo hFoA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-ext4-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-ext4-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 k11si5256823otb.252.2020.03.13.13.18.41; Fri, 13 Mar 2020 13:18:59 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-ext4-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-ext4-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727320AbgCMUS2 (ORCPT + 99 others); Fri, 13 Mar 2020 16:18:28 -0400 Received: from outgoing-auth-1.mit.edu ([18.9.28.11]:34843 "EHLO outgoing.mit.edu" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726620AbgCMUS2 (ORCPT ); Fri, 13 Mar 2020 16:18:28 -0400 Received: from callcc.thunk.org (pool-72-93-95-157.bstnma.fios.verizon.net [72.93.95.157]) (authenticated bits=0) (User authenticated as tytso@ATHENA.MIT.EDU) by outgoing.mit.edu (8.14.7/8.12.4) with ESMTP id 02DKID93004327 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 13 Mar 2020 16:18:14 -0400 Received: by callcc.thunk.org (Postfix, from userid 15806) id 9F6EF420E5E; Fri, 13 Mar 2020 16:18:13 -0400 (EDT) Date: Fri, 13 Mar 2020 16:18:13 -0400 From: "Theodore Y. Ts'o" To: Ritesh Harjani Cc: linux-ext4@vger.kernel.org, jack@suse.cz, adilger.kernel@dilger.ca, linux-fsdevel@vger.kernel.org, darrick.wong@oracle.com, hch@infradead.org, cmaiolino@redhat.com, david@fromorbit.com Subject: Re: [PATCHv5 4/6] ext4: Make ext4_ind_map_blocks work with fiemap Message-ID: <20200313201813.GK225435@mit.edu> References: <87fa0ddc5967fa707656212a3b66a7233425325c.1582880246.git.riteshh@linux.ibm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <87fa0ddc5967fa707656212a3b66a7233425325c.1582880246.git.riteshh@linux.ibm.com> Sender: linux-ext4-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-ext4@vger.kernel.org On Fri, Feb 28, 2020 at 02:56:57PM +0530, Ritesh Harjani wrote: > For indirect block mapping if the i_block > max supported block in inode > then ext4_ind_map_blocks() returns a -EIO error. But in case of fiemap > this could be a valid query to ->iomap_begin call. > So check if the offset >= s_bitmap_maxbytes in ext4_iomap_begin_report(), > then simply skip calling ext4_map_blocks(). > > Signed-off-by: Ritesh Harjani > Reviewed-by: Jan Kara Thanks, applied. - Ted