From 8abee5915832dfbd424e00b4e7b8ee1f0a1dd046 Mon Sep 17 00:00:00 2001 From: bobijam <bobijam> Date: Sat, 27 Sep 2008 02:18:54 +0000 Subject: [PATCH] Branch b1_6 b=16871 i=mikhail.pershin (tappro) i=johann Correct set created to clear name and inode when operation fails with EFAULT. --- lustre/mds/mds_open.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lustre/mds/mds_open.c b/lustre/mds/mds_open.c index 7823d522b8..8b4e3f11ca 100644 --- a/lustre/mds/mds_open.c +++ b/lustre/mds/mds_open.c @@ -1115,6 +1115,7 @@ int mds_open(struct mds_update_record *rec, int offset, GOTO(cleanup, rc); } inode = dchild->d_inode; + created = 1; if (ino) { if (ino != inode->i_ino) GOTO(cleanup, rc = -EFAULT); @@ -1124,7 +1125,6 @@ int mds_open(struct mds_update_record *rec, int offset, inode->i_ino, inode->i_generation); } - created = 1; LTIME_S(iattr.ia_atime) = rec->ur_time; LTIME_S(iattr.ia_ctime) = rec->ur_time; LTIME_S(iattr.ia_mtime) = rec->ur_time; -- GitLab