diff options
author | Steve French <sfrench@us.ibm.com> | 2006-11-07 19:26:33 +0000 |
---|---|---|
committer | Steve French <sfrench@us.ibm.com> | 2006-11-07 19:26:33 +0000 |
commit | 5fe14c851efedf95b0e7652a3a7b93ec899d1599 (patch) | |
tree | 08c3347de6dc98b3ee89b14169ed8ad0cd1b77e6 /fs/cifs | |
parent | 4891d53956abd4ad9d94127c50d931124319a324 (diff) | |
download | op-kernel-dev-5fe14c851efedf95b0e7652a3a7b93ec899d1599.zip op-kernel-dev-5fe14c851efedf95b0e7652a3a7b93ec899d1599.tar.gz |
[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')
-rw-r--r-- | fs/cifs/inode.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/fs/cifs/inode.c b/fs/cifs/inode.c index dffe295..1ad8c9f 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; } |