linux-ext4.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Inline data with 128-byte inodes?
@ 2020-04-14  7:02 Josh Triplett
  2020-04-22 16:00 ` Jan Kara
  0 siblings, 1 reply; 6+ messages in thread
From: Josh Triplett @ 2020-04-14  7:02 UTC (permalink / raw)
  To: linux-ext4

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.

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2020-05-04 22:52 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-04-14  7:02 Inline data with 128-byte inodes? Josh Triplett
2020-04-22 16:00 ` Jan Kara
2020-04-22 20:15   ` Andreas Dilger
2020-04-23  0:40     ` Josh Triplett
2020-04-23 11:56       ` Jan Kara
2020-05-04 22:52       ` Andreas Dilger

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).