summaryrefslogtreecommitdiff
path: root/include/linux/backing-dev.h
diff options
context:
space:
mode:
authorKai Germaschewski <kai@tp1.ruhr-uni-bochum.de>2002-11-23 00:51:36 -0600
committerKai Germaschewski <kai@tp1.ruhr-uni-bochum.de>2002-11-23 00:51:36 -0600
commita0ba1862e1d82f696919e8852e47f00498e2c903 (patch)
tree16b136537bc29e46db0edbcb1a38d2049d5391b4 /include/linux/backing-dev.h
parent9a10f221ec3c60fddf05878238e72eb66c5d56eb (diff)
parentcebce9d8beb7493d5c82035db854a475f6a1ae66 (diff)
Merge tp1.ruhr-uni-bochum.de:/home/kai/src/kernel/v2.5/linux-2.5
into tp1.ruhr-uni-bochum.de:/home/kai/src/kernel/v2.5/linux-2.5.isdn
Diffstat (limited to 'include/linux/backing-dev.h')
-rw-r--r--include/linux/backing-dev.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/include/linux/backing-dev.h b/include/linux/backing-dev.h
index 94c93c9c5f66..55218964e7ef 100644
--- a/include/linux/backing-dev.h
+++ b/include/linux/backing-dev.h
@@ -17,6 +17,8 @@ enum bdi_state {
BDI_pdflush, /* A pdflush thread is working this device */
BDI_write_congested, /* The write queue is getting full */
BDI_read_congested, /* The read queue is getting full */
+ BDI_write_active, /* There are one or more queued writes */
+ BDI_read_active, /* There are one or more queued reads */
BDI_unused, /* Available bits start here */
};
@@ -42,4 +44,14 @@ static inline int bdi_write_congested(struct backing_dev_info *bdi)
return test_bit(BDI_write_congested, &bdi->state);
}
+static inline int bdi_read_active(struct backing_dev_info *bdi)
+{
+ return test_bit(BDI_read_active, &bdi->state);
+}
+
+static inline int bdi_write_active(struct backing_dev_info *bdi)
+{
+ return test_bit(BDI_write_active, &bdi->state);
+}
+
#endif /* _LINUX_BACKING_DEV_H */