From: wangdi Date: Thu, 14 Sep 2006 10:55:17 +0000 (+0000) Subject: Branch: b_new_cmd X-Git-Tag: v1_8_0_110~486^2~939 X-Git-Url: https://git.whamcloud.com/gitweb?a=commitdiff_plain;h=0ac416706726c5c9c6ad0bbb018870a965fbd43d;p=fs%2Flustre-release.git Branch: b_new_cmd the page should be lock when truncate it --- diff --git a/lustre/llite/dir.c b/lustre/llite/dir.c index 807bb2d..42849ee 100644 --- a/lustre/llite/dir.c +++ b/lustre/llite/dir.c @@ -334,9 +334,11 @@ static struct page *ll_get_dir_page(struct inode *dir, __u32 hash, int exact, * entries with smaller hash values. Stale page should * be invalidated, and new one fetched. */ - CWARN("Stale readpage page: %#lx != %#lx\n", + CWARN("Stale readpage page %p: %#lx != %#lx\n", page, (unsigned long)hash, (unsigned long)start); - truncate_complete_page(mapping, page); + lock_page(page); + ll_truncate_complete_page(page); + unlock_page(page); page_cache_release(page); } else GOTO(hash_collision, page);