fd: hide fd_modified under CAPABILITIES

It has no use without it and is now less error prone.
This commit is contained in:
mjg 2016-09-23 16:47:12 +00:00
parent c7a600eba8
commit 6a31b986a9

View File

@ -229,12 +229,14 @@ fdeget_locked(struct filedesc *fdp, int fd)
return (fde);
}
#ifdef CAPABILITIES
static __inline bool
fd_modified(struct filedesc *fdp, int fd, seq_t seq)
{
return (!seq_consistent(fd_seq(fdp->fd_files, fd), seq));
}
#endif
/* cdir/rdir/jdir manipulation functions. */
void pwd_chdir(struct thread *td, struct vnode *vp);