Remove label that was accidentally moved during Giant removal from VFS.

This commit is contained in:
Pawel Jakub Dawidek 2013-01-31 22:14:16 +00:00
parent 9e2677fd6d
commit a2c496ebb9
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=246171

View File

@ -779,8 +779,10 @@ kern_fcntl(struct thread *td, int fd, int cmd, intptr_t arg)
if (arg != 0) {
vp = fp->f_vnode;
error = vn_lock(vp, LK_SHARED);
if (error != 0)
goto readahead_vnlock_fail;
if (error != 0) {
fdrop(fp, td);
break;
}
bsize = fp->f_vnode->v_mount->mnt_stat.f_iosize;
VOP_UNLOCK(vp, 0);
fp->f_seqcount = (arg + bsize - 1) / bsize;
@ -788,7 +790,6 @@ kern_fcntl(struct thread *td, int fd, int cmd, intptr_t arg)
new = old = fp->f_flag;
new |= FRDAHEAD;
} while (!atomic_cmpset_rel_int(&fp->f_flag, old, new));
readahead_vnlock_fail:;
} else {
do {
new = old = fp->f_flag;