Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1486046 > unrolled thread

[PATCH 006/124] staging: lustre: lmv: Do not ignore ENOENT in lmv_unlink

Started byJames Simmons <jsimmons@infradead.org>
First post2016-09-18 23:10 +0200
Last post2016-09-18 23:10 +0200
Articles 1 — 1 participant

Back to article view | Back to linux.kernel

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  [PATCH 006/124] staging: lustre: lmv: Do not ignore ENOENT in lmv_unlink James Simmons <jsimmons@infradead.org> - 2016-09-18 23:10 +0200

#1486046 — [PATCH 006/124] staging: lustre: lmv: Do not ignore ENOENT in lmv_unlink

FromJames Simmons <jsimmons@infradead.org>
Date2016-09-18 23:10 +0200
Subject[PATCH 006/124] staging: lustre: lmv: Do not ignore ENOENT in lmv_unlink
Message-ID<siRvA-4Ox-13@gated-at.bofh.it>
From: wang di <di.wang@intel.com>

Return correct value (rc) in lmv_unlink. In lmv_unlink,
-ENOENT might be ingored for local directory unlink.

Signed-off-by: wang di <di.wang@intel.com>
Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-5371
Reviewed-on: http://review.whamcloud.com/11170
Reviewed-by: John L. Hammond <john.hammond@intel.com>
Reviewed-by: Andreas Dilger <andreas.dilger@intel.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
Signed-off-by: James Simmons <jsimmons@infradead.org>
---
 drivers/staging/lustre/lustre/lmv/lmv_obd.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/staging/lustre/lustre/lmv/lmv_obd.c b/drivers/staging/lustre/lustre/lmv/lmv_obd.c
index 171c260..11dcbb6 100644
--- a/drivers/staging/lustre/lustre/lmv/lmv_obd.c
+++ b/drivers/staging/lustre/lustre/lmv/lmv_obd.c
@@ -2643,7 +2643,7 @@ try_next_stripe:
 
 	/* Not cross-ref case, just get out of here. */
 	if (likely(!(body->mbo_valid & OBD_MD_MDS)))
-		return 0;
+		return rc;
 
 	CDEBUG(D_INODE, "%s: try unlink to another MDT for "DFID"\n",
 	       exp->exp_obd->obd_name, PFID(&body->mbo_fid1));
-- 
1.7.1

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web