From 428ab5deff8efa7334987d2fd2fbc4db053a5562 Mon Sep 17 00:00:00 2001 From: Jeffrey Hutzelman Date: Tue, 20 Sep 2011 14:21:44 -0400 Subject: [PATCH] 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 --- src/afs/LINUX/osi_vnodeops.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/afs/LINUX/osi_vnodeops.c b/src/afs/LINUX/osi_vnodeops.c index 7c7259b87..6830b874d 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); -- 2.39.5