git.samba.org
/
sfrench
/
cifs-2.6.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
fs: allocate inode by using alloc_inode_sb()
[sfrench/cifs-2.6.git]
/
net
/
sunrpc
/
rpc_pipe.c
diff --git
a/net/sunrpc/rpc_pipe.c
b/net/sunrpc/rpc_pipe.c
index 35588f0afa864e961cf8d3323380395903c23184..0b6034fab9ab1b91fd569f5231c33e9f29613e99 100644
(file)
--- a/
net/sunrpc/rpc_pipe.c
+++ b/
net/sunrpc/rpc_pipe.c
@@
-197,7
+197,7
@@
static struct inode *
rpc_alloc_inode(struct super_block *sb)
{
struct rpc_inode *rpci;
- rpci =
kmem_cache_alloc(
rpc_inode_cachep, GFP_KERNEL);
+ rpci =
alloc_inode_sb(sb,
rpc_inode_cachep, GFP_KERNEL);
if (!rpci)
return NULL;
return &rpci->vfs_inode;