|
|
Subscribe / Log in / New account

ext4: Implement support for extsize hints

From:  Ojaswin Mujoo <ojaswin-AT-linux.ibm.com>
To:  linux-ext4-AT-vger.kernel.org, "Theodore Ts'o" <tytso-AT-mit.edu>
Subject:  [RFC v2 0/6] ext4: Implement support for extsize hints
Date:  Wed, 11 Dec 2024 13:27:49 +0530
Message-ID:  <cover.1733901374.git.ojaswin@linux.ibm.com>
Cc:  Ritesh Harjani <ritesh.list-AT-gmail.com>, linux-kernel-AT-vger.kernel.org, "Darrick J . Wong" <djwong-AT-kernel.org>, linux-fsdevel-AT-vger.kernel.org, John Garry <john.g.garry-AT-oracle.com>, dchinner-AT-redhat.com, Nirjhar Roy <nirjhar-AT-linux.ibm.com>
Archive-link:  Article

** Changes since rfc v1 [1] **

1. Allocations beyond EOF also respect extsize hint however we 
   unlink XFS, we don't trim the blocks allocated beyond EOF due
   to extsize hints. The reasoning behind this is explained in 
   patch 6/6.

2. Minor fixes in extsize ioctl handling logic.

Rest of the design detials can be in individual patches as well as
the original cover leter which can be found here:

[1]
https://lore.kernel.org/linux-ext4/cover.1726034272.git.o...

Further, xfsprogs changes to enable extsize get/set for ext4 can be
found here:
https://lore.kernel.org/linux-ext4/cover.1733902742.git.o...

Comments and suggestions are welcome!

Regards,
ojaswin

Ojaswin Mujoo (6):
  ext4: add aligned allocation hint in mballoc
  ext4: allow inode preallocation for aligned alloc
  ext4: support for extsize hint using FS_IOC_FS(GET/SET)XATTR
  ext4: pass lblk and len explicitly to ext4_split_extent*()
  ext4: add extsize hint support
  ext4: make extsize work with EOF allocations

 fs/ext4/ext4.h              |  12 +-
 fs/ext4/ext4_jbd2.h         |  15 ++
 fs/ext4/extents.c           | 224 +++++++++++++++----
 fs/ext4/inode.c             | 435 ++++++++++++++++++++++++++++++++----
 fs/ext4/ioctl.c             | 122 ++++++++++
 fs/ext4/mballoc.c           | 126 +++++++++--
 fs/ext4/super.c             |   1 +
 include/trace/events/ext4.h |   2 +
 8 files changed, 836 insertions(+), 101 deletions(-)

-- 
2.43.5




Copyright © 2024, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds