summaryrefslogtreecommitdiffstats
path: root/runtime/relayfs/inode.c
diff options
context:
space:
mode:
Diffstat (limited to 'runtime/relayfs/inode.c')
-rw-r--r--runtime/relayfs/inode.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/runtime/relayfs/inode.c b/runtime/relayfs/inode.c
index da32b7d2..2a52a65c 100644
--- a/runtime/relayfs/inode.c
+++ b/runtime/relayfs/inode.c
@@ -30,7 +30,11 @@ static kmem_cache_t * relayfs_inode_cachep;
static struct backing_dev_info relayfs_backing_dev_info = {
.ra_pages = 0, /* No readahead */
+#ifdef BDI_CAP_NO_ACCT_DIRTY
+ .capabilities = BDI_CAP_NO_ACCT_DIRTY | BDI_CAP_NO_WRITEBACK,
+#else
.memory_backed = 1, /* Does not contribute to dirty memory */
+#endif
};
static struct inode *relayfs_get_inode(struct super_block *sb, int mode,