Skip to content

xfs: clean up unit usage in xfs_buf V2

Dave Chinner linux-xfs 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest8 patches 17 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/8xfs: check for buffer errors before waitingfs/xfs/xfs_buf.c fs/xfs/xfs_buf.h fs/xfs/xfs_log_recover.c+13 -136 replies
2/8xfs: fix incorrect b_offset initialisationfs/xfs/xfs_buf.c+0 -12 replies
3/8xfs: use kmem_zone_zalloc for buffersfs/xfs/xfs_buf.c+1 -22 replies
4/8xfs: clean up buffer get/read call APIfs/xfs/xfs_buf.c fs/xfs/xfs_buf.h fs/xfs/xfs_fsops.c +5 more+84 -741 reply
5/8xfs: kill b_file_offsetfs/xfs/xfs_buf.c fs/xfs/xfs_buf.h+8 -141 reply
6/8xfs: use blocks for counting length of buffersfs/xfs/xfs_attr.c fs/xfs/xfs_buf.c fs/xfs/xfs_buf.h +3 more+34 -342 replies
7/8xfs: use blocks for storing the desired IO sizefs/xfs/xfs_buf.c fs/xfs/xfs_buf.h fs/xfs/xfs_buf_item.c +4 more+41 -411 reply
8/8xfs: kill xfs_buf_btocfs/xfs/xfs_buf.c fs/xfs/xfs_buf.h+21 -232 replies

Reviews trailers per patch

All 8 patches have a Reviewed-by or Acked-by.

PatchChristoph HellwigMark Tinguely
1/8R-b R-b
2/8R-b R-b
3/8R-b R-b
4/8R-b R-b
5/8R-b R-b
6/8R-b R-b
7/8R-b R-b
8/8R-b R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/8] xfs: clean up unit usage in xfs_buf V2

This series cleans up the buffer cache API to use daddr formats for block numbers and basic blocks for lengths when trying to get or read a buffer and from there cleans up the internal usage of the same thing. Essentially we end up with tracking buffers by their daddr blkno, and BB based length, including the length of the IO needed to do out of the buffer. The b_offset field is still in bytes, as that is mostly used as a byte offset into the allocated memory that the buffer holds, rather than a disk based offset.

Version 2:
- new patch 1, fixes hang in log reading code when trying to find the head and IO dispatch returns EIO. Generic fix for the same problem for all IO dispatched via xfsbdstrat() and then waited on via xfs_buf_iowait().
- new patch 2, fixes EIO during IO dispatch reading uncached buffers when page size unaligned, subpage-sized multi-block buffers are incorrectly required to need multiple pages due to invalid b_offset. This was triggered by log recovery when finding the head of the log, and caused the hang fixed in patch 1. Problem was reliably triggered by patch 5, though there is no obvious reason that I can find for any of those changes to have tripped over this landmine.
- new patch 3, clean, noticed when trying to work out why b_offset wasn't zero find the problem fixed in patch 2.
- patch 4-7, updated according to Christoph's comments
- new patch 8, kills the xfs_buf_btoc (and related) macros as suggested by Christoph.

_______________________________________________
xfs mailing list
[email protected]
http://oss.sgi.com/mailman/listinfo/xfs