From d1c7e48b962eaacfe1a83cdbdc3123f43b14dfbf Mon Sep 17 00:00:00 2001 From: fanyong Date: Tue, 12 May 2009 06:19:57 +0000 Subject: [PATCH] Branch b_release_1_6_7 b=17336 i=robert.read i=jinshan.xiong Do not trigger readpage when objective page index exceeds the end-of-file page index. --- lustre/llite/file.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/lustre/llite/file.c b/lustre/llite/file.c index 08c72e5..79872b1 100644 --- a/lustre/llite/file.c +++ b/lustre/llite/file.c @@ -1542,12 +1542,10 @@ repeat: if ((size == 0 && cur_index != 0) || (((size - 1) >> CFS_PAGE_SHIFT) < cur_index)) { - if (lock_style != LL_LOCK_STYLE_NOLOCK) { + if (lock_style != LL_LOCK_STYLE_NOLOCK) ll_file_put_lock(inode, end, lock_style, cookie, &tree, OBD_BRW_READ); - up_read(&lli->lli_truncate_rwsem); - } goto out; } } -- 1.8.3.1