summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSteve French <sfrench@us.ibm.com>2006-11-07 20:26:33 +0100
committerSteve French <sfrench@us.ibm.com>2006-11-07 20:26:33 +0100
commit5fe14c851efedf95b0e7652a3a7b93ec899d1599 (patch)
tree08c3347de6dc98b3ee89b14169ed8ad0cd1b77e6
parent[CIFS] NFS stress test generates flood of "close with pending write" messages (diff)
downloadlinux-5fe14c851efedf95b0e7652a3a7b93ec899d1599.tar.xz
linux-5fe14c851efedf95b0e7652a3a7b93ec899d1599.zip
[CIFS] Explicitly set stat->blksize
CIFS may perform I/O over the network in larger chunks than the page size, so it should explicitly set stat->blksize to ensure optimal I/O bandwidth Signed-off-by: Dave Kleikamp <shaggy@linux.vnet.ibm.com> Signed-off-by: Steve French <sfrench@us.ibm.com>
-rw-r--r--fs/cifs/inode.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/fs/cifs/inode.c b/fs/cifs/inode.c
index dffe295825f4..1ad8c9fcc742 100644
--- a/fs/cifs/inode.c
+++ b/fs/cifs/inode.c
@@ -1089,8 +1089,10 @@ int cifs_getattr(struct vfsmount *mnt, struct dentry *dentry,
struct kstat *stat)
{
int err = cifs_revalidate(dentry);
- if (!err)
+ if (!err) {
generic_fillattr(dentry->d_inode, stat);
+ stat->blksize = CIFS_MAX_MSGSIZE;
+ }
return err;
}