diff options
Diffstat (limited to 'fs/ocfs2/namei.c')
-rw-r--r-- | fs/ocfs2/namei.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/fs/ocfs2/namei.c b/fs/ocfs2/namei.c index 40f83f53053..8c370a39e0c 100644 --- a/fs/ocfs2/namei.c +++ b/fs/ocfs2/namei.c | |||
@@ -429,7 +429,7 @@ static int ocfs2_mknod(struct inode *dir, | |||
429 | mlog_errno(status); | 429 | mlog_errno(status); |
430 | goto leave; | 430 | goto leave; |
431 | } | 431 | } |
432 | dir->i_nlink++; | 432 | inc_nlink(dir); |
433 | } | 433 | } |
434 | 434 | ||
435 | status = ocfs2_add_entry(handle, dentry, inode, | 435 | status = ocfs2_add_entry(handle, dentry, inode, |
@@ -730,7 +730,7 @@ static int ocfs2_link(struct dentry *old_dentry, | |||
730 | goto bail; | 730 | goto bail; |
731 | } | 731 | } |
732 | 732 | ||
733 | inode->i_nlink++; | 733 | inc_nlink(inode); |
734 | inode->i_ctime = CURRENT_TIME; | 734 | inode->i_ctime = CURRENT_TIME; |
735 | fe->i_links_count = cpu_to_le16(inode->i_nlink); | 735 | fe->i_links_count = cpu_to_le16(inode->i_nlink); |
736 | fe->i_ctime = cpu_to_le64(inode->i_ctime.tv_sec); | 736 | fe->i_ctime = cpu_to_le64(inode->i_ctime.tv_sec); |
@@ -952,7 +952,7 @@ static int ocfs2_unlink(struct inode *dir, | |||
952 | parent_node_bh); | 952 | parent_node_bh); |
953 | if (status < 0) { | 953 | if (status < 0) { |
954 | mlog_errno(status); | 954 | mlog_errno(status); |
955 | dir->i_nlink++; | 955 | inc_nlink(dir); |
956 | } | 956 | } |
957 | } | 957 | } |
958 | 958 | ||
@@ -1382,7 +1382,7 @@ static int ocfs2_rename(struct inode *old_dir, | |||
1382 | if (new_inode) { | 1382 | if (new_inode) { |
1383 | new_inode->i_nlink--; | 1383 | new_inode->i_nlink--; |
1384 | } else { | 1384 | } else { |
1385 | new_dir->i_nlink++; | 1385 | inc_nlink(new_dir); |
1386 | mark_inode_dirty(new_dir); | 1386 | mark_inode_dirty(new_dir); |
1387 | } | 1387 | } |
1388 | } | 1388 | } |