[PATCH] uml ubd driver: use bitfields where possible

Use bitfields for boolean fields in ubd data structure.

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>
This commit is contained in:
Paolo 'Blaisorblade' Giarrusso 2006-10-30 22:07:10 -08:00 committed by Linus Torvalds
parent e7f6552f23
commit 84e945e399
1 changed files with 2 additions and 2 deletions

View File

@ -174,8 +174,8 @@ struct ubd {
__u64 size; __u64 size;
struct openflags boot_openflags; struct openflags boot_openflags;
struct openflags openflags; struct openflags openflags;
int shared; unsigned shared:1;
int no_cow; unsigned no_cow:1;
struct cow cow; struct cow cow;
struct platform_device pdev; struct platform_device pdev;
}; };