diff options
| -rw-r--r-- | fs/gfs2/incore.h | 3 | ||||
| -rw-r--r-- | fs/gfs2/meta_io.c | 6 | ||||
| -rw-r--r-- | fs/gfs2/ops_address.c | 4 |
3 files changed, 3 insertions, 10 deletions
diff --git a/fs/gfs2/incore.h b/fs/gfs2/incore.h index 89df68b32fc6..7183dcf03563 100644 --- a/fs/gfs2/incore.h +++ b/fs/gfs2/incore.h | |||
| @@ -12,9 +12,6 @@ | |||
| 12 | 12 | ||
| 13 | #include <linux/fs.h> | 13 | #include <linux/fs.h> |
| 14 | 14 | ||
| 15 | #define DIO_FORCE 0x00000001 | ||
| 16 | #define DIO_CLEAN 0x00000002 | ||
| 17 | #define DIO_DIRTY 0x00000004 | ||
| 18 | #define DIO_START 0x00000008 | 15 | #define DIO_START 0x00000008 |
| 19 | #define DIO_WAIT 0x00000010 | 16 | #define DIO_WAIT 0x00000010 |
| 20 | #define DIO_METADATA 0x00000020 | 17 | #define DIO_METADATA 0x00000020 |
diff --git a/fs/gfs2/meta_io.c b/fs/gfs2/meta_io.c index a5630ec6c045..6b52aacb0736 100644 --- a/fs/gfs2/meta_io.c +++ b/fs/gfs2/meta_io.c | |||
| @@ -120,8 +120,7 @@ void gfs2_ail1_start_one(struct gfs2_sbd *sdp, struct gfs2_ail *ai) | |||
| 120 | gfs2_io_error_bh(sdp, bh); | 120 | gfs2_io_error_bh(sdp, bh); |
| 121 | gfs2_log_lock(sdp); | 121 | gfs2_log_lock(sdp); |
| 122 | } | 122 | } |
| 123 | list_move(&bd->bd_ail_st_list, | 123 | list_move(&bd->bd_ail_st_list, &ai->ai_ail2_list); |
| 124 | &ai->ai_ail2_list); | ||
| 125 | continue; | 124 | continue; |
| 126 | } | 125 | } |
| 127 | 126 | ||
| @@ -411,9 +410,6 @@ int gfs2_meta_reread(struct gfs2_sbd *sdp, struct buffer_head *bh, int flags) | |||
| 411 | if (unlikely(test_bit(SDF_SHUTDOWN, &sdp->sd_flags))) | 410 | if (unlikely(test_bit(SDF_SHUTDOWN, &sdp->sd_flags))) |
| 412 | return -EIO; | 411 | return -EIO; |
| 413 | 412 | ||
| 414 | if (flags & DIO_FORCE) | ||
| 415 | clear_buffer_uptodate(bh); | ||
| 416 | |||
| 417 | if ((flags & DIO_START) && !buffer_uptodate(bh)) | 413 | if ((flags & DIO_START) && !buffer_uptodate(bh)) |
| 418 | ll_rw_block(READ, 1, &bh); | 414 | ll_rw_block(READ, 1, &bh); |
| 419 | 415 | ||
diff --git a/fs/gfs2/ops_address.c b/fs/gfs2/ops_address.c index 91ec8080eeb2..3f9da7ce5dd9 100644 --- a/fs/gfs2/ops_address.c +++ b/fs/gfs2/ops_address.c | |||
| @@ -65,7 +65,7 @@ static void gfs2_page_add_databufs(struct gfs2_inode *ip, struct page *page, | |||
| 65 | int gfs2_get_block(struct inode *inode, sector_t lblock, | 65 | int gfs2_get_block(struct inode *inode, sector_t lblock, |
| 66 | struct buffer_head *bh_result, int create) | 66 | struct buffer_head *bh_result, int create) |
| 67 | { | 67 | { |
| 68 | return gfs2_block_map(inode, lblock, create, bh_result, 32); | 68 | return gfs2_block_map(inode, lblock, create, bh_result, 4); |
| 69 | } | 69 | } |
| 70 | 70 | ||
| 71 | /** | 71 | /** |
| @@ -94,7 +94,7 @@ static int gfs2_get_block_noalloc(struct inode *inode, sector_t lblock, | |||
| 94 | static int gfs2_get_block_direct(struct inode *inode, sector_t lblock, | 94 | static int gfs2_get_block_direct(struct inode *inode, sector_t lblock, |
| 95 | struct buffer_head *bh_result, int create) | 95 | struct buffer_head *bh_result, int create) |
| 96 | { | 96 | { |
| 97 | return gfs2_block_map(inode, lblock, 0, bh_result, 512); | 97 | return gfs2_block_map(inode, lblock, 0, bh_result, 32); |
| 98 | } | 98 | } |
| 99 | 99 | ||
| 100 | /** | 100 | /** |
