Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
linux
Commits
3c64b58c
Commit
3c64b58c
authored
Apr 14, 2011
by
Konrad Rzeszutek Wilk
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
xen/blkback: Fix checkpatch warnings in vbd.c
Signed-off-by:
Konrad Rzeszutek Wilk
<
konrad.wilk@oracle.com
>
parent
5489377c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
5 deletions
+6
-5
drivers/xen/blkback/vbd.c
drivers/xen/blkback/vbd.c
+6
-5
No files found.
drivers/xen/blkback/vbd.c
View file @
3c64b58c
...
@@ -30,8 +30,9 @@
...
@@ -30,8 +30,9 @@
#include "common.h"
#include "common.h"
#define vbd_sz(_v) ((_v)->bdev->bd_part ? \
#define vbd_sz(_v) ((_v)->bdev->bd_part ? \
(_v)->bdev->bd_part->nr_sects : get_capacity((_v)->bdev->bd_disk))
(_v)->bdev->bd_part->nr_sects : \
get_capacity((_v)->bdev->bd_disk))
unsigned
long
long
vbd_size
(
struct
vbd
*
vbd
)
unsigned
long
long
vbd_size
(
struct
vbd
*
vbd
)
{
{
...
@@ -40,7 +41,7 @@ unsigned long long vbd_size(struct vbd *vbd)
...
@@ -40,7 +41,7 @@ unsigned long long vbd_size(struct vbd *vbd)
unsigned
int
vbd_info
(
struct
vbd
*
vbd
)
unsigned
int
vbd_info
(
struct
vbd
*
vbd
)
{
{
return
vbd
->
type
|
(
vbd
->
readonly
?
VDISK_READONLY
:
0
);
return
vbd
->
type
|
(
vbd
->
readonly
?
VDISK_READONLY
:
0
);
}
}
unsigned
long
vbd_secsize
(
struct
vbd
*
vbd
)
unsigned
long
vbd_secsize
(
struct
vbd
*
vbd
)
...
@@ -126,7 +127,7 @@ void vbd_resize(struct blkif_st *blkif)
...
@@ -126,7 +127,7 @@ void vbd_resize(struct blkif_st *blkif)
printk
(
KERN_INFO
"VBD Resize: Domid: %d, Device: (%d, %d)
\n
"
,
printk
(
KERN_INFO
"VBD Resize: Domid: %d, Device: (%d, %d)
\n
"
,
blkif
->
domid
,
MAJOR
(
vbd
->
pdevice
),
MINOR
(
vbd
->
pdevice
));
blkif
->
domid
,
MAJOR
(
vbd
->
pdevice
),
MINOR
(
vbd
->
pdevice
));
printk
(
KERN_INFO
"VBD Resize: new size %
L
u
\n
"
,
new_size
);
printk
(
KERN_INFO
"VBD Resize: new size %
ll
u
\n
"
,
new_size
);
vbd
->
size
=
new_size
;
vbd
->
size
=
new_size
;
again:
again:
err
=
xenbus_transaction_start
(
&
xbt
);
err
=
xenbus_transaction_start
(
&
xbt
);
...
@@ -134,7 +135,7 @@ void vbd_resize(struct blkif_st *blkif)
...
@@ -134,7 +135,7 @@ void vbd_resize(struct blkif_st *blkif)
printk
(
KERN_WARNING
"Error starting transaction"
);
printk
(
KERN_WARNING
"Error starting transaction"
);
return
;
return
;
}
}
err
=
xenbus_printf
(
xbt
,
dev
->
nodename
,
"sectors"
,
"%
L
u"
,
err
=
xenbus_printf
(
xbt
,
dev
->
nodename
,
"sectors"
,
"%
ll
u"
,
vbd_size
(
vbd
));
vbd_size
(
vbd
));
if
(
err
)
{
if
(
err
)
{
printk
(
KERN_WARNING
"Error writing new size"
);
printk
(
KERN_WARNING
"Error writing new size"
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment