diff options
author | Paolo 'Blaisorblade' Giarrusso <blaisorblade@yahoo.it> | 2006-10-31 01:07:04 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-10-31 11:06:59 -0500 |
commit | 2a9d32f682b2b4928dcd4680bc99e98a3d096816 (patch) | |
tree | e9f15ccbb96a77734a6d14ba4d920b8647430abe /arch/um/drivers/ubd_kern.c | |
parent | 97d88ac83540f9ba9536326c30db4815c5b9169b (diff) |
[PATCH] uml ubd driver: document some struct fields
Add documentation about some fields in struct ubd, whose meaning is
non-obvious due to struct names (should change names altogether, I agree).
Signed-off-by: Paolo 'Blaisorblade' Giarrusso <blaisorblade@yahoo.it>
Cc: Jeff Dike <jdike@addtoit.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'arch/um/drivers/ubd_kern.c')
-rw-r--r-- | arch/um/drivers/ubd_kern.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/arch/um/drivers/ubd_kern.c b/arch/um/drivers/ubd_kern.c index 54d24738280e..e104f59ec519 100644 --- a/arch/um/drivers/ubd_kern.c +++ b/arch/um/drivers/ubd_kern.c | |||
@@ -150,8 +150,9 @@ static struct gendisk *fake_gendisk[MAX_DEV]; | |||
150 | static struct openflags global_openflags = OPEN_FLAGS; | 150 | static struct openflags global_openflags = OPEN_FLAGS; |
151 | 151 | ||
152 | struct cow { | 152 | struct cow { |
153 | /* This is the backing file, actually */ | 153 | /* backing file name */ |
154 | char *file; | 154 | char *file; |
155 | /* backing file fd */ | ||
155 | int fd; | 156 | int fd; |
156 | unsigned long *bitmap; | 157 | unsigned long *bitmap; |
157 | unsigned long bitmap_len; | 158 | unsigned long bitmap_len; |
@@ -160,6 +161,8 @@ struct cow { | |||
160 | }; | 161 | }; |
161 | 162 | ||
162 | struct ubd { | 163 | struct ubd { |
164 | /* name (and fd, below) of the file opened for writing, either the | ||
165 | * backing or the cow file. */ | ||
163 | char *file; | 166 | char *file; |
164 | int count; | 167 | int count; |
165 | int fd; | 168 | int fd; |