PERFORCE change 200719 for review

John Baldwin jhb at FreeBSD.org
Tue Oct 25 21:38:30 UTC 2011


http://p4web.freebsd.org/@@200719?ac=10

Change 200719 by jhb at jhb_jhbbsd on 2011/10/25 21:37:36

	Reuse part of f_vnread_flags to hold f_advice.

Affected files ...

.. //depot/projects/fadvise/sys/sys/file.h#4 edit

Differences ...

==== //depot/projects/fadvise/sys/sys/file.h#4 (text+ko) ====

@@ -128,7 +128,8 @@
 	struct ucred	*f_cred;	/* associated credentials. */
 	struct vnode 	*f_vnode;	/* NULL or applicable vnode */
 	short		f_type;		/* descriptor type */
-	short		f_vnread_flags; /* (f) Sleep lock for f_offset */
+	u_char		f_vnread_flags; /* (f) Sleep lock for f_offset */
+	u_char		f_advice;	/* (f) FADV_* type. */
 	volatile u_int	f_flag;		/* see fcntl.h */
 	volatile u_int 	f_count;	/* reference count */
 	/*
@@ -137,7 +138,6 @@
 	int		f_seqcount;	/* Count of sequential accesses. */
 	off_t		f_nextoff;	/* next expected read/write offset. */
 	struct cdev_privdata *f_cdevpriv; /* (d) Private data for the cdev. */
-	int		f_advice;	/* (f) FADV_* type. */
 	off_t		f_advstart;	/* (f) fadvice region start. */
 	off_t		f_advend;	/* (f) fadvice region end. */
 	/*


More information about the p4-projects mailing list