From: Jeffrey Hutzelman Date: Tue, 20 Sep 2011 18:21:44 +0000 (-0400) Subject: libafs/LINUX: update file pos in corrupt dir fix X-Git-Tag: openafs-stable-1_8_0pre1~1069 X-Git-Url: https://git.openafs.org/?p=openafs.git;a=commitdiff_plain;h=428ab5deff8efa7334987d2fd2fbc4db053a5562 libafs/LINUX: update file pos in corrupt dir fix Change-Id: Ia90740d5d7dda026dbeeee7273555c4f68fde166 Reviewed-on: http://gerrit.openafs.org/9972 Tested-by: BuildBot Reviewed-by: Derrick Brashear --- diff --git a/src/afs/LINUX/osi_vnodeops.c b/src/afs/LINUX/osi_vnodeops.c index 7c7259b..6830b87 100644 --- a/src/afs/LINUX/osi_vnodeops.c +++ b/src/afs/LINUX/osi_vnodeops.c @@ -441,14 +441,14 @@ afs_linux_readdir(struct file *fp, void *dirbuf, filldir_t filldir) /* If filldir didn't fill in the last one this is still pointing to that * last attempt. */ + code = 0; + +unlock_out: #if defined(STRUCT_FILE_OPERATIONS_HAS_ITERATE) ctx->pos = (loff_t) offset; #else fp->f_pos = (loff_t) offset; #endif - code = 0; - -unlock_out: ReleaseReadLock(&tdc->lock); afs_PutDCache(tdc); UpgradeSToWLock(&avc->lock, 813);