Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
linux-davinci
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
linux
linux-davinci
Commits
94562c17
Commit
94562c17
authored
Mar 02, 2008
by
Al Viro
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] switch aoeblk
Signed-off-by:
Al Viro
<
viro@zeniv.linux.org.uk
>
parent
47225db5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
10 deletions
+6
-10
drivers/block/aoe/aoeblk.c
drivers/block/aoe/aoeblk.c
+6
-10
No files found.
drivers/block/aoe/aoeblk.c
View file @
94562c17
...
...
@@ -118,13 +118,11 @@ aoedisk_rm_sysfs(struct aoedev *d)
}
static
int
aoeblk_open
(
struct
inode
*
inode
,
struct
file
*
filp
)
aoeblk_open
(
struct
block_device
*
bdev
,
fmode_t
mode
)
{
struct
aoedev
*
d
;
struct
aoedev
*
d
=
bdev
->
bd_disk
->
private_data
;
ulong
flags
;
d
=
inode
->
i_bdev
->
bd_disk
->
private_data
;
spin_lock_irqsave
(
&
d
->
lock
,
flags
);
if
(
d
->
flags
&
DEVFL_UP
)
{
d
->
nopen
++
;
...
...
@@ -136,13 +134,11 @@ aoeblk_open(struct inode *inode, struct file *filp)
}
static
int
aoeblk_release
(
struct
inode
*
inode
,
struct
file
*
filp
)
aoeblk_release
(
struct
gendisk
*
disk
,
fmode_t
mode
)
{
struct
aoedev
*
d
;
struct
aoedev
*
d
=
disk
->
private_data
;
ulong
flags
;
d
=
inode
->
i_bdev
->
bd_disk
->
private_data
;
spin_lock_irqsave
(
&
d
->
lock
,
flags
);
if
(
--
d
->
nopen
==
0
)
{
...
...
@@ -239,8 +235,8 @@ aoeblk_getgeo(struct block_device *bdev, struct hd_geometry *geo)
}
static
struct
block_device_operations
aoe_bdops
=
{
.
__
open
=
aoeblk_open
,
.
__
release
=
aoeblk_release
,
.
open
=
aoeblk_open
,
.
release
=
aoeblk_release
,
.
getgeo
=
aoeblk_getgeo
,
.
owner
=
THIS_MODULE
,
};
...
...
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