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.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/fs/fat/file.c b/fs/fat/file.c
index 3978f8ca1823..b0b632e50ddb 100644
--- a/fs/fat/file.c
+++ b/fs/fat/file.c
@@ -306,6 +306,11 @@ int fat_getattr(struct vfsmount *mnt, struct dentry *dentry, struct kstat *stat)
306 struct inode *inode = dentry->d_inode; 306 struct inode *inode = dentry->d_inode;
307 generic_fillattr(inode, stat); 307 generic_fillattr(inode, stat);
308 stat->blksize = MSDOS_SB(inode->i_sb)->cluster_size; 308 stat->blksize = MSDOS_SB(inode->i_sb)->cluster_size;
309
310 if (MSDOS_SB(inode->i_sb)->options.nfs == FAT_NFS_NOSTALE_RO) {
311 /* Use i_pos for ino. This is used as fileid of nfs. */
312 stat->ino = fat_i_pos_read(MSDOS_SB(inode->i_sb), inode);
313 }
309 return 0; 314 return 0;
310} 315}
311EXPORT_SYMBOL_GPL(fat_getattr); 316EXPORT_SYMBOL_GPL(fat_getattr);