diff options
Diffstat (limited to 'fs/nfs/write.c')
-rw-r--r-- | fs/nfs/write.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/fs/nfs/write.c b/fs/nfs/write.c index ce728829f79a..35d81316163f 100644 --- a/fs/nfs/write.c +++ b/fs/nfs/write.c | |||
@@ -19,6 +19,7 @@ | |||
19 | #include <linux/nfs_mount.h> | 19 | #include <linux/nfs_mount.h> |
20 | #include <linux/nfs_page.h> | 20 | #include <linux/nfs_page.h> |
21 | #include <linux/backing-dev.h> | 21 | #include <linux/backing-dev.h> |
22 | #include <linux/blkdev.h> | ||
22 | 23 | ||
23 | #include <asm/uaccess.h> | 24 | #include <asm/uaccess.h> |
24 | 25 | ||
@@ -202,8 +203,10 @@ static int nfs_set_page_writeback(struct page *page) | |||
202 | struct nfs_server *nfss = NFS_SERVER(inode); | 203 | struct nfs_server *nfss = NFS_SERVER(inode); |
203 | 204 | ||
204 | if (atomic_long_inc_return(&nfss->writeback) > | 205 | if (atomic_long_inc_return(&nfss->writeback) > |
205 | NFS_CONGESTION_ON_THRESH) | 206 | NFS_CONGESTION_ON_THRESH) { |
206 | set_bdi_congested(&nfss->backing_dev_info, WRITE); | 207 | set_bdi_congested(&nfss->backing_dev_info, |
208 | BLK_RW_ASYNC); | ||
209 | } | ||
207 | } | 210 | } |
208 | return ret; | 211 | return ret; |
209 | } | 212 | } |
@@ -215,7 +218,7 @@ static void nfs_end_page_writeback(struct page *page) | |||
215 | 218 | ||
216 | end_page_writeback(page); | 219 | end_page_writeback(page); |
217 | if (atomic_long_dec_return(&nfss->writeback) < NFS_CONGESTION_OFF_THRESH) | 220 | if (atomic_long_dec_return(&nfss->writeback) < NFS_CONGESTION_OFF_THRESH) |
218 | clear_bdi_congested(&nfss->backing_dev_info, WRITE); | 221 | clear_bdi_congested(&nfss->backing_dev_info, BLK_RW_ASYNC); |
219 | } | 222 | } |
220 | 223 | ||
221 | /* | 224 | /* |