inode->i_fop	= &afs_file_file_operations; 
inode->i_fop	= &generic_ro_fops; 
static int afs_inode_map_status(struct afs_vnode *vnode){	struct inode *inode = AFS_VNODE_TO_I(vnode);	_debug("FS: ft=%d lk=%d sz=%Zu ver=%Lu mod=%hu",	       vnode->status.type,	       vnode->status.nlink,	       vnode->status.size,	       vnode->status.version,	       vnode->status.mode);	switch (vnode->status.type) {	case AFS_FTYPE_FILE:		inode->i_mode	= S_IFREG | vnode->status.mode;		inode->i_op	= &afs_file_inode_operations;		inode->i_fop	= &afs_file_file_operations;		break;	case AFS_FTYPE_DIR:		inode->i_mode	= S_IFDIR | vnode->status.mode;		inode->i_op	= &afs_dir_inode_operations;		inode->i_fop	= &afs_dir_file_operations;		break;	case AFS_FTYPE_SYMLINK:		inode->i_mode	= S_IFLNK | vnode->status.mode;		inode->i_op	= &page_symlink_inode_operations;		break;	default:		printk("kAFS: AFS vnode with undefined type\n");		return -EBADMSG;	}	inode->i_nlink		= vnode->status.nlink;	inode->i_uid		= vnode->status.owner;	inode->i_gid		= 0;	inode->i_size		= vnode->status.size;	inode->i_ctime.tv_sec	= vnode->status.mtime_server;	inode->i_ctime.tv_nsec	= 0;	inode->i_atime		= inode->i_mtime = inode->i_ctime;	inode->i_blksize	= PAGE_CACHE_SIZE;	inode->i_blocks		= 0;	inode->i_version	= vnode->fid.unique;	inode->i_mapping->a_ops	= &afs_fs_aops;	/* check to see whether a symbolic link is really a mountpoint */	if (vnode->status.type == AFS_FTYPE_SYMLINK) {		afs_mntpt_check_symlink(vnode);		if (vnode->flags & AFS_VNODE_MOUNTPOINT) {			inode->i_mode	= S_IFDIR | vnode->status.mode;			inode->i_op	= &afs_mntpt_inode_operations;			inode->i_fop	= &afs_mntpt_file_operations;		}	}	return 0;} /* end afs_inode_map_status() */
4520	/local/tlutelli/issta_data/temp/c/2005_temp/2005/4520/a463ddd343dacf5f1badae514ed2c5135ec0c3a9/inode.c/buggy/fs/afs/inode.c