Whamcloud - gitweb
LU-11611 mdt: incorrect return value in mdt_reint_unlink 77/33577/2
authorLai Siyao <lai.siyao@intel.com>
Sat, 20 Oct 2018 04:33:03 +0000 (12:33 +0800)
committerOleg Drokin <green@whamcloud.com>
Sat, 10 Nov 2018 05:24:09 +0000 (05:24 +0000)
An incorrect return value may be set in mdt_reint_unlink().

Signed-off-by: Lai Siyao <lai.siyao@whamcloud.com>
Change-Id: I6a15c4058c6265d6e014c4afa3caa54aa6e517a4
Reviewed-on: https://review.whamcloud.com/33577
Tested-by: Jenkins
Reviewed-by: Jian Yu <yujian@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
Tested-by: Maloo <hpdd-maloo@intel.com>
lustre/mdt/mdt_reint.c

index 3642f60..9c759c1 100644 (file)
@@ -953,7 +953,7 @@ relock:
        if (!cos_incompat) {
                rc = mdt_object_striped(info, mc);
                if (rc < 0)
        if (!cos_incompat) {
                rc = mdt_object_striped(info, mc);
                if (rc < 0)
-                       GOTO(unlock_parent, rc = PTR_ERR(mc));
+                       GOTO(unlock_parent, rc);
 
                cos_incompat = rc;
                if (cos_incompat) {
 
                cos_incompat = rc;
                if (cos_incompat) {