From: pravins Date: Thu, 10 Apr 2008 12:50:47 +0000 (+0000) Subject: to fix bug introduced by lu_dirent-change patch X-Git-Tag: v1_7_0_51~55 X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=commitdiff_plain;h=8a4204c09de5d2afda6a6f209d639147ffdcaed6 to fix bug introduced by lu_dirent-change patch --- diff --git a/lustre/llite/dir.c b/lustre/llite/dir.c index 74f8abc..38ef79a 100644 --- a/lustre/llite/dir.c +++ b/lustre/llite/dir.c @@ -381,7 +381,7 @@ int ll_readdir(struct file *filp, void *cookie, filldir_t filldir) struct inode *inode = filp->f_dentry->d_inode; struct ll_inode_info *info = ll_i2info(inode); struct ll_sb_info *sbi = ll_i2sbi(inode); - __u32 pos = filp->f_pos; + __u64 pos = filp->f_pos; struct page *page; struct ll_dir_chain chain; int rc; diff --git a/lustre/lmv/lmv_obd.c b/lustre/lmv/lmv_obd.c index 501592c..c03937b 100644 --- a/lustre/lmv/lmv_obd.c +++ b/lustre/lmv/lmv_obd.c @@ -2324,7 +2324,7 @@ static int lmv_readpage(struct obd_export *exp, const struct lu_fid *fid, lmv_hash_adjust(&ent->lde_hash, hash_adj); if (tgt0 != nr - 1) { - __u32 end; + __u64 end; end = le32_to_cpu(dp->ldp_hash_end); if (end == DIR_END_OFF) {