kernels/linux-2.4.0/fs/smbfs/dir.c
/*
 * Note: in order to allow the smbmount process to open the
 * mount point, we don't revalidate if conn_pid is NULL.
 */
in order to allow the smbmount process to open the
mount point, we don't revalidate if conn_pid is NULL.
in order to allow the smbmount process to open the mount point we don ' t revalidate if conn_pid is NULL .
static int
smb_dir_open(struct inode *dir, struct file *file)
{
	struct dentry *dentry = file->f_dentry;
	struct smb_sb_info *server;
	int error = 0;
	VERBOSE("(%s/%s)\n", dentry->d_parent->d_name.name,
		file->f_dentry->d_name.name);
	lock_kernel();
	server = server_from_dentry(dentry);
	if (server->opt.protocol < SMB_PROTOCOL_LANMAN2)
	{
		unsigned long age = jiffies - dir->u.smbfs_i.oldmtime;
		if (age > 2*HZ)
			smb_invalid_dir_cache(dir);
	}
	if (server->conn_pid)
		error = smb_revalidate_inode(dentry);
	unlock_kernel();
	return error;
}
static int smb_dir_open ( struct inode * dir , struct file * file ) { struct dentry * dentry = file -> f_dentry ; struct smb_sb_info * server ; int error = 0 ; VERBOSE ( " \n " , dentry -> d_parent -> d_name . name , file -> f_dentry -> d_name . name ) ; lock_kernel ( ) ; server = server_from_dentry ( dentry ) ; if ( server -> opt . protocol < SMB_PROTOCOL_LANMAN2 ) { unsigned long age = jiffies - dir -> u . smbfs_i . oldmtime ; if ( age > 2 * HZ ) smb_invalid_dir_cache ( dir ) ; } if ( server -> conn_pid ) error = smb_revalidate_inode ( dentry ) ; unlock_kernel ( ) ; return error ; }
Note: in order to allow the smbmount process to open the
 mount point, we don't revalidate if conn_pid is NULL.
Note : in order to allow the smbmount process to open the mount point we don ' t revalidate if conn_pid is NULL .
/*
	 * Directory timestamps in the core protocol aren't updated
	 * when a file is added, so we give them a very short TTL.
	 */