From: wangdi Date: Wed, 22 Nov 2006 16:34:15 +0000 (+0000) Subject: Branch: b_new_cmd X-Git-Tag: v1_8_0_110~486^2~91 X-Git-Url: https://git.whamcloud.com/gitweb?a=commitdiff_plain;h=5ad82f75c394e3678f01936cb036ae2ae8459b5b;p=fs%2Flustre-release.git Branch: b_new_cmd miss kunmap for those reset offset page. found by umka --- diff --git a/lustre/lmv/lmv_obd.c b/lustre/lmv/lmv_obd.c index 5c3455f..aa7727b 100644 --- a/lustre/lmv/lmv_obd.c +++ b/lustre/lmv/lmv_obd.c @@ -2010,7 +2010,7 @@ static int lmv_readpage(struct obd_export *exp, const struct lu_fid *fid, if (obj && i < obj->lo_objcount - 1) { struct lu_dirpage *dp; __u32 end; - (void)kmap(page); + (void)cfs_kmap(page); dp = cfs_page_address(page); end = le32_to_cpu(dp->ldp_hash_end); if (end == DIR_END_OFF) { @@ -2021,6 +2021,7 @@ static int lmv_readpage(struct obd_export *exp, const struct lu_fid *fid, CDEBUG(D_INFO, ""DFID" reset end %lu i %d\n", PFID(&rid), (unsigned long)dp->ldp_hash_end, i); } + cfs_kunmap(page); } /* * Here we could remove "." and ".." from all pages which at not from