Skip to content

xfs: clean up unit usage in xfs_buf

Dave Chinner linux-xfs 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest4 patches 5 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4xfs: clean up buffer get/read call APIfs/xfs/xfs_buf.c fs/xfs/xfs_buf.h fs/xfs/xfs_fsops.c +5 more+84 -740 replies
2/4xfs: kill b_file_offsetfs/xfs/xfs_buf.c fs/xfs/xfs_buf.h+9 -152 replies
3/4xfs: use blocks for counting length of buffersfs/xfs/xfs_attr.c fs/xfs/xfs_buf.c fs/xfs/xfs_buf.h +3 more+28 -312 replies
4/4xfs: 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+40 -391 reply

Reviews trailers per patch

3 of 4 patches have a Reviewed-by or Acked-by.

PatchChristoph Hellwig
1/4R-b
2/4R-b
3/4
4/4R-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/4] xfs: clean up unit usage in xfs_buf

This is an update an repost of the start of a series I posted back in December. It has been rebased on top of Christoph's ilock hold reduction and xfsbufd removal patch series, as well as all the outstanding patches I've sent out recently, so I guarantee it won't apply to a dev tree cleanly.

Basically 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.

Ther's nothing controversial here (at least, not from the raction to the first posting). It lays the groundwork for introducing compound buffers, and those are needed to be able to remove the intermediate xfs_dabuf that the directory code uses for discontiguous large directory blocks. This will then allow all metadata types to use the the buffer cache to trigger CRC calculations on immediately after read (validation) and prior to write (calculation).

The compound buffer patches will follow soon - i'm trying to break this up into bite-sized chunks so that reviewers have a chance to keep up with the rate can test them and I post them...

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