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
865d794d
Commit
865d794d
authored
Mar 11, 2011
by
Pekka Enberg
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'slab/urgent' into slab/next
parents
c9149556
3ff84a7f
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
mm/slab.c
mm/slab.c
+4
-4
No files found.
mm/slab.c
View file @
865d794d
...
@@ -2289,8 +2289,8 @@ kmem_cache_create (const char *name, size_t size, size_t align,
...
@@ -2289,8 +2289,8 @@ kmem_cache_create (const char *name, size_t size, size_t align,
if
(
ralign
<
align
)
{
if
(
ralign
<
align
)
{
ralign
=
align
;
ralign
=
align
;
}
}
/* disable debug if n
ot aligning with REDZONE_ALIGN
*/
/* disable debug if n
ecessary
*/
if
(
ralign
&
(
__alignof__
(
unsigned
long
long
)
-
1
))
if
(
ralign
>
__alignof__
(
unsigned
long
long
))
flags
&=
~
(
SLAB_RED_ZONE
|
SLAB_STORE_USER
);
flags
&=
~
(
SLAB_RED_ZONE
|
SLAB_STORE_USER
);
/*
/*
* 4) Store it.
* 4) Store it.
...
@@ -2316,8 +2316,8 @@ kmem_cache_create (const char *name, size_t size, size_t align,
...
@@ -2316,8 +2316,8 @@ kmem_cache_create (const char *name, size_t size, size_t align,
*/
*/
if
(
flags
&
SLAB_RED_ZONE
)
{
if
(
flags
&
SLAB_RED_ZONE
)
{
/* add space for red zone words */
/* add space for red zone words */
cachep
->
obj_offset
+=
align
;
cachep
->
obj_offset
+=
sizeof
(
unsigned
long
long
)
;
size
+=
align
+
sizeof
(
unsigned
long
long
);
size
+=
2
*
sizeof
(
unsigned
long
long
);
}
}
if
(
flags
&
SLAB_STORE_USER
)
{
if
(
flags
&
SLAB_STORE_USER
)
{
/* user store requires one word storage behind the end of
/* user store requires one word storage behind the end of
...
...
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