Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp315075ybz; Tue, 21 Apr 2020 09:31:37 -0700 (PDT) X-Google-Smtp-Source: APiQypKlqrLGqgoc2WPitQoS/iU+gKiCXbPHj+g4se9ZSkmJPIHalHLYBoikcvcsLWUth+n//So4 X-Received: by 2002:a17:906:484:: with SMTP id f4mr22115456eja.61.1587486697568; Tue, 21 Apr 2020 09:31:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1587486697; cv=none; d=google.com; s=arc-20160816; b=LxA5vJNN9Imw8mjvZiwjoUsRe0lDwA2+y5s31VNHbO4XkqyaaDaOA4pQHc/Dw79+o7 8qw/aFMRQZJ1rTKvYu3DKvP1aOnPqgt+dMD7U0fmG6lYmJmqlUceEclACP3sf0xBdJkz +KSP5Mgc17SuyAh2uX/4VonR1gE/fNcLCW/kO5xqyG+Pm5e5p+Q8OH2I6+AdDpA7BNGt fP+z88ayRZ04mz49D9lnL0Sx08mkEJ0AwB3KIs30TTUYvOCFoqhtJFDar57ZIjKujB23 iGMuni8c/sVgKcj5ovGsnj8+rfnyr5HXz+IDIhowgjkfuuVkRetz1Jx+lPC7ZmL2zTT7 Au1A== 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=8GPBdFzUiJbiRjtf0cMUl/gHu/bYR1Hy2NAbnvBGErs=; b=nSzfccFU4tcjg3+AhOcKx4mjUgk0Fm39g6EyxDTnltQRqYfkrsEmuK3JrwWPGlaNjz qrrLwQg0hzHPkQFCP2ksJptdttFStMtiQRIjel0IbrDk81rC9qD2u5+olUKcL+Mb+jDB wmXY3Xk+40VSCTNuO7xOW3+Nba+G+ufmL4E3gIp0ETtXOB+AnozPUEfb0WClO6M9H2BN ++VbCu4B2j8hB6+r/bgQpPSFZBCO8uoN3VXmA0K2X+qQAX4h9YQHVYPZySFun0j/M9ic r6o88Az0S2Qptr+GVHkHHAQyV0P32Ji69XNiyzXDKWIpuutf9WVCkhK9/8JPM58Bhi4C 4TGg== 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 d1si1743090edr.360.2020.04.21.09.31.11; Tue, 21 Apr 2020 09:31:37 -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 S1726741AbgDUQ3N (ORCPT + 99 others); Tue, 21 Apr 2020 12:29:13 -0400 Received: from mx2.suse.de ([195.135.220.15]:36772 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726303AbgDUQ3N (ORCPT ); Tue, 21 Apr 2020 12:29:13 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx2.suse.de (Postfix) with ESMTP id E83F7AAB2; Tue, 21 Apr 2020 16:29:10 +0000 (UTC) Received: by quack2.suse.cz (Postfix, from userid 1000) id AF1001E0E57; Tue, 21 Apr 2020 18:29:10 +0200 (CEST) Date: Tue, 21 Apr 2020 18:29:10 +0200 From: Jan Kara To: Christoph Hellwig Cc: Dave Chinner , Ritesh Harjani , bugzilla-daemon@bugzilla.kernel.org, linux-ext4@vger.kernel.org, Theodore Ts'o , Jan Kara , "Darrick J. Wong" , linux-fsdevel@vger.kernel.org Subject: Re: [Bug 207367] Accraid / aptec / Microsemi / ext4 / larger then 16TB Message-ID: <20200421162910.GB5118@quack2.suse.cz> References: <20200421042039.BF8074C046@d06av22.portsmouth.uk.ibm.com> <20200421050850.GB27860@dread.disaster.area> <20200421080405.GA4149@infradead.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200421080405.GA4149@infradead.org> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-ext4-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-ext4@vger.kernel.org On Tue 21-04-20 01:04:05, Christoph Hellwig wrote: > On Tue, Apr 21, 2020 at 03:08:50PM +1000, Dave Chinner wrote: > > > 4. fs/jbd2/journal.c > > > > Broken on filesystems where the journal file might be placed beyond > > a 32 bit block number, iomap_bmap() just makes that obvious. Needs > > fixing. > > I think this wants to use iomap, as that would solve all the problems. Well, there are two problems with this - firstly, ocfs2 is also using jbd2 and it knows nothing about iomap. So that would have to be implemented. Secondly, you have to somehow pass iomap ops to jbd2 so it all boils down to passing some callback to jbd2 during journal init to map blocks anyway as Dave said. And then it is upto filesystem to do the mapping - usually directly using its internal block mapping function - so no need for iomap AFAICT. Honza -- Jan Kara SUSE Labs, CR