[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:
parent
e7f6552f23
commit
84e945e399
|
@ -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;
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue