Whamcloud - gitweb
git://git.whamcloud.com
/
fs
/
lustre-release.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
51d9f39
)
Fix error handling.
author
adilger
<adilger>
Fri, 30 Jul 2004 21:53:55 +0000
(21:53 +0000)
committer
adilger
<adilger>
Fri, 30 Jul 2004 21:53:55 +0000
(21:53 +0000)
lustre/mds/handler.c
patch
|
blob
|
history
diff --git
a/lustre/mds/handler.c
b/lustre/mds/handler.c
index
33b6f09
..
5eec678
100644
(file)
--- a/
lustre/mds/handler.c
+++ b/
lustre/mds/handler.c
@@
-1406,7
+1406,10
@@
static int mdt_obj_create(struct ptlrpc_request *req)
down(&parent_inode->i_sem);
handle = fsfilt_start(obd, parent_inode, FSFILT_OP_MKDIR, NULL);
- LASSERT(!IS_ERR(handle));
+ if (IS_ERR(handle)) {
+ up(&parent_inode->i_sem);
+ GOTO(cleanup, rc = PTR_ERR(handle));
+ }
cleanup_phase = 1; /* transaction */
repeat: