Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 2a9d32f6 authored by Paolo 'Blaisorblade' Giarrusso's avatar Paolo 'Blaisorblade' Giarrusso Committed by Linus Torvalds
Browse files

[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: default avatarPaolo 'Blaisorblade' Giarrusso <blaisorblade@yahoo.it>
Cc: Jeff Dike <jdike@addtoit.com>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent 97d88ac8
Loading
Loading
Loading
Loading
+4 −1
Original line number Original line Diff line number Diff line
@@ -150,8 +150,9 @@ static struct gendisk *fake_gendisk[MAX_DEV];
static struct openflags global_openflags = OPEN_FLAGS;
static struct openflags global_openflags = OPEN_FLAGS;


struct cow {
struct cow {
	/* This is the backing file, actually */
	/* backing file name */
	char *file;
	char *file;
	/* backing file fd */
	int fd;
	int fd;
	unsigned long *bitmap;
	unsigned long *bitmap;
	unsigned long bitmap_len;
	unsigned long bitmap_len;
@@ -160,6 +161,8 @@ struct cow {
};
};


struct ubd {
struct ubd {
	/* name (and fd, below) of the file opened for writing, either the
	 * backing or the cow file. */
	char *file;
	char *file;
	int count;
	int count;
	int fd;
	int fd;