diff options
Diffstat (limited to 'fs/ext3')
-rw-r--r-- | fs/ext3/namei.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/fs/ext3/namei.c b/fs/ext3/namei.c index 14c55adfae83..b45c88bd5f73 100644 --- a/fs/ext3/namei.c +++ b/fs/ext3/namei.c | |||
@@ -1616,7 +1616,7 @@ static int ext3_delete_entry (handle_t *handle, | |||
1616 | */ | 1616 | */ |
1617 | static inline void ext3_inc_count(handle_t *handle, struct inode *inode) | 1617 | static inline void ext3_inc_count(handle_t *handle, struct inode *inode) |
1618 | { | 1618 | { |
1619 | inode->i_nlink++; | 1619 | inc_nlink(inode); |
1620 | } | 1620 | } |
1621 | 1621 | ||
1622 | static inline void ext3_dec_count(handle_t *handle, struct inode *inode) | 1622 | static inline void ext3_dec_count(handle_t *handle, struct inode *inode) |
@@ -1775,7 +1775,7 @@ retry: | |||
1775 | iput (inode); | 1775 | iput (inode); |
1776 | goto out_stop; | 1776 | goto out_stop; |
1777 | } | 1777 | } |
1778 | dir->i_nlink++; | 1778 | inc_nlink(dir); |
1779 | ext3_update_dx_flag(dir); | 1779 | ext3_update_dx_flag(dir); |
1780 | ext3_mark_inode_dirty(handle, dir); | 1780 | ext3_mark_inode_dirty(handle, dir); |
1781 | d_instantiate(dentry, inode); | 1781 | d_instantiate(dentry, inode); |
@@ -2341,7 +2341,7 @@ static int ext3_rename (struct inode * old_dir, struct dentry *old_dentry, | |||
2341 | if (new_inode) { | 2341 | if (new_inode) { |
2342 | drop_nlink(new_inode); | 2342 | drop_nlink(new_inode); |
2343 | } else { | 2343 | } else { |
2344 | new_dir->i_nlink++; | 2344 | inc_nlink(new_dir); |
2345 | ext3_update_dx_flag(new_dir); | 2345 | ext3_update_dx_flag(new_dir); |
2346 | ext3_mark_inode_dirty(handle, new_dir); | 2346 | ext3_mark_inode_dirty(handle, new_dir); |
2347 | } | 2347 | } |