summaryrefslogtreecommitdiffstats
path: root/fs/cifs/inode.c
diff options
context:
space:
mode:
authorSteve French <sfrench@us.ibm.com>2006-11-07 19:26:33 +0000
committerSteve French <sfrench@us.ibm.com>2006-11-07 19:26:33 +0000
commit5fe14c851efedf95b0e7652a3a7b93ec899d1599 (patch)
tree08c3347de6dc98b3ee89b14169ed8ad0cd1b77e6 /fs/cifs/inode.c
parent4891d53956abd4ad9d94127c50d931124319a324 (diff)
downloadblackbird-op-linux-5fe14c851efedf95b0e7652a3a7b93ec899d1599.tar.gz
blackbird-op-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>
Diffstat (limited to 'fs/cifs/inode.c')
-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;
}
OpenPOWER on IntegriCloud