|
@@ -678,6 +678,8 @@ int nfs_getattr(struct vfsmount *mnt, struct dentry *dentry, struct kstat *stat)
|
|
if (!err) {
|
|
if (!err) {
|
|
generic_fillattr(inode, stat);
|
|
generic_fillattr(inode, stat);
|
|
stat->ino = nfs_compat_user_ino64(NFS_FILEID(inode));
|
|
stat->ino = nfs_compat_user_ino64(NFS_FILEID(inode));
|
|
|
|
+ if (S_ISDIR(inode->i_mode))
|
|
|
|
+ stat->blksize = NFS_SERVER(inode)->dtsize;
|
|
}
|
|
}
|
|
out:
|
|
out:
|
|
trace_nfs_getattr_exit(inode, err);
|
|
trace_nfs_getattr_exit(inode, err);
|