Whamcloud - gitweb
git://git.whamcloud.com
/
fs
/
lustre-release.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Branch Head
[fs/lustre-release.git]
/
lustre
/
llite
/
super25.c
diff --git
a/lustre/llite/super25.c
b/lustre/llite/super25.c
index
376a106
..
ea1564c
100644
(file)
--- a/
lustre/llite/super25.c
+++ b/
lustre/llite/super25.c
@@
-41,7
+41,7
@@
static struct inode *ll_alloc_inode(struct super_block *sb)
{
struct ll_inode_info *lli;
ll_stats_ops_tally(ll_s2sbi(sb), LPROC_LL_ALLOC_INODE, 1);
- OBD_SLAB_ALLOC
(lli, ll_inode_cachep, GFP_KERNEL, sizeof *lli
);
+ OBD_SLAB_ALLOC
_PTR(lli, ll_inode_cachep
);
if (lli == NULL)
return NULL;
@@
-54,7
+54,7
@@
static struct inode *ll_alloc_inode(struct super_block *sb)
static void ll_destroy_inode(struct inode *inode)
{
struct ll_inode_info *ptr = ll_i2info(inode);
- OBD_SLAB_FREE
(ptr, ll_inode_cachep, sizeof(*ptr)
);
+ OBD_SLAB_FREE
_PTR(ptr, ll_inode_cachep
);
}
int ll_init_inodecache(void)