diff options
Diffstat (limited to 'fs/udf/namei.c')
-rw-r--r-- | fs/udf/namei.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/fs/udf/namei.c b/fs/udf/namei.c index cd2115060fdc..9e85540e9e01 100644 --- a/fs/udf/namei.c +++ b/fs/udf/namei.c | |||
@@ -1108,7 +1108,9 @@ static int udf_link(struct dentry *old_dentry, struct inode *dir, | |||
1108 | inc_nlink(inode); | 1108 | inc_nlink(inode); |
1109 | inode->i_ctime = current_fs_time(inode->i_sb); | 1109 | inode->i_ctime = current_fs_time(inode->i_sb); |
1110 | mark_inode_dirty(inode); | 1110 | mark_inode_dirty(inode); |
1111 | atomic_inc(&inode->i_count); | 1111 | spin_lock(&inode->i_lock); |
1112 | inode->i_count++; | ||
1113 | spin_unlock(&inode->i_lock); | ||
1112 | d_instantiate(dentry, inode); | 1114 | d_instantiate(dentry, inode); |
1113 | unlock_kernel(); | 1115 | unlock_kernel(); |
1114 | 1116 | ||