aboutsummaryrefslogtreecommitdiffstats
path: root/fs/fat/namei_vfat.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/fat/namei_vfat.c')
-rw-r--r--fs/fat/namei_vfat.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/fs/fat/namei_vfat.c b/fs/fat/namei_vfat.c
index 4fc06278db48..3be5ed7d859f 100644
--- a/fs/fat/namei_vfat.c
+++ b/fs/fat/namei_vfat.c
@@ -766,11 +766,11 @@ static struct dentry *vfat_lookup(struct inode *dir, struct dentry *dentry,
766 766
767out: 767out:
768 unlock_super(sb); 768 unlock_super(sb);
769 dentry->d_op = sb->s_root->d_op; 769 d_set_d_op(dentry, sb->s_root->d_op);
770 dentry->d_time = dentry->d_parent->d_inode->i_version; 770 dentry->d_time = dentry->d_parent->d_inode->i_version;
771 dentry = d_splice_alias(inode, dentry); 771 dentry = d_splice_alias(inode, dentry);
772 if (dentry) { 772 if (dentry) {
773 dentry->d_op = sb->s_root->d_op; 773 d_set_d_op(dentry, sb->s_root->d_op);
774 dentry->d_time = dentry->d_parent->d_inode->i_version; 774 dentry->d_time = dentry->d_parent->d_inode->i_version;
775 } 775 }
776 return dentry; 776 return dentry;
@@ -1072,9 +1072,9 @@ static int vfat_fill_super(struct super_block *sb, void *data, int silent)
1072 } 1072 }
1073 1073
1074 if (MSDOS_SB(sb)->options.name_check != 's') 1074 if (MSDOS_SB(sb)->options.name_check != 's')
1075 sb->s_root->d_op = &vfat_ci_dentry_ops; 1075 d_set_d_op(sb->s_root, &vfat_ci_dentry_ops);
1076 else 1076 else
1077 sb->s_root->d_op = &vfat_dentry_ops; 1077 d_set_d_op(sb->s_root, &vfat_dentry_ops);
1078 1078
1079 unlock_super(sb); 1079 unlock_super(sb);
1080 return 0; 1080 return 0;