projects
/
powerpc.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
[PATCH] r/o bind mount prepwork: inc_nlink() helper
[powerpc.git]
/
drivers
/
infiniband
/
hw
/
ipath
/
ipath_fs.c
diff --git
a/drivers/infiniband/hw/ipath/ipath_fs.c
b/drivers/infiniband/hw/ipath/ipath_fs.c
index
a507d0b
..
d9ff283
100644
(file)
--- a/
drivers/infiniband/hw/ipath/ipath_fs.c
+++ b/
drivers/infiniband/hw/ipath/ipath_fs.c
@@
-66,8
+66,8
@@
static int ipathfs_mknod(struct inode *dir, struct dentry *dentry,
inode->i_private = data;
if ((mode & S_IFMT) == S_IFDIR) {
inode->i_op = &simple_dir_inode_operations;
- in
ode->i_nlink++
;
-
dir->i_nlink++
;
+ in
c_nlink(inode)
;
+
inc_nlink(dir)
;
}
inode->i_fop = fops;