Hi,

Here's a couple patches to add basic fiemap support for delalloc extents
and make a somewhat unrelated cleanup. Patch 1 formats delalloc data
into fiemap info by faking up an extent key for pagecache resident
extents. When reading through some related code to grok how to do that
(I initially used a reservation type key), I happened across
bch2_extent_fallocate(), found the associated logic a bit wonky, and
thus tried to clean it up. Both patches are available in my CI test
branch.

Thoughts, reviews, flames appreciated.

Brian

P.S., I'm off soonish for PTO. If there are any issues to be addressed
with these patches, I'll pick it back up after the New Year.

Brian Foster (2):
  bcachefs: add fiemap delalloc extent detection
  bcachefs: clean up some dead fallocate code

 fs/bcachefs/fs.c      | 60 ++++++++++++++++++++++++++++++++++++++++---
 fs/bcachefs/io_misc.c | 35 +++++++++----------------
 2 files changed, 68 insertions(+), 27 deletions(-)

-- 
2.42.0


Reply via email to