diff options
Diffstat (limited to 'fs/fs-writeback.c')
-rw-r--r-- | fs/fs-writeback.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/fs-writeback.c b/fs/fs-writeback.c index db80ce9eb1d0..c0076077d338 100644 --- a/fs/fs-writeback.c +++ b/fs/fs-writeback.c | |||
@@ -655,7 +655,7 @@ int write_inode_now(struct inode *inode, int sync) | |||
655 | int ret; | 655 | int ret; |
656 | struct writeback_control wbc = { | 656 | struct writeback_control wbc = { |
657 | .nr_to_write = LONG_MAX, | 657 | .nr_to_write = LONG_MAX, |
658 | .sync_mode = WB_SYNC_ALL, | 658 | .sync_mode = sync ? WB_SYNC_ALL : WB_SYNC_NONE, |
659 | .range_start = 0, | 659 | .range_start = 0, |
660 | .range_end = LLONG_MAX, | 660 | .range_end = LLONG_MAX, |
661 | }; | 661 | }; |