diff options
author | Chris Mason <chris.mason@oracle.com> | 2008-08-04 23:17:27 -0400 |
---|---|---|
committer | Chris Mason <chris.mason@oracle.com> | 2008-09-25 11:04:06 -0400 |
commit | 3de9d6b649b4cc60687be92e71cef36d7d4e8f2f (patch) | |
tree | 039f774f07a86bb9ace7986592dc462c7e1eec88 /fs/btrfs/file-item.c | |
parent | ea8c281947950fac5f78818b767821d696c9512a (diff) |
btrfs_lookup_bio_sums seems broken, go back to the readpage_io_hook for now
Signed-off-by: Chris Mason <chris.mason@oracle.com>
Diffstat (limited to 'fs/btrfs/file-item.c')
-rw-r--r-- | fs/btrfs/file-item.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/fs/btrfs/file-item.c b/fs/btrfs/file-item.c index 70af24aa582b..51aba8cee7ce 100644 --- a/fs/btrfs/file-item.c +++ b/fs/btrfs/file-item.c | |||
@@ -134,6 +134,7 @@ int btrfs_lookup_file_extent(struct btrfs_trans_handle *trans, | |||
134 | return ret; | 134 | return ret; |
135 | } | 135 | } |
136 | 136 | ||
137 | #if 0 /* broken */ | ||
137 | int btrfs_lookup_bio_sums(struct btrfs_root *root, struct inode *inode, | 138 | int btrfs_lookup_bio_sums(struct btrfs_root *root, struct inode *inode, |
138 | struct bio *bio) | 139 | struct bio *bio) |
139 | { | 140 | { |
@@ -200,7 +201,7 @@ int btrfs_lookup_bio_sums(struct btrfs_root *root, struct inode *inode, | |||
200 | diff = diff * BTRFS_CRC32_SIZE; | 201 | diff = diff * BTRFS_CRC32_SIZE; |
201 | 202 | ||
202 | read_extent_buffer(path->nodes[0], &sum, | 203 | read_extent_buffer(path->nodes[0], &sum, |
203 | (unsigned long)item + diff, | 204 | ((unsigned long)item) + diff, |
204 | BTRFS_CRC32_SIZE); | 205 | BTRFS_CRC32_SIZE); |
205 | found: | 206 | found: |
206 | set_state_private(io_tree, offset, sum); | 207 | set_state_private(io_tree, offset, sum); |
@@ -210,6 +211,7 @@ found: | |||
210 | btrfs_free_path(path); | 211 | btrfs_free_path(path); |
211 | return 0; | 212 | return 0; |
212 | } | 213 | } |
214 | #endif | ||
213 | 215 | ||
214 | int btrfs_csum_one_bio(struct btrfs_root *root, struct inode *inode, | 216 | int btrfs_csum_one_bio(struct btrfs_root *root, struct inode *inode, |
215 | struct bio *bio) | 217 | struct bio *bio) |