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
f68110fc
Commit
f68110fc
authored
Mar 08, 2006
by
Jens Axboe
Committed by
Jens Axboe
Mar 27, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[BLOCK] ll_rw_blk: kmalloc -> kzalloc conversion
Signed-off-by:
Jens Axboe
<
axboe@suse.de
>
parent
06ff37ff
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
4 deletions
+2
-4
block/ll_rw_blk.c
block/ll_rw_blk.c
+2
-4
No files found.
block/ll_rw_blk.c
View file @
f68110fc
...
...
@@ -906,17 +906,15 @@ init_tag_map(request_queue_t *q, struct blk_queue_tag *tags, int depth)
__FUNCTION__
,
depth
);
}
tag_index
=
k
m
alloc
(
depth
*
sizeof
(
struct
request
*
),
GFP_ATOMIC
);
tag_index
=
k
z
alloc
(
depth
*
sizeof
(
struct
request
*
),
GFP_ATOMIC
);
if
(
!
tag_index
)
goto
fail
;
nr_ulongs
=
ALIGN
(
depth
,
BITS_PER_LONG
)
/
BITS_PER_LONG
;
tag_map
=
k
m
alloc
(
nr_ulongs
*
sizeof
(
unsigned
long
),
GFP_ATOMIC
);
tag_map
=
k
z
alloc
(
nr_ulongs
*
sizeof
(
unsigned
long
),
GFP_ATOMIC
);
if
(
!
tag_map
)
goto
fail
;
memset
(
tag_index
,
0
,
depth
*
sizeof
(
struct
request
*
));
memset
(
tag_map
,
0
,
nr_ulongs
*
sizeof
(
unsigned
long
));
tags
->
real_max_depth
=
depth
;
tags
->
max_depth
=
depth
;
tags
->
tag_index
=
tag_index
;
...
...
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