STABLE14-hpux-store-fd-sooner-in-iopen-20051107

do this a little differently, it may change out from under us


(cherry picked from commit dc28ad2b6526faf697346e3ef8bc34e02c199758)
This commit is contained in:
Derrick Brashear 2005-11-07 23:43:32 +00:00
parent 49b231e31c
commit 820bcc4fc4

View File

@ -128,6 +128,7 @@ afs_syscall_iopen(dev, inode, usrmod)
int dummy;
extern struct fileops vnodefops;
register int code;
int fd;
AFS_STATCNT(afs_syscall_iopen);
@ -144,6 +145,9 @@ afs_syscall_iopen(dev, inode, usrmod)
iput(ip);
goto out;
}
#ifdef AFS_HPUX1111_ENV
fd = u.u_r.r_val1;
#endif
iunlock(ip);
fp->f_ops = &vnodefops;
@ -175,7 +179,9 @@ afs_syscall_iopen(dev, inode, usrmod)
* called by falloc(), which is called above.
*/
if (is_multithreaded(u.u_procp)) {
int fd = (int)u.u_r.r_val1;
#ifndef AFS_HPUX1111_ENV
fd = (int)u.u_r.r_val1;
#endif
putf(fd);
}