diff options
Diffstat (limited to 'fs/buffer.c')
-rw-r--r-- | fs/buffer.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/fs/buffer.c b/fs/buffer.c index a29335867e30..bc7c2bb30a9b 100644 --- a/fs/buffer.c +++ b/fs/buffer.c | |||
@@ -753,7 +753,7 @@ static int fsync_buffers_list(spinlock_t *lock, struct list_head *list) | |||
753 | * still in flight on potentially older | 753 | * still in flight on potentially older |
754 | * contents. | 754 | * contents. |
755 | */ | 755 | */ |
756 | write_dirty_buffer(bh, WRITE_SYNC); | 756 | write_dirty_buffer(bh, REQ_SYNC); |
757 | 757 | ||
758 | /* | 758 | /* |
759 | * Kick off IO for the previous mapping. Note | 759 | * Kick off IO for the previous mapping. Note |
@@ -1684,7 +1684,7 @@ static struct buffer_head *create_page_buffers(struct page *page, struct inode * | |||
1684 | * prevents this contention from occurring. | 1684 | * prevents this contention from occurring. |
1685 | * | 1685 | * |
1686 | * If block_write_full_page() is called with wbc->sync_mode == | 1686 | * If block_write_full_page() is called with wbc->sync_mode == |
1687 | * WB_SYNC_ALL, the writes are posted using WRITE_SYNC; this | 1687 | * WB_SYNC_ALL, the writes are posted using REQ_SYNC; this |
1688 | * causes the writes to be flagged as synchronous writes. | 1688 | * causes the writes to be flagged as synchronous writes. |
1689 | */ | 1689 | */ |
1690 | int __block_write_full_page(struct inode *inode, struct page *page, | 1690 | int __block_write_full_page(struct inode *inode, struct page *page, |
@@ -1697,7 +1697,7 @@ int __block_write_full_page(struct inode *inode, struct page *page, | |||
1697 | struct buffer_head *bh, *head; | 1697 | struct buffer_head *bh, *head; |
1698 | unsigned int blocksize, bbits; | 1698 | unsigned int blocksize, bbits; |
1699 | int nr_underway = 0; | 1699 | int nr_underway = 0; |
1700 | int write_flags = (wbc->sync_mode == WB_SYNC_ALL ? WRITE_SYNC : 0); | 1700 | int write_flags = (wbc->sync_mode == WB_SYNC_ALL ? REQ_SYNC : 0); |
1701 | 1701 | ||
1702 | head = create_page_buffers(page, inode, | 1702 | head = create_page_buffers(page, inode, |
1703 | (1 << BH_Dirty)|(1 << BH_Uptodate)); | 1703 | (1 << BH_Dirty)|(1 << BH_Uptodate)); |
@@ -3210,7 +3210,7 @@ EXPORT_SYMBOL(__sync_dirty_buffer); | |||
3210 | 3210 | ||
3211 | int sync_dirty_buffer(struct buffer_head *bh) | 3211 | int sync_dirty_buffer(struct buffer_head *bh) |
3212 | { | 3212 | { |
3213 | return __sync_dirty_buffer(bh, WRITE_SYNC); | 3213 | return __sync_dirty_buffer(bh, REQ_SYNC); |
3214 | } | 3214 | } |
3215 | EXPORT_SYMBOL(sync_dirty_buffer); | 3215 | EXPORT_SYMBOL(sync_dirty_buffer); |
3216 | 3216 | ||