diff options
Diffstat (limited to 'fs/nfs')
-rw-r--r-- | fs/nfs/write.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/fs/nfs/write.c b/fs/nfs/write.c index 6786873a2901..a623b00530c3 100644 --- a/fs/nfs/write.c +++ b/fs/nfs/write.c | |||
@@ -242,11 +242,14 @@ static void nfs_mark_uptodate(struct nfs_page *req) | |||
242 | 242 | ||
243 | static int wb_priority(struct writeback_control *wbc) | 243 | static int wb_priority(struct writeback_control *wbc) |
244 | { | 244 | { |
245 | int ret = 0; | ||
245 | if (wbc->for_reclaim) | 246 | if (wbc->for_reclaim) |
246 | return FLUSH_HIGHPRI | FLUSH_STABLE; | 247 | return FLUSH_HIGHPRI | FLUSH_STABLE; |
248 | if (wbc->sync_mode == WB_SYNC_ALL) | ||
249 | ret = FLUSH_COND_STABLE; | ||
247 | if (wbc->for_kupdate || wbc->for_background) | 250 | if (wbc->for_kupdate || wbc->for_background) |
248 | return FLUSH_LOWPRI | FLUSH_COND_STABLE; | 251 | ret |= FLUSH_LOWPRI; |
249 | return FLUSH_COND_STABLE; | 252 | return ret; |
250 | } | 253 | } |
251 | 254 | ||
252 | /* | 255 | /* |