]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/blobdiff - fs/ext4/namei.c
filesystems: add missing nlink wrappers
[mirror_ubuntu-zesty-kernel.git] / fs / ext4 / namei.c
index 1c924faeb6c8ed90441051f4b368b4856928d24a..4623c082f3b20bac5547526c15f2e415f0b8710f 100644 (file)
@@ -2539,7 +2539,7 @@ static int ext4_rename(struct inode *old_dir, struct dentry *old_dentry,
                if (new_inode) {
                        /* checked empty_dir above, can't have another parent,
                         * ext4_dec_count() won't work for many-linked dirs */
-                       new_inode->i_nlink = 0;
+                       clear_nlink(new_inode);
                } else {
                        ext4_inc_count(handle, new_dir);
                        ext4_update_dx_flag(new_dir);