aboutsummaryrefslogtreecommitdiffstats
path: root/fs/btrfs/file-item.c
diff options
context:
space:
mode:
authorChris Mason <chris.mason@oracle.com>2008-08-20 09:44:52 -0400
committerChris Mason <chris.mason@oracle.com>2008-09-25 11:04:06 -0400
commit4d1b5fb4d7075f862848dbff8873e22382abd482 (patch)
tree2b68d05910f50c9e385890816e78eda6e8e6e55a /fs/btrfs/file-item.c
parent7c2fe32a238eb12422beca5cbd5194a594baa559 (diff)
Btrfs: Lookup readpage checksums on bio submission again
This optimization had been removed because I thought it was triggering csum errors. The real cause of the errors was elsewhere, and so this optimization is back. Signed-off-by: Chris Mason <chris.mason@oracle.com>
Diffstat (limited to 'fs/btrfs/file-item.c')
-rw-r--r--fs/btrfs/file-item.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/btrfs/file-item.c b/fs/btrfs/file-item.c
index 9454e0a07c89..f861bd506928 100644
--- a/fs/btrfs/file-item.c
+++ b/fs/btrfs/file-item.c
@@ -134,7 +134,6 @@ int btrfs_lookup_file_extent(struct btrfs_trans_handle *trans,
134 return ret; 134 return ret;
135} 135}
136 136
137#if 0 /* broken */
138int btrfs_lookup_bio_sums(struct btrfs_root *root, struct inode *inode, 137int btrfs_lookup_bio_sums(struct btrfs_root *root, struct inode *inode,
139 struct bio *bio) 138 struct bio *bio)
140{ 139{
@@ -151,6 +150,8 @@ int btrfs_lookup_bio_sums(struct btrfs_root *root, struct inode *inode,
151 struct extent_io_tree *io_tree = &BTRFS_I(inode)->io_tree; 150 struct extent_io_tree *io_tree = &BTRFS_I(inode)->io_tree;
152 151
153 path = btrfs_alloc_path(); 152 path = btrfs_alloc_path();
153 if (bio->bi_size > PAGE_CACHE_SIZE * 8)
154 path->reada = 2;
154 155
155 WARN_ON(bio->bi_vcnt <= 0); 156 WARN_ON(bio->bi_vcnt <= 0);
156 157
@@ -211,7 +212,6 @@ found:
211 btrfs_free_path(path); 212 btrfs_free_path(path);
212 return 0; 213 return 0;
213} 214}
214#endif
215 215
216int btrfs_csum_one_bio(struct btrfs_root *root, struct inode *inode, 216int btrfs_csum_one_bio(struct btrfs_root *root, struct inode *inode,
217 struct bio *bio) 217 struct bio *bio)