summaryrefslogtreecommitdiffstats
path: root/kernel/mm/fadvise.c
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/mm/fadvise.c')
-rw-r--r--kernel/mm/fadvise.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/mm/fadvise.c b/kernel/mm/fadvise.c
index 4a3907cf7..b8a5bc66b 100644
--- a/kernel/mm/fadvise.c
+++ b/kernel/mm/fadvise.c
@@ -115,7 +115,7 @@ SYSCALL_DEFINE4(fadvise64_64, int, fd, loff_t, offset, loff_t, len, int, advice)
case POSIX_FADV_NOREUSE:
break;
case POSIX_FADV_DONTNEED:
- if (!bdi_write_congested(bdi))
+ if (!inode_write_congested(mapping->host))
__filemap_fdatawrite_range(mapping, offset, endbyte,
WB_SYNC_NONE);