[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:
Родитель
e7f6552f23
Коммит
84e945e399
|
@ -174,8 +174,8 @@ struct ubd {
|
|||
__u64 size;
|
||||
struct openflags boot_openflags;
|
||||
struct openflags openflags;
|
||||
int shared;
|
||||
int no_cow;
|
||||
unsigned shared:1;
|
||||
unsigned no_cow:1;
|
||||
struct cow cow;
|
||||
struct platform_device pdev;
|
||||
};
|
||||
|
|
Загрузка…
Ссылка в новой задаче