提交 84e945e3 编写于 作者: P Paolo 'Blaisorblade' Giarrusso 提交者: Linus Torvalds

[PATCH] uml ubd driver: use bitfields where possible

Use bitfields for boolean fields in ubd data structure.
Signed-off-by: NPaolo 'Blaisorblade' Giarrusso <blaisorblade@yahoo.it>
Cc: Jeff Dike <jdike@addtoit.com>
Signed-off-by: NAndrew Morton <akpm@osdl.org>
Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
上级 e7f6552f
......@@ -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;
};
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册