projects
/
GitHub
/
LineageOS
/
G12
/
android_kernel_amlogic_linux-4.9.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4891d53
)
[CIFS] Explicitly set stat->blksize
author
Steve French
<sfrench@us.ibm.com>
Tue, 7 Nov 2006 19:26:33 +0000
(19:26 +0000)
committer
Steve French
<sfrench@us.ibm.com>
Tue, 7 Nov 2006 19:26:33 +0000
(19:26 +0000)
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>
fs/cifs/inode.c
patch
|
blob
|
blame
|
history
diff --git
a/fs/cifs/inode.c
b/fs/cifs/inode.c
index dffe295825f46f24073497476de7680c4f23aba6..1ad8c9fcc742394aedee8df91ddd9bc100c3d7ed 100644
(file)
--- 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;
}