Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp72127ybz; Wed, 15 Apr 2020 04:46:20 -0700 (PDT) X-Google-Smtp-Source: APiQypLHK6s0ijbEPOaB5OjdOwv+FpKJ6G0/ZYvnMY1UOXCQGOP0HQRDNuE7I1IQzTZu1VrSaNKG X-Received: by 2002:a50:cfc6:: with SMTP id i6mr24602190edk.314.1586951179919; Wed, 15 Apr 2020 04:46:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1586951179; cv=none; d=google.com; s=arc-20160816; b=d2DfaeBybH+H9A4shrnqXtLgD4mQ5Apsy5X2l5udlzzq9xqnR1m3GxHyWCDdir91bB QRbGEYj36S4KofzoyxC9LcihJrSaBO1VRDwnefGwY6Zj1QpVkR2z/hmOEvZ8pVGUvEXM bWH56q/E2bJr1lvKJG2WnWN5zxCm/JWHg6a8KGakH1VmoMOladbKpQYvAtxEUJsekmCY XDw9qa9d3WF1hgzkSQVv0MwgYHpF9E+/wO8GQhzSx5BeEviuxtfPPbqxKpj4hln3qrfQ ufo7RRD0GEECqyz809slAidqKBTSngyiYiErzrLhc4olYRzXg8OXpZsucbghxTZGiBv8 Uu7A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-disposition:mime-version :message-id:subject:to:from:date; bh=kDbMKSOVFQfhHUuNT9m7tkaLmwYc0Wwn/gF3GXkyTRA=; b=eTbj532cg3FVKfCefW7FVRRiZjTicTZCG0O1qkziHlHxyu6tuKBV9wDFJMs+rkH0MT LCCGLrN3UmVqFzXzAgwzRltZvOJLrF/YWc1gwJ7ZpAhlLhV5MkCDnPv4iKOyiWPvz2fr 0AD/uJM8yNd0p+6sePCPMq4zgX64Jyxk9sX6vZyJThPeSKeVW9PTmE3KfjpduXclOp+M 72ckjbb7P/RA1U6KWeKgnWxyJJx+M/IrxYgZictfAA1wL1si3o+TqRk8oHXHU1/MXp8h DV76+pVsmwHJjGnjRcBLumZC8W1qgT9MjxhXbUOcwgC2EEZdCndpszkFAWLZUZWNKZfd PrXQ== 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 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 h21si1075993edq.123.2020.04.15.04.45.55; Wed, 15 Apr 2020 04:46:19 -0700 (PDT) Received-SPF: pass (google.com: best guess record for 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: best guess record for 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 S2406232AbgDNHCU (ORCPT + 99 others); Tue, 14 Apr 2020 03:02:20 -0400 Received: from relay1-d.mail.gandi.net ([217.70.183.193]:45459 "EHLO relay1-d.mail.gandi.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2406221AbgDNHCN (ORCPT ); Tue, 14 Apr 2020 03:02:13 -0400 X-Originating-IP: 50.39.163.217 Received: from localhost (50-39-163-217.bvtn.or.frontiernet.net [50.39.163.217]) (Authenticated sender: josh@joshtriplett.org) by relay1-d.mail.gandi.net (Postfix) with ESMTPSA id AFDBC240004 for ; Tue, 14 Apr 2020 07:02:09 +0000 (UTC) Date: Tue, 14 Apr 2020 00:02:07 -0700 From: Josh Triplett To: linux-ext4@vger.kernel.org Subject: Inline data with 128-byte inodes? Message-ID: <20200414070207.GA170659@localhost> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Sender: linux-ext4-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-ext4@vger.kernel.org Is there a fundamental reason that ext4 *can't* or *shouldn't* support inline data with 128-byte inodes? As far as I can tell, the kernel ext4 implementation only allows inline data with 256-byte or larger inodes, because it requires the system.data xattr to exist, even if the actual data requires 60 bytes or less. (The implementation in debugfs, on the other hand, handles inline data in 128-byte inodes just fine. And it seems like it'd be fairly straightforward to change the kernel implementation to support it as well.) For filesystems that don't need to store xattrs in general, and can live with the other limitations of 128-byte inodes, using a 128-byte inode can save substantial space compared to a 256-byte inode (many megabytes worth of inode tables, versus 4k for each file between 61-160 bytes), and many small files or small directories would still fit in 60 bytes.