Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp104105ybz; Tue, 21 Apr 2020 16:16:30 -0700 (PDT) X-Google-Smtp-Source: APiQypI/fKoo9df34Deyp1JjX/x4Pt5liwWAb3mGZAqdYh8PBjNdq3LVMvCdEtooHVuHsjAeUso3 X-Received: by 2002:a17:906:855a:: with SMTP id h26mr24232753ejy.56.1587510990583; Tue, 21 Apr 2020 16:16:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1587510990; cv=none; d=google.com; s=arc-20160816; b=wY77tF0Mfvm7YTJUIAVN1u35rlkBka6aQ7p8BXf6hx4w87qPPbk+WP8gF9egPCWUT+ aP0Q7wWznDyjDp09Q34xAna/yV4G7gJdWb8cxU5lDx0CupAPsNRepgh62HI9LIxCxoGr Z9adstOhgK+gQJ6tc8aAANPKKoKKQ/KZJNEBW045FEkK5x8SMRZfwjF3W0s80qdC94s7 JziJlIbGiNI2vyq7SZpVdOXvEoctCsFNZuv7fceMG1puLcmE/LnO1aQbsKM28tTxPny+ f7HlcJCLhw3pTS/hGZwicBrFxy0LXiZMZRMcnnjydbFkUk9Q3SuI5+Fb/3V+HeWw3IMr DFxA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:auto-submitted :content-transfer-encoding:references:in-reply-to:message-id:date :subject:to:from; bh=UJVxjMRPBealyyWa8nV44fUYxT5EAGdS+GPmOalZenE=; b=gn6PMXHh12aWCm3Tv9n+4tYPSx5UUN1eQ2hJNdGtdHydtEpptg18CmIeXAoLE+4cKn 2CqZWozfY+sp7TpuoxvZ4xY9U1AfDT40ryyqcnbRHKz7cksVcE9YFpQy7yXMAlwBokJU lUHUdnpBtC7eevLcRwbZqjUIYEniSRMS+Di/eM/f/q0Z5K7YuhcmM5F8DBTDmrQ2US9u 12zPPnkZR7cOR/rror0vWEHxBYzhiw5W4z6zGAmdoSc4kHu513SiagEzchc7ztz6r+jC QdMk1YIZVlsVa710ofyBUdgwdL2+QVW35Bw+qDse21sB53gX7DgKPPLNBBZWKn+lHT/Z Uhgg== 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id x25si2465505edi.76.2020.04.21.16.16.06; Tue, 21 Apr 2020 16:16:30 -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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726079AbgDUXP7 convert rfc822-to-8bit (ORCPT + 99 others); Tue, 21 Apr 2020 19:15:59 -0400 Received: from mail.kernel.org ([198.145.29.99]:45380 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726039AbgDUXP7 (ORCPT ); Tue, 21 Apr 2020 19:15:59 -0400 From: bugzilla-daemon@bugzilla.kernel.org Authentication-Results: mail.kernel.org; dkim=permerror (bad message/signature format) To: linux-ext4@vger.kernel.org Subject: [Bug 207367] Accraid / aptec / Microsemi / ext4 / larger then 16TB Date: Tue, 21 Apr 2020 23:15:58 +0000 X-Bugzilla-Reason: None X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: AssignedTo fs_ext4@kernel-bugs.osdl.org X-Bugzilla-Product: File System X-Bugzilla-Component: ext4 X-Bugzilla-Version: 2.5 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: tytso@mit.edu X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P1 X-Bugzilla-Assigned-To: fs_ext4@kernel-bugs.osdl.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8BIT X-Bugzilla-URL: https://bugzilla.kernel.org/ Auto-Submitted: auto-generated MIME-Version: 1.0 Sender: linux-ext4-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-ext4@vger.kernel.org https://bugzilla.kernel.org/show_bug.cgi?id=207367 --- Comment #13 from Theodore Tso (tytso@mit.edu) --- On Tue, Apr 21, 2020 at 09:45:54AM -0700, Christoph Hellwig wrote: > On Tue, Apr 21, 2020 at 06:29:10PM +0200, Jan Kara wrote: > > 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. > > You'll need to describe the mapping some how. So why not reuse an > existing mechanism instead of creating a new ad-hoc one? Well, we could argue that bmap() is an "existing mechanism" --- again, bmap() returns a u64, so it's perfectly fine. It's FIBMAP which is "fundamentally broken", not bmap(). If the goal is to eventually eliminate bmap() and aops->bmap(), sure, then we should force march all file systems to use iomap_bmap(), including ocfs2. Otherwise, if the goal alert users of FIBMAP when it's returning an corrutped block number, why not move the check if the block is larger than INT_MAX to ioctl_fibmap() in fs/ioctl.c, instead of in iomap_bmap()? If we can't fix this, I'm beginning to think that switching to iomap for fiemap and bmap is actually a lose for ext4. It's causing performance regressions, and now we see it's causing functionality regressions. Sure, it's saving a bit of code size, but is it really worth it to use iomap for fiemap/bmap? - Ted -- You are receiving this mail because: You are watching the assignee of the bug.