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
Kirill Smelkov
linux
Commits
0e696d38
Commit
0e696d38
authored
Jan 04, 2018
by
Mike Snitzer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dm bufio: eliminate unnecessary labels in dm_bufio_client_create()
Signed-off-by:
Mike Snitzer
<
snitzer@redhat.com
>
parent
46898e9a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
7 deletions
+5
-7
drivers/md/dm-bufio.c
drivers/md/dm-bufio.c
+5
-7
No files found.
drivers/md/dm-bufio.c
View file @
0e696d38
...
...
@@ -1716,7 +1716,7 @@ struct dm_bufio_client *dm_bufio_client_create(struct block_device *bdev, unsign
if
(
!
DM_BUFIO_CACHE_NAME
(
c
))
{
r
=
-
ENOMEM
;
mutex_unlock
(
&
dm_bufio_clients_lock
);
goto
bad
_cache
;
goto
bad
;
}
}
...
...
@@ -1727,7 +1727,7 @@ struct dm_bufio_client *dm_bufio_client_create(struct block_device *bdev, unsign
if
(
!
DM_BUFIO_CACHE
(
c
))
{
r
=
-
ENOMEM
;
mutex_unlock
(
&
dm_bufio_clients_lock
);
goto
bad
_cache
;
goto
bad
;
}
}
}
...
...
@@ -1738,7 +1738,7 @@ struct dm_bufio_client *dm_bufio_client_create(struct block_device *bdev, unsign
if
(
!
b
)
{
r
=
-
ENOMEM
;
goto
bad
_buffer
;
goto
bad
;
}
__free_buffer_wake
(
b
);
}
...
...
@@ -1749,7 +1749,7 @@ struct dm_bufio_client *dm_bufio_client_create(struct block_device *bdev, unsign
c
->
shrinker
.
batch
=
0
;
r
=
register_shrinker
(
&
c
->
shrinker
);
if
(
r
)
goto
bad
_shrinker
;
goto
bad
;
mutex_lock
(
&
dm_bufio_clients_lock
);
dm_bufio_client_count
++
;
...
...
@@ -1759,9 +1759,7 @@ struct dm_bufio_client *dm_bufio_client_create(struct block_device *bdev, unsign
return
c
;
bad_shrinker:
bad_buffer:
bad_cache:
bad:
while
(
!
list_empty
(
&
c
->
reserved_buffers
))
{
struct
dm_buffer
*
b
=
list_entry
(
c
->
reserved_buffers
.
next
,
struct
dm_buffer
,
lru_list
);
...
...
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