From ef702bad435e58182c47ed2b4652cb3b6fdceca9 Mon Sep 17 00:00:00 2001 From: zab Date: Mon, 29 Sep 2003 20:43:43 +0000 Subject: [PATCH] - enable read-ahead in llite by default. remove the silly 'readahead' mount option that no-one in the world will know to use. - kill an old comment --- lustre/llite/llite_lib.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/lustre/llite/llite_lib.c b/lustre/llite/llite_lib.c index 9237e1b..326c5a9 100644 --- a/lustre/llite/llite_lib.c +++ b/lustre/llite/llite_lib.c @@ -109,11 +109,6 @@ void ll_options(char *options, char **ost, char **mds, int *flags) ll_set_opt("nolock", this_char, LL_SBI_NOLCK))) continue; - if (!(*flags & LL_SBI_READAHEAD) && - ((*flags) = (*flags) | - ll_set_opt("readahead", this_char, - LL_SBI_READAHEAD))) - continue; } EXIT; } @@ -155,6 +150,7 @@ int ll_fill_super(struct super_block *sb, void *data, int silent) generate_random_uuid(uuid); class_uuid_unparse(uuid, &sbi->ll_sb_uuid); + sbi->ll_flags |= LL_SBI_READAHEAD; ll_options(data, &osc, &mdc, &sbi->ll_flags); if (!osc) { -- 1.8.3.1