summaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorAlexander Viro <viro@math.psu.edu>2002-10-28 02:50:34 -0800
committerJames Bottomley <jejb@mulgrave.(none)>2002-10-28 02:50:34 -0800
commit4d466c1fcdceecf5f0e13894fd4805db768122c8 (patch)
treec83d7dfd80ff347b78c62e1be9ff8c12a255476f /include/linux
parent1bec5152a23e778ddafe587bdf9736a69346e633 (diff)
[PATCH] r/o state moved to gendisks
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/blk.h3
-rw-r--r--include/linux/genhd.h3
2 files changed, 4 insertions, 2 deletions
diff --git a/include/linux/blk.h b/include/linux/blk.h
index 49621bca45e1..a09126ffdacc 100644
--- a/include/linux/blk.h
+++ b/include/linux/blk.h
@@ -7,7 +7,8 @@
#include <linux/spinlock.h>
#include <linux/compiler.h>
-extern void set_device_ro(kdev_t dev,int flag);
+extern void set_device_ro(struct block_device *bdev, int flag);
+extern void set_disk_ro(struct gendisk *disk, int flag);
extern void add_disk_randomness(struct gendisk *disk);
extern void rand_initialize_disk(struct gendisk *disk);
diff --git a/include/linux/genhd.h b/include/linux/genhd.h
index 06ecbd84499a..2b0ab92e65db 100644
--- a/include/linux/genhd.h
+++ b/include/linux/genhd.h
@@ -63,6 +63,7 @@ struct hd_struct {
sector_t nr_sects;
devfs_handle_t de; /* primary (master) devfs entry */
struct device *hd_driverfs_dev; /* support driverfs hiearchy */
+ int policy;
};
#define GENHD_FL_REMOVABLE 1
@@ -94,7 +95,7 @@ struct gendisk {
struct device disk_dev;
struct timer_rand_state *random;
-
+ int policy;
unsigned sync_io; /* RAID */
unsigned reads, writes;