diff options
Diffstat (limited to 'fs/jfs/namei.c')
-rw-r--r-- | fs/jfs/namei.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/fs/jfs/namei.c b/fs/jfs/namei.c index 088b85976ac0..8cef88170aa4 100644 --- a/fs/jfs/namei.c +++ b/fs/jfs/namei.c | |||
@@ -292,7 +292,7 @@ static int jfs_mkdir(struct inode *dip, struct dentry *dentry, int mode) | |||
292 | mark_inode_dirty(ip); | 292 | mark_inode_dirty(ip); |
293 | 293 | ||
294 | /* update parent directory inode */ | 294 | /* update parent directory inode */ |
295 | dip->i_nlink++; /* for '..' from child directory */ | 295 | inc_nlink(dip); /* for '..' from child directory */ |
296 | dip->i_ctime = dip->i_mtime = CURRENT_TIME; | 296 | dip->i_ctime = dip->i_mtime = CURRENT_TIME; |
297 | mark_inode_dirty(dip); | 297 | mark_inode_dirty(dip); |
298 | 298 | ||
@@ -822,7 +822,7 @@ static int jfs_link(struct dentry *old_dentry, | |||
822 | goto free_dname; | 822 | goto free_dname; |
823 | 823 | ||
824 | /* update object inode */ | 824 | /* update object inode */ |
825 | ip->i_nlink++; /* for new link */ | 825 | inc_nlink(ip); /* for new link */ |
826 | ip->i_ctime = CURRENT_TIME; | 826 | ip->i_ctime = CURRENT_TIME; |
827 | dir->i_ctime = dir->i_mtime = CURRENT_TIME; | 827 | dir->i_ctime = dir->i_mtime = CURRENT_TIME; |
828 | mark_inode_dirty(dir); | 828 | mark_inode_dirty(dir); |
@@ -1206,7 +1206,7 @@ static int jfs_rename(struct inode *old_dir, struct dentry *old_dentry, | |||
1206 | goto out4; | 1206 | goto out4; |
1207 | } | 1207 | } |
1208 | if (S_ISDIR(old_ip->i_mode)) | 1208 | if (S_ISDIR(old_ip->i_mode)) |
1209 | new_dir->i_nlink++; | 1209 | inc_nlink(new_dir); |
1210 | } | 1210 | } |
1211 | /* | 1211 | /* |
1212 | * Remove old directory entry | 1212 | * Remove old directory entry |