Whamcloud - gitweb
git://git.whamcloud.com
/
fs
/
lustre-release.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
- landing of b_fid after merge with b_hd_cleanup_merge.
[fs/lustre-release.git]
/
lustre
/
liblustre
/
dir.c
diff --git
a/lustre/liblustre/dir.c
b/lustre/liblustre/dir.c
index
3b9b0f6
..
b50e458
100644
(file)
--- a/
lustre/liblustre/dir.c
+++ b/
lustre/liblustre/dir.c
@@
-51,7
+51,7
@@
static int llu_dir_do_readpage(struct inode *inode, struct page *page)
{
struct llu_inode_info *lli = llu_i2info(inode);
struct llu_sb_info *sbi = llu_i2sbi(inode);
- struct l
l_fid mdc_f
id;
+ struct l
ustre_id
id;
__u64 offset;
int rc = 0;
struct ptlrpc_request *request;
@@
-59,18
+59,18
@@
static int llu_dir_do_readpage(struct inode *inode, struct page *page)
struct mds_body *body;
struct lookup_intent it = { .it_op = IT_READDIR };
struct mdc_op_data data;
- struct obd_device *obddev = class_exp2obd(sbi->ll_
mdc
_exp);
+ struct obd_device *obddev = class_exp2obd(sbi->ll_
lmv
_exp);
struct ldlm_res_id res_id =
- { .name = {
lli->lli_st_ino, (__u64)lli->lli_st_generation
} };
+ { .name = {
id_fid(&lli->lli_id), id_group(&lli->lli_id)
} };
ldlm_policy_data_t policy = { .l_inodebits = { MDS_INODELOCK_UPDATE } };
ENTRY;
rc = ldlm_lock_match(obddev->obd_namespace, LDLM_FL_BLOCK_GRANTED,
&res_id, LDLM_IBITS, &policy, LCK_PR, &lockh);
if (!rc) {
- llu_prepare_mdc_
op_
data(&data, inode, NULL, NULL, 0, 0);
+ llu_prepare_mdc_data(&data, inode, NULL, NULL, 0, 0);
- rc = mdc_enqueue(sbi->ll_
mdc
_exp, LDLM_IBITS, &it, LCK_PR,
+ rc = mdc_enqueue(sbi->ll_
lmv
_exp, LDLM_IBITS, &it, LCK_PR,
&data, &lockh, NULL, 0,
ldlm_completion_ast, llu_mdc_blocking_ast,
inode);
@@
-84,11
+84,12
@@
static int llu_dir_do_readpage(struct inode *inode, struct page *page)
}
ldlm_lock_dump_handle(D_OTHER, &lockh);
- mdc_pack_fid(&mdc_fid, lli->lli_st_ino, lli->lli_st_generation, S_IFDIR);
+ /* FIXME-UMKA: should be here some mds num and mds id? */
+ mdc_pack_id(&id, lli->lli_st_ino, lli->lli_st_generation,
+ S_IFDIR, 0, 0);
offset = page->index << PAGE_SHIFT;
- rc = mdc_readpage(sbi->ll_mdc_exp, &mdc_fid,
- offset, page, &request);
+ rc = mdc_readpage(sbi->ll_lmv_exp, &id, offset, page, &request);
if (!rc) {
body = lustre_msg_buf(request->rq_repmsg, 0, sizeof (*body));
LASSERT (body != NULL); /* checked by mdc_readpage() */