kernels/linux-2.4.0/fs/nfs/inode.c
/*
 * The "read_inode" function doesn't actually do anything:
 * the real data is filled in later in nfs_fhget. Here we
 * just mark the cache times invalid, and zero out i_mode
 * (the latter makes "nfs_refresh_inode" do the right thing
 * wrt pipe inodes)
 */
The "read_inode" function doesn't actually do anything:
the real data is filled in later in nfs_fhget. Here we
just mark the cache times invalid, and zero out i_mode
(the latter makes "nfs_refresh_inode" do the right thing
wrt pipe inodes)
The " read_inode " function doesn ' t actually do anything : the real data is filled in later in nfs_fhget . Here we just mark the cache times invalid and zero out i_mode ( the latter makes " nfs_refresh_inode " do the right thing wrt pipe inodes )
static void
nfs_read_inode(struct inode * inode)
{
	inode->i_blksize = inode->i_sb->s_blocksize;
	inode->i_mode = 0;
	inode->i_rdev = 0;
	NFS_FILEID(inode) = 0;
	NFS_FSID(inode) = 0;
	INIT_LIST_HEAD(&inode->u.nfs_i.read);
	INIT_LIST_HEAD(&inode->u.nfs_i.dirty);
	INIT_LIST_HEAD(&inode->u.nfs_i.commit);
	INIT_LIST_HEAD(&inode->u.nfs_i.writeback);
	inode->u.nfs_i.nread = 0;
	inode->u.nfs_i.ndirty = 0;
	inode->u.nfs_i.ncommit = 0;
	inode->u.nfs_i.npages = 0;
	NFS_CACHEINV(inode);
	NFS_ATTRTIMEO(inode) = NFS_MINATTRTIMEO(inode);
	NFS_ATTRTIMEO_UPDATE(inode) = jiffies;
}
static void nfs_read_inode ( struct inode * inode ) { inode -> i_blksize = inode -> i_sb -> s_blocksize ; inode -> i_mode = 0 ; inode -> i_rdev = 0 ; NFS_FILEID ( inode ) = 0 ; NFS_FSID ( inode ) = 0 ; INIT_LIST_HEAD ( & inode -> u . nfs_i . read ) ; INIT_LIST_HEAD ( & inode -> u . nfs_i . dirty ) ; INIT_LIST_HEAD ( & inode -> u . nfs_i . commit ) ; INIT_LIST_HEAD ( & inode -> u . nfs_i . writeback ) ; inode -> u . nfs_i . nread = 0 ; inode -> u . nfs_i . ndirty = 0 ; inode -> u . nfs_i . ncommit = 0 ; inode -> u . nfs_i . npages = 0 ; NFS_CACHEINV ( inode ) ; NFS_ATTRTIMEO ( inode ) = NFS_MINATTRTIMEO ( inode ) ; NFS_ATTRTIMEO_UPDATE ( inode ) = jiffies ; }
The "read_inode" function doesn't actually do anything:
 the real data is filled in later in nfs_fhget.
The " read_inode " function doesn ' t actually do anything : the real data is filled in later in nfs_fhget .