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
44ec0b71
Commit
44ec0b71
authored
Oct 29, 2007
by
Chris Mason
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Btrfs: Compile fixes for 2.6.24-rc1
Signed-off-by:
Chris Mason
<
chris.mason@oracle.com
>
parent
134d4512
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
1 deletion
+10
-1
fs/btrfs/inode.c
fs/btrfs/inode.c
+10
-1
No files found.
fs/btrfs/inode.c
View file @
44ec0b71
...
...
@@ -2176,8 +2176,12 @@ void btrfs_destroy_inode(struct inode *inode)
kmem_cache_free
(
btrfs_inode_cachep
,
BTRFS_I
(
inode
));
}
#if LINUX_VERSION_CODE > KERNEL_VERSION(2,6,23)
static
void
init_once
(
struct
kmem_cache
*
cachep
,
void
*
foo
)
#else
static
void
init_once
(
void
*
foo
,
struct
kmem_cache
*
cachep
,
unsigned
long
flags
)
#endif
{
struct
btrfs_inode
*
ei
=
(
struct
btrfs_inode
*
)
foo
;
...
...
@@ -2200,8 +2204,13 @@ void btrfs_destroy_cachep(void)
struct
kmem_cache
*
btrfs_cache_create
(
const
char
*
name
,
size_t
size
,
unsigned
long
extra_flags
,
#if LINUX_VERSION_CODE > KERNEL_VERSION(2,6,23)
void
(
*
ctor
)(
struct
kmem_cache
*
,
void
*
)
#else
void
(
*
ctor
)(
void
*
,
struct
kmem_cache
*
,
unsigned
long
))
unsigned
long
)
#endif
)
{
return
kmem_cache_create
(
name
,
size
,
0
,
(
SLAB_RECLAIM_ACCOUNT
|
SLAB_MEM_SPREAD
|
extra_flags
),
ctor
...
...
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