diff options
Diffstat (limited to 'net/sunrpc/rpc_pipe.c')
-rw-r--r-- | net/sunrpc/rpc_pipe.c | 6 |
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; |
599 | out_err: | 599 | out_err: |