summaryrefslogtreecommitdiffstats
path: root/runtime/relayfs/inode.c
diff options
context:
space:
mode:
authorhunt <hunt>2005-04-11 18:33:44 +0000
committerhunt <hunt>2005-04-11 18:33:44 +0000
commit156fc47f2e418fccb026674437855e65dd68476b (patch)
treed9ac796c9b896ba41d872ca354286042f626bdb7 /runtime/relayfs/inode.c
parent655ee2825121e149a9976e562946892efb20aea1 (diff)
downloadsystemtap-steved-156fc47f2e418fccb026674437855e65dd68476b.tar.gz
systemtap-steved-156fc47f2e418fccb026674437855e65dd68476b.tar.xz
systemtap-steved-156fc47f2e418fccb026674437855e65dd68476b.zip
2005-04-11 Martin Hunt <hunt@redhat.com>
* inode.c: Latest kernels have modified backing_dev_info. Detect newer version and set appropriately.
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,