X-Git-Url: http://git.rot13.org/?a=blobdiff_plain;f=fs%2Ffat%2Ffile.c;h=c1237b70c1fee7c11f06182f67d20b5a9f6a700f;hb=f1c2b1daf040d2feebfbbd4a0cd80cde856fc031;hp=8337451e7897abc70d00752795fade9816aee985;hpb=6d03a68e6d5528630955452ec4b768dbde0dc00c;p=powerpc.git diff --git a/fs/fat/file.c b/fs/fat/file.c index 8337451e78..c1237b70c1 100644 --- a/fs/fat/file.c +++ b/fs/fat/file.c @@ -92,7 +92,7 @@ int fat_generic_ioctl(struct inode *inode, struct file *filp, } /* This MUST be done before doing anything irreversible... */ - err = notify_change(filp->f_dentry, &ia); + err = notify_change(filp->f_path.dentry, &ia); if (err) goto up; @@ -303,7 +303,17 @@ void fat_truncate(struct inode *inode) fat_flush_inodes(inode->i_sb, inode, NULL); } +int fat_getattr(struct vfsmount *mnt, struct dentry *dentry, struct kstat *stat) +{ + struct inode *inode = dentry->d_inode; + generic_fillattr(inode, stat); + stat->blksize = MSDOS_SB(inode->i_sb)->cluster_size; + return 0; +} +EXPORT_SYMBOL_GPL(fat_getattr); + struct inode_operations fat_file_inode_operations = { .truncate = fat_truncate, .setattr = fat_notify_change, + .getattr = fat_getattr, };