VFS: Remove VV_READLINK flag
since its only reason to exist is removed. Reviewed by: markj Tested by: pho Sponsored by: The FreeBSD Foundation MFC after: 1 week Differential revision: https://reviews.freebsd.org/D40700
This commit is contained in:
parent
3bffa22623
commit
4a402dfe0b
@ -4284,11 +4284,9 @@ vn_printf(struct vnode *vp, const char *fmt, ...)
|
||||
strlcat(buf, "|VV_MD", sizeof(buf));
|
||||
if (vp->v_vflag & VV_FORCEINSMQ)
|
||||
strlcat(buf, "|VV_FORCEINSMQ", sizeof(buf));
|
||||
if (vp->v_vflag & VV_READLINK)
|
||||
strlcat(buf, "|VV_READLINK", sizeof(buf));
|
||||
flags = vp->v_vflag & ~(VV_ROOT | VV_ISTTY | VV_NOSYNC | VV_ETERNALDEV |
|
||||
VV_CACHEDLABEL | VV_VMSIZEVNLOCK | VV_COPYONWRITE | VV_SYSTEM |
|
||||
VV_PROCDEP | VV_DELETED | VV_MD | VV_FORCEINSMQ | VV_READLINK);
|
||||
VV_PROCDEP | VV_DELETED | VV_MD | VV_FORCEINSMQ);
|
||||
if (flags != 0) {
|
||||
snprintf(buf2, sizeof(buf2), "|VV(0x%lx)", flags);
|
||||
strlcat(buf, buf2, sizeof(buf));
|
||||
|
@ -2677,7 +2677,7 @@ kern_readlink_vp(struct vnode *vp, char *buf, enum uio_seg bufseg, size_t count,
|
||||
if (error != 0)
|
||||
return (error);
|
||||
#endif
|
||||
if (vp->v_type != VLNK && (vp->v_vflag & VV_READLINK) == 0)
|
||||
if (vp->v_type != VLNK)
|
||||
return (EINVAL);
|
||||
|
||||
aiov.iov_base = buf;
|
||||
|
@ -251,7 +251,7 @@ _Static_assert(sizeof(struct vnode) <= 448, "vnode size crosses 448 bytes");
|
||||
#define VV_DELETED 0x0400 /* should be removed */
|
||||
#define VV_MD 0x0800 /* vnode backs the md device */
|
||||
#define VV_FORCEINSMQ 0x1000 /* force the insmntque to succeed */
|
||||
#define VV_READLINK 0x2000 /* fdescfs linux vnode */
|
||||
#define VV_UNUSED01 0x2000 /* was: fdescfs linux vnode */
|
||||
#define VV_UNREF 0x4000 /* vunref, do not drop lock in inactive() */
|
||||
#define VV_CROSSLOCK 0x8000 /* vnode lock is shared w/ root mounted here */
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user