summaryrefslogtreecommitdiff
path: root/include/linux/fs.h
diff options
context:
space:
mode:
authorAndrew Morton <akpm@osdl.org>2004-01-19 05:12:56 -0800
committerLinus Torvalds <torvalds@home.osdl.org>2004-01-19 05:12:56 -0800
commit7766a93b9d7b27c48c70abbd36fdd64cfec30023 (patch)
tree0cf8b2296fe3a4054a61e3130a3d3b1d81ec6ed0 /include/linux/fs.h
parent175770e5aa81a34f36f1986c42b270b2d8efcc0d (diff)
[PATCH] Add bdev private field
From: Christoph Hellwig <hch@lst.de> Currently xfs has a per-bdev (and XFS filesystem uses up to three underlying block devices) object that Al complained about loudly that it should be gone. But for that to happen without rewriting half of XFS (and changing layering in a way that we don't really want) we need an additional fs-private variable in struct block_device.
Diffstat (limited to 'include/linux/fs.h')
-rw-r--r--include/linux/fs.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/linux/fs.h b/include/linux/fs.h
index fd3c87c86d6f..7d9154665d9b 100644
--- a/include/linux/fs.h
+++ b/include/linux/fs.h
@@ -353,6 +353,13 @@ struct block_device {
int bd_invalidated;
struct gendisk * bd_disk;
struct list_head bd_list;
+ /*
+ * Private data. You must have bd_claim'ed the block_device
+ * to use this. NOTE: bd_claim allows an owner to claim
+ * the same device multiple times, the owner must take special
+ * care to not mess up bd_private for that case.
+ */
+ unsigned long bd_private;
};
/*