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:
cc3fc79
)
b=14929
author
anserper
<anserper>
Wed, 25 Feb 2009 22:58:15 +0000
(22:58 +0000)
committer
anserper
<anserper>
Wed, 25 Feb 2009 22:58:15 +0000
(22:58 +0000)
i=Alexey Lyashkov
i=Johann Lombardi
remove duplicate code in filter_get_info and add pop_ctxt into error path
lustre/obdfilter/filter.c
patch
|
blob
|
history
diff --git
a/lustre/obdfilter/filter.c
b/lustre/obdfilter/filter.c
index
3d5d3a8
..
ba3a907
100644
(file)
--- a/
lustre/obdfilter/filter.c
+++ b/
lustre/obdfilter/filter.c
@@
-3780,14
+3780,10
@@
static int filter_get_info(struct obd_export *exp, __u32 keylen,
push_ctxt(&saved, &obd->obd_lvfs_ctxt, NULL);
rc = fsfilt_iocontrol(obd, dentry->d_inode, NULL,
EXT3_IOC_FIEMAP, (long)fiemap);
- if (rc) {
- f_dput(dentry);
- RETURN(rc);
- }
pop_ctxt(&saved, &obd->obd_lvfs_ctxt, NULL);
f_dput(dentry);
- RETURN(
0
);
+ RETURN(
rc
);
}
CDEBUG(D_IOCTL, "invalid key\n");