aboutsummaryrefslogtreecommitdiffstats
path: root/fs/fat/file.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/fat/file.c')
-rw-r--r--fs/fat/file.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/fat/file.c b/fs/fat/file.c
index 1e98d333879f..54646829e08e 100644
--- a/fs/fat/file.c
+++ b/fs/fat/file.c
@@ -309,7 +309,7 @@ void fat_truncate_blocks(struct inode *inode, loff_t offset)
309 309
310int fat_getattr(struct vfsmount *mnt, struct dentry *dentry, struct kstat *stat) 310int fat_getattr(struct vfsmount *mnt, struct dentry *dentry, struct kstat *stat)
311{ 311{
312 struct inode *inode = dentry->d_inode; 312 struct inode *inode = d_inode(dentry);
313 generic_fillattr(inode, stat); 313 generic_fillattr(inode, stat);
314 stat->blksize = MSDOS_SB(inode->i_sb)->cluster_size; 314 stat->blksize = MSDOS_SB(inode->i_sb)->cluster_size;
315 315
@@ -381,7 +381,7 @@ static int fat_allow_set_time(struct msdos_sb_info *sbi, struct inode *inode)
381int fat_setattr(struct dentry *dentry, struct iattr *attr) 381int fat_setattr(struct dentry *dentry, struct iattr *attr)
382{ 382{
383 struct msdos_sb_info *sbi = MSDOS_SB(dentry->d_sb); 383 struct msdos_sb_info *sbi = MSDOS_SB(dentry->d_sb);
384 struct inode *inode = dentry->d_inode; 384 struct inode *inode = d_inode(dentry);
385 unsigned int ia_valid; 385 unsigned int ia_valid;
386 int error; 386 int error;
387 387