Skip to contentSkip to conversation

Btrfs: add direct I/O helper btrfs_lookup_one_csum().

RFC PATCH In review jim owens 1 participant 2 messages Jan 4, 2010 – Jan 19, 2010 Btrfs file system

lore
Share & tools
lore

jim owens

author
#0 lore raw

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.

---
 fs/btrfs/ctree.h     |    2 ++
 fs/btrfs/file-item.c |   45 +++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 47 insertions(+), 0 deletions(-)
fs/btrfs/ctree.h +2 -0
index bf04876..e5926c6 100644
@@ -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
author
#1 lore raw

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.

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