svn commit: r185068 - head/sys/fs/cd9660

John Baldwin jhb at FreeBSD.org
Tue Nov 18 15:13:40 PST 2008


Author: jhb
Date: Tue Nov 18 23:13:40 2008
New Revision: 185068
URL: http://svn.freebsd.org/changeset/base/185068

Log:
  Remove unused i_flags field and IN_ACCESS flag from cd9660 in-memory
  i-nodes.  cd9660 doesn't support access times.

Modified:
  head/sys/fs/cd9660/cd9660_node.c
  head/sys/fs/cd9660/cd9660_node.h
  head/sys/fs/cd9660/cd9660_vnops.c

Modified: head/sys/fs/cd9660/cd9660_node.c
==============================================================================
--- head/sys/fs/cd9660/cd9660_node.c	Tue Nov 18 22:17:17 2008	(r185067)
+++ head/sys/fs/cd9660/cd9660_node.c	Tue Nov 18 23:13:40 2008	(r185068)
@@ -72,7 +72,6 @@ cd9660_inactive(ap)
 	if (prtactive && vrefcnt(vp) != 0)
 		vprint("cd9660_inactive: pushing active", vp);
 
-	ip->i_flag = 0;
 	/*
 	 * If we are done with the inode, reclaim it
 	 * so that it can be reused immediately.

Modified: head/sys/fs/cd9660/cd9660_node.h
==============================================================================
--- head/sys/fs/cd9660/cd9660_node.h	Tue Nov 18 22:17:17 2008	(r185067)
+++ head/sys/fs/cd9660/cd9660_node.h	Tue Nov 18 23:13:40 2008	(r185068)
@@ -58,7 +58,6 @@ typedef	struct	{
 
 struct iso_node {
 	struct	vnode *i_vnode;	/* vnode associated with this inode */
-	u_long	i_flag;		/* see below */
 	ino_t	i_number;	/* the identity of the inode */
 				/* we use the actual starting block of the file */
 	struct	iso_mnt *i_mnt;	/* filesystem associated with this inode */
@@ -78,9 +77,6 @@ struct iso_node {
 #define	i_forw		i_chain[0]
 #define	i_back		i_chain[1]
 
-/* flags */
-#define	IN_ACCESS	0x0020		/* inode access time to be updated */
-
 #define VTOI(vp) ((struct iso_node *)(vp)->v_data)
 #define ITOV(ip) ((ip)->i_vnode)
 

Modified: head/sys/fs/cd9660/cd9660_vnops.c
==============================================================================
--- head/sys/fs/cd9660/cd9660_vnops.c	Tue Nov 18 22:17:17 2008	(r185067)
+++ head/sys/fs/cd9660/cd9660_vnops.c	Tue Nov 18 23:13:40 2008	(r185068)
@@ -295,7 +295,6 @@ cd9660_read(ap)
 		return (0);
 	if (uio->uio_offset < 0)
 		return (EINVAL);
-	ip->i_flag |= IN_ACCESS;
 	imp = ip->i_mnt;
 	do {
 		lbn = lblkno(imp, uio->uio_offset);


More information about the svn-src-all mailing list