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:
2c74bfc
)
b=14929
author
anserper
<anserper>
Wed, 25 Feb 2009 23:01:28 +0000
(23:01 +0000)
committer
anserper
<anserper>
Wed, 25 Feb 2009 23:01:28 +0000
(23:01 +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
d1fa9f5
..
1a9af70
100644
(file)
--- a/
lustre/obdfilter/filter.c
+++ b/
lustre/obdfilter/filter.c
@@
-4281,14
+4281,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");