Btrfs: add direct I/O helper btrfs_lookup_one_csum().
RFC PATCH 11/12 Btrfs: add direct I/O helper btrfs_lookup_one_csum().
Direct I/O needs to fetch a single checksum based on the extent information instead of page struct content.
Signed-off-by jim owens <[email protected]>
--- fs/btrfs/ctree.h | 2 ++ fs/btrfs/file-item.c | 45 +++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 47 insertions(+), 0 deletions(-)
fs/btrfs/ctree.h +2 -0
@@ -2281,6 +2281,8 @@ int btrfs_csum_truncate(struct btrfs_trans_handle *trans, u64 isize);int btrfs_lookup_csums_range (struct btrfs_root *root,u64 start,u64 end,struct list_head *list,u32 *csums); +int btrfs_lookup_one_csum (struct btrfs_root *root,struct inode *inode, +u64 disk_bytenr,u64 fpos,u32 *csum);/* inode.c */ /* RHEL and EL kernels have a patch that renames PG_checked to FsMisc */
fs/btrfs/file-item.c +45 -0
51 lines not on this page · raw message
Signature · 1 line
1.5.6.3
I am retracting this patch:
Quoted 8 lines · jim owens
Direct I/O needs to fetch a single checksum based on the extent information instead of page struct content.
Signed-off-by jim owens <[email protected]>--- fs/btrfs/ctree.h | 2 ++ fs/btrfs/file-item.c | 45 +++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 47 insertions(+), 0 deletions(-)
This code will not be used now in directIO read.
jim