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
LU-3474 mdt: mdt_links_read() to return linkea_init() errors
[fs/lustre-release.git]
/
lustre
/
mdt
/
mdt_handler.c
diff --git
a/lustre/mdt/mdt_handler.c
b/lustre/mdt/mdt_handler.c
index
d6c94f8
..
c4ce385
100644
(file)
--- a/
lustre/mdt/mdt_handler.c
+++ b/
lustre/mdt/mdt_handler.c
@@
-5590,9
+5590,7
@@
static int mdt_links_read(struct mdt_thread_info *info,
if (rc < 0)
return rc;
if (rc < 0)
return rc;
- linkea_init(ldata);
-
- return 0;
+ return linkea_init(ldata);
}
static int mdt_path_current(struct mdt_thread_info *info,
}
static int mdt_path_current(struct mdt_thread_info *info,
@@
-5644,7
+5642,7
@@
static int mdt_path_current(struct mdt_thread_info *info,
rc = mdt_links_read(info, mdt_obj, &ldata);
mdt_object_put(info->mti_env, mdt_obj);
if (rc != 0)
rc = mdt_links_read(info, mdt_obj, &ldata);
mdt_object_put(info->mti_env, mdt_obj);
if (rc != 0)
- GOTO(out, rc
= PTR_ERR(buf)
);
+ GOTO(out, rc);
leh = buf->lb_buf;
lee = (struct link_ea_entry *)(leh + 1); /* link #0 */
leh = buf->lb_buf;
lee = (struct link_ea_entry *)(leh + 1); /* link #0 */