X-Git-Url: http://git.openafs.org/?p=openafs.git;a=blobdiff_plain;f=src%2Fvol%2Fihandle.c;h=a7456660e38fb729523f970c631b99d3035fea04;hp=8ef2a61b378fc3f58f8a7c6c86d554636450d709;hb=9ac85bb2fd91baa4c3077d091f395f57e933018a;hpb=ef9fc4fadaded1c0ea067b2fd1d423df826606ae diff --git a/src/vol/ihandle.c b/src/vol/ihandle.c index 8ef2a61..a745666 100644 --- a/src/vol/ihandle.c +++ b/src/vol/ihandle.c @@ -452,9 +452,9 @@ fd_close(FdHandle_t * fdP) fdP->fd_refcnt--; if (fdP->fd_refcnt == 0) { - /* Put this descriptor back into the cache */ - fdP->fd_status = FD_HANDLE_OPEN; - DLL_INSERT_TAIL(fdP, fdLruHead, fdLruTail, fd_next, fd_prev); + /* Put this descriptor back into the cache */ + fdP->fd_status = FD_HANDLE_OPEN; + DLL_INSERT_TAIL(fdP, fdLruHead, fdLruTail, fd_next, fd_prev); } /* If this is not the only reference to the Inode then we can decrement @@ -494,13 +494,13 @@ fd_reallyclose(FdHandle_t * fdP) fdP->fd_refcnt--; if (fdP->fd_refcnt == 0) { - DLL_DELETE(fdP, ihP->ih_fdhead, ihP->ih_fdtail, fd_ihnext, fd_ihprev); - DLL_INSERT_TAIL(fdP, fdAvailHead, fdAvailTail, fd_next, fd_prev); + DLL_DELETE(fdP, ihP->ih_fdhead, ihP->ih_fdtail, fd_ihnext, fd_ihprev); + DLL_INSERT_TAIL(fdP, fdAvailHead, fdAvailTail, fd_next, fd_prev); - fdP->fd_status = FD_HANDLE_AVAIL; - fdP->fd_refcnt = 0; - fdP->fd_ih = NULL; - fdP->fd_fd = INVALID_FD; + fdP->fd_status = FD_HANDLE_AVAIL; + fdP->fd_refcnt = 0; + fdP->fd_ih = NULL; + fdP->fd_fd = INVALID_FD; } /* All the file descriptor handles have been closed; reset @@ -512,10 +512,10 @@ fd_reallyclose(FdHandle_t * fdP) } if (fdP->fd_refcnt == 0) { - IH_UNLOCK; - OS_CLOSE(closeFd); - IH_LOCK; - fdInUseCount -= 1; + IH_UNLOCK; + OS_CLOSE(closeFd); + IH_LOCK; + fdInUseCount -= 1; } /* If this is not the only reference to the Inode then we can decrement