mirror of
https://git.openafs.org/openafs.git
synced 2025-01-31 21:47:45 +00:00
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:
parent
49b231e31c
commit
820bcc4fc4
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user