diff options
Diffstat (limited to 'fs/buffer.c')
-rw-r--r-- | fs/buffer.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/fs/buffer.c b/fs/buffer.c index f5f8b15a6e40..c2fa1be4923d 100644 --- a/fs/buffer.c +++ b/fs/buffer.c | |||
@@ -199,13 +199,13 @@ __find_get_block_slow(struct block_device *bdev, sector_t block) | |||
199 | head = page_buffers(page); | 199 | head = page_buffers(page); |
200 | bh = head; | 200 | bh = head; |
201 | do { | 201 | do { |
202 | if (bh->b_blocknr == block) { | 202 | if (!buffer_mapped(bh)) |
203 | all_mapped = 0; | ||
204 | else if (bh->b_blocknr == block) { | ||
203 | ret = bh; | 205 | ret = bh; |
204 | get_bh(bh); | 206 | get_bh(bh); |
205 | goto out_unlock; | 207 | goto out_unlock; |
206 | } | 208 | } |
207 | if (!buffer_mapped(bh)) | ||
208 | all_mapped = 0; | ||
209 | bh = bh->b_this_page; | 209 | bh = bh->b_this_page; |
210 | } while (bh != head); | 210 | } while (bh != head); |
211 | 211 | ||
@@ -3315,7 +3315,6 @@ EXPORT_SYMBOL(cont_write_begin); | |||
3315 | EXPORT_SYMBOL(end_buffer_read_sync); | 3315 | EXPORT_SYMBOL(end_buffer_read_sync); |
3316 | EXPORT_SYMBOL(end_buffer_write_sync); | 3316 | EXPORT_SYMBOL(end_buffer_write_sync); |
3317 | EXPORT_SYMBOL(file_fsync); | 3317 | EXPORT_SYMBOL(file_fsync); |
3318 | EXPORT_SYMBOL(fsync_bdev); | ||
3319 | EXPORT_SYMBOL(generic_block_bmap); | 3318 | EXPORT_SYMBOL(generic_block_bmap); |
3320 | EXPORT_SYMBOL(generic_cont_expand_simple); | 3319 | EXPORT_SYMBOL(generic_cont_expand_simple); |
3321 | EXPORT_SYMBOL(init_buffer); | 3320 | EXPORT_SYMBOL(init_buffer); |