From 455e6e1c8f7b92620960b0f8ec6dd8799e45fcae Mon Sep 17 00:00:00 2001 From: anserper Date: Wed, 25 Feb 2009 22:58:15 +0000 Subject: [PATCH] b=14929 i=Alexey Lyashkov i=Johann Lombardi remove duplicate code in filter_get_info and add pop_ctxt into error path --- lustre/obdfilter/filter.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/lustre/obdfilter/filter.c b/lustre/obdfilter/filter.c index 3d5d3a8..ba3a907 100644 --- 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"); -- 1.8.3.1