author: Jens Axboe <axboe@fb.com> 2016-11-01 10:00:38 -0600
committer: Jens Axboe <axboe@fb.com> 2016-11-02 10:24:03 -0600
commit: 7637241e651ec36e409412869f986dd5f097735f
parent: 1d796d6a9641fbfcd90fcfaf6fb4894a13d0304f
Commit Summary:
Diffstat:
1 file changed, 1 insertion, 2 deletions
diff --git a/fs/gfs2/meta_io.c b/fs/gfs2/meta_io.c
index e562b1191c9c..49db8ef13fdf 100644
--- a/fs/gfs2/meta_io.c
+++ b/fs/gfs2/meta_io.c
@@ -37,8 +37,7 @@ static int gfs2_aspace_writepage(struct page *page, struct writeback_control *wb
{
struct buffer_head *bh, *head;
int nr_underway = 0;
- int write_flags = REQ_META | REQ_PRIO |
- (wbc->sync_mode == WB_SYNC_ALL ? REQ_SYNC : 0);
+ int write_flags = REQ_META | REQ_PRIO | wbc_to_write_flags(wbc);
BUG_ON(!PageLocked(page));
BUG_ON(!page_has_buffers(page));