aboutsummaryrefslogtreecommitdiffstats
path: root/fs/udf/namei.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/udf/namei.c')
-rw-r--r--fs/udf/namei.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/udf/namei.c b/fs/udf/namei.c
index e8d61b114c1b..f1c64c6a4532 100644
--- a/fs/udf/namei.c
+++ b/fs/udf/namei.c
@@ -667,7 +667,7 @@ static int udf_mkdir(struct inode *dir, struct dentry *dentry, int mode)
667 iput(inode); 667 iput(inode);
668 goto out; 668 goto out;
669 } 669 }
670 inode->i_nlink = 2; 670 set_nlink(inode, 2);
671 cfi.icb.extLength = cpu_to_le32(inode->i_sb->s_blocksize); 671 cfi.icb.extLength = cpu_to_le32(inode->i_sb->s_blocksize);
672 cfi.icb.extLocation = cpu_to_lelb(dinfo->i_location); 672 cfi.icb.extLocation = cpu_to_lelb(dinfo->i_location);
673 *(__le32 *)((struct allocDescImpUse *)cfi.icb.impUse)->impUse = 673 *(__le32 *)((struct allocDescImpUse *)cfi.icb.impUse)->impUse =
@@ -837,7 +837,7 @@ static int udf_unlink(struct inode *dir, struct dentry *dentry)
837 if (!inode->i_nlink) { 837 if (!inode->i_nlink) {
838 udf_debug("Deleting nonexistent file (%lu), %d\n", 838 udf_debug("Deleting nonexistent file (%lu), %d\n",
839 inode->i_ino, inode->i_nlink); 839 inode->i_ino, inode->i_nlink);
840 inode->i_nlink = 1; 840 set_nlink(inode, 1);
841 } 841 }
842 retval = udf_delete_entry(dir, fi, &fibh, &cfi); 842 retval = udf_delete_entry(dir, fi, &fibh, &cfi);
843 if (retval) 843 if (retval)