aboutsummaryrefslogtreecommitdiffstats
path: root/net/sunrpc
diff options
context:
space:
mode:
authorDave Hansen <haveblue@us.ibm.com>2006-10-01 02:29:04 -0400
committerLinus Torvalds <torvalds@g5.osdl.org>2006-10-01 03:39:30 -0400
commitd8c76e6f45c111c32a4b3e50a2adc9210737b0d8 (patch)
tree25521b59d48c6d8c9aec1af54dbe5008ad4b215b /net/sunrpc
parent9a53c3a783c2fa9b969628e65695c11c3e51e673 (diff)
[PATCH] r/o bind mount prepwork: inc_nlink() helper
This is mostly included for parity with dec_nlink(), where we will have some more hooks. This one should stay pretty darn straightforward for now. Signed-off-by: Dave Hansen <haveblue@us.ibm.com> Acked-by: Christoph Hellwig <hch@lst.de> Cc: Al Viro <viro@zeniv.linux.org.uk> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'net/sunrpc')
-rw-r--r--net/sunrpc/rpc_pipe.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/net/sunrpc/rpc_pipe.c b/net/sunrpc/rpc_pipe.c
index 700c6e061a04..9a0b41a97f90 100644
--- a/net/sunrpc/rpc_pipe.c
+++ b/net/sunrpc/rpc_pipe.c
@@ -494,7 +494,7 @@ rpc_get_inode(struct super_block *sb, int mode)
494 case S_IFDIR: 494 case S_IFDIR:
495 inode->i_fop = &simple_dir_operations; 495 inode->i_fop = &simple_dir_operations;
496 inode->i_op = &simple_dir_inode_operations; 496 inode->i_op = &simple_dir_inode_operations;
497 inode->i_nlink++; 497 inc_nlink(inode);
498 default: 498 default:
499 break; 499 break;
500 } 500 }
@@ -571,7 +571,7 @@ rpc_populate(struct dentry *parent,
571 if (private) 571 if (private)
572 rpc_inode_setowner(inode, private); 572 rpc_inode_setowner(inode, private);
573 if (S_ISDIR(mode)) 573 if (S_ISDIR(mode))
574 dir->i_nlink++; 574 inc_nlink(dir);
575 d_add(dentry, inode); 575 d_add(dentry, inode);
576 } 576 }
577 mutex_unlock(&dir->i_mutex); 577 mutex_unlock(&dir->i_mutex);
@@ -593,7 +593,7 @@ __rpc_mkdir(struct inode *dir, struct dentry *dentry)
593 goto out_err; 593 goto out_err;
594 inode->i_ino = iunique(dir->i_sb, 100); 594 inode->i_ino = iunique(dir->i_sb, 100);
595 d_instantiate(dentry, inode); 595 d_instantiate(dentry, inode);
596 dir->i_nlink++; 596 inc_nlink(dir);
597 inode_dir_notify(dir, DN_CREATE); 597 inode_dir_notify(dir, DN_CREATE);
598 return 0; 598 return 0;
599out_err: 599out_err: