summaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorAlexander Viro <viro@math.psu.edu>2002-10-18 05:25:04 -0700
committerLinus Torvalds <torvalds@home.transmeta.com>2002-10-18 05:25:04 -0700
commit646fdb023dc2cfb6a9cb2b1545beed359074d37b (patch)
treeb5b22efface16873aae1496bc2cc5814cde38637 /include/linux
parent45552206cf0901b901b49a0f27b318f63850d5c4 (diff)
[PATCH] nbd converted to private queue
* switched to private queues * set ->queue and ->private_data * switched to use of ->bd_disk/->rq_disk * merged private blocksize, etc. arrays into nbd_dev[] * cleaned up
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/nbd.h9
1 files changed, 6 insertions, 3 deletions
diff --git a/include/linux/nbd.h b/include/linux/nbd.h
index b20c045dbb79..49e702e51f98 100644
--- a/include/linux/nbd.h
+++ b/include/linux/nbd.h
@@ -74,12 +74,15 @@ struct nbd_device {
#define NBD_READ_ONLY 0x0001
#define NBD_WRITE_NOCHK 0x0002
struct socket * sock;
- struct file * file; /* If == NULL, device is not ready, yet */
- int magic; /* FIXME: not if debugging is off */
+ struct file * file; /* If == NULL, device is not ready, yet */
+ int magic; /* FIXME: not if debugging is off */
spinlock_t queue_lock;
- struct list_head queue_head; /* Requests are added here... */
+ struct list_head queue_head;/* Requests are added here... */
struct semaphore tx_lock;
struct gendisk *disk;
+ int blksize;
+ int blksize_bits;
+ u64 bytesize;
};
#endif