From 8a4204c09de5d2afda6a6f209d639147ffdcaed6 Mon Sep 17 00:00:00 2001 From: pravins Date: Thu, 10 Apr 2008 12:50:47 +0000 Subject: [PATCH] to fix bug introduced by lu_dirent-change patch --- lustre/llite/dir.c | 2 +- lustre/lmv/lmv_obd.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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) { -- 1.8.3.1