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 b_fid.
[fs/lustre-release.git]
/
lustre
/
llite
/
llite_nfs.c
diff --git
a/lustre/llite/llite_nfs.c
b/lustre/llite/llite_nfs.c
index
7615751
..
d052b2d
100644
(file)
--- a/
lustre/llite/llite_nfs.c
+++ b/
lustre/llite/llite_nfs.c
@@
-44,7
+44,7
@@
static struct inode * search_inode_for_lustre(struct super_block *sb,
{
struct ptlrpc_request *req = NULL;
struct ll_sb_info *sbi = ll_s2sbi(sb);
- struct l
l_fid f
id;
+ struct l
ustre_id
id;
unsigned long valid = 0;
int eadatalen = 0, rc;
struct inode *inode = NULL;
@@
-54,20
+54,20
@@
static struct inode * search_inode_for_lustre(struct super_block *sb,
if (inode)
return inode;
if (S_ISREG(mode)) {
- eadatalen = obd_size_diskmd(sbi->ll_
osc
_exp, NULL);
+ eadatalen = obd_size_diskmd(sbi->ll_
lov
_exp, NULL);
valid |= OBD_MD_FLEASIZE;
}
-
fid.id = (__u64)ino
;
-
fid.generation = generation
;
-
fid.f_type = mode
;
+
id.li_stc.u.e3s.l3s_type = mode
;
+
id.li_stc.u.e3s.l3s_ino = (__u64)ino
;
+
id.li_stc.u.e3s.l3s_gen = generation
;
- rc = md_getattr(sbi->ll_
mdc_exp, &f
id, valid, eadatalen, &req);
+ rc = md_getattr(sbi->ll_
lmv_exp, &
id, valid, eadatalen, &req);
if (rc) {
CERROR("failure %d inode %lu\n", rc, ino);
return ERR_PTR(rc);
}
- rc = ll_prep_inode(sbi->ll_
osc_exp, sbi->ll_mdc
_exp,
+ rc = ll_prep_inode(sbi->ll_
lov_exp, sbi->ll_lmv
_exp,
&inode, req, 0, sb);
if (rc) {
ptlrpc_req_finished(req);