Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 25 Oct 2011 21:38:29 GMT
From:      John Baldwin <jhb@FreeBSD.org>
To:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   PERFORCE change 200719 for review
Message-ID:  <201110252138.p9PLcT2E018958@skunkworks.freebsd.org>

next in thread | raw e-mail | index | archive | help
http://p4web.freebsd.org/@@200719?ac=10

Change 200719 by jhb@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. */
 	/*



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201110252138.p9PLcT2E018958>