diff options
author | Jan Harkes <jaharkes@cs.cmu.edu> | 2007-07-19 04:48:44 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-07-19 13:04:48 -0400 |
commit | fac1f0e34026a656174102ebad4d1cd71cd4fe2c (patch) | |
tree | 14316411b2c2ca17b8c6d0c287cfd221755b4c90 /fs/coda | |
parent | 8c6d21528406ec719aaea9d589876fd105c31646 (diff) |
coda: coda doesn't track atime
Set MS_NOATIME flag to avoid unnecessary calls when the coda inode is
accessed.
Also, set statfs.f_bsize to 4k. 1k is obviously too small for the suggested
IO size.
Signed-off-by: Jan Harkes <jaharkes@cs.cmu.edu>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'fs/coda')
-rw-r--r-- | fs/coda/inode.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/fs/coda/inode.c b/fs/coda/inode.c index dbff1bd4fb96..29e441765600 100644 --- a/fs/coda/inode.c +++ b/fs/coda/inode.c | |||
@@ -83,7 +83,7 @@ void coda_destroy_inodecache(void) | |||
83 | 83 | ||
84 | static int coda_remount(struct super_block *sb, int *flags, char *data) | 84 | static int coda_remount(struct super_block *sb, int *flags, char *data) |
85 | { | 85 | { |
86 | *flags |= MS_NODIRATIME; | 86 | *flags |= MS_NOATIME; |
87 | return 0; | 87 | return 0; |
88 | } | 88 | } |
89 | 89 | ||
@@ -176,12 +176,12 @@ static int coda_fill_super(struct super_block *sb, void *data, int silent) | |||
176 | 176 | ||
177 | sbi->sbi_vcomm = vc; | 177 | sbi->sbi_vcomm = vc; |
178 | 178 | ||
179 | sb->s_fs_info = sbi; | 179 | sb->s_fs_info = sbi; |
180 | sb->s_flags |= MS_NODIRATIME; /* probably even noatime */ | 180 | sb->s_flags |= MS_NOATIME; |
181 | sb->s_blocksize = 1024; /* XXXXX what do we put here?? */ | 181 | sb->s_blocksize = 4096; /* XXXXX what do we put here?? */ |
182 | sb->s_blocksize_bits = 10; | 182 | sb->s_blocksize_bits = 12; |
183 | sb->s_magic = CODA_SUPER_MAGIC; | 183 | sb->s_magic = CODA_SUPER_MAGIC; |
184 | sb->s_op = &coda_super_operations; | 184 | sb->s_op = &coda_super_operations; |
185 | 185 | ||
186 | /* get root fid from Venus: this needs the root inode */ | 186 | /* get root fid from Venus: this needs the root inode */ |
187 | error = venus_rootfid(sb, &fid); | 187 | error = venus_rootfid(sb, &fid); |
@@ -296,7 +296,7 @@ static int coda_statfs(struct dentry *dentry, struct kstatfs *buf) | |||
296 | 296 | ||
297 | /* and fill in the rest */ | 297 | /* and fill in the rest */ |
298 | buf->f_type = CODA_SUPER_MAGIC; | 298 | buf->f_type = CODA_SUPER_MAGIC; |
299 | buf->f_bsize = 1024; | 299 | buf->f_bsize = 4096; |
300 | buf->f_namelen = CODA_MAXNAMLEN; | 300 | buf->f_namelen = CODA_MAXNAMLEN; |
301 | 301 | ||
302 | return 0; | 302 | return 0; |