]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/blobdiff - fs/hpfs/namei.c
[PATCH] r/o bind mount prepwork: inc_nlink() helper
[mirror_ubuntu-zesty-kernel.git] / fs / hpfs / namei.c
index 4078b0becc5e71f87a78c98f28e0c9cc8e70b03a..25dd6f81eca7d3131a721577acd37a0a1b305a5c 100644 (file)
@@ -89,7 +89,7 @@ static int hpfs_mkdir(struct inode *dir, struct dentry *dentry, int mode)
        brelse(bh);
        hpfs_mark_4buffers_dirty(&qbh0);
        hpfs_brelse4(&qbh0);
-       dir->i_nlink++;
+       inc_nlink(dir);
        insert_inode_hash(result);
 
        if (result->i_uid != current->fsuid ||
@@ -635,7 +635,7 @@ static int hpfs_rename(struct inode *old_dir, struct dentry *old_dentry,
        end:
        hpfs_i(i)->i_parent_dir = new_dir->i_ino;
        if (S_ISDIR(i->i_mode)) {
-               new_dir->i_nlink++;
+               inc_nlink(new_dir);
                drop_nlink(old_dir);
        }
        if ((fnode = hpfs_map_fnode(i->i_sb, i->i_ino, &bh))) {