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:
8a3ec81
)
Don't try to close file pointer if there was an error opening it.
author
adilger
<adilger>
Fri, 8 Mar 2002 20:30:34 +0000
(20:30 +0000)
committer
adilger
<adilger>
Fri, 8 Mar 2002 20:30:34 +0000
(20:30 +0000)
lustre/obdfilter/filter.c
patch
|
blob
|
history
diff --git
a/lustre/obdfilter/filter.c
b/lustre/obdfilter/filter.c
index
7e8cf22
..
bc0570e
100644
(file)
--- a/
lustre/obdfilter/filter.c
+++ b/
lustre/obdfilter/filter.c
@@
-550,15
+550,17
@@
static int filter_destroy(struct obd_conn *conn, struct obdo *oa)
filter_id(id, oa->o_id, oa->o_mode);
push_ctxt(&saved, &obddev->u.filter.fo_ctxt);
- dir = filter_parent(oa->o_id, oa->o_mode);
- if (!dir || IS_ERR(dir)) {
+ dir = filter_parent(oa->o_id, oa->o_mode);
+ if (IS_ERR(dir)) {
+ rc = PTR_ERR(dir);
+ EXIT;
goto out;
}
rc = simple_unlink(dir->f_dentry, id);
-
- out:
- filp_close(dir, 0);
+
+ filp_close(dir, 0);
+out:
pop_ctxt(&saved);
EXIT;
return rc;