Whamcloud - gitweb
b=14929
authoranserper <anserper>
Wed, 25 Feb 2009 23:01:28 +0000 (23:01 +0000)
committeranserper <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

index d1fa9f5..1a9af70 100644 (file)
@@ -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");