#ifdef CONFIG_CIFS_EXPERIMENTAL INIT_LIST_HEAD(&GlobalDnotifyReqList); INIT_LIST_HEAD(&GlobalDnotifyRsp_Q); #endif 
init_cifs(void){	int rc = 0;#ifdef CONFIG_PROC_FS	cifs_proc_init();#endif	INIT_LIST_HEAD(&GlobalServerList);	/* BB not implemented yet */	INIT_LIST_HEAD(&GlobalSMBSessionList);	INIT_LIST_HEAD(&GlobalTreeConnectionList);	INIT_LIST_HEAD(&GlobalOplock_Q);/* *  Initialize Global counters */	atomic_set(&sesInfoAllocCount, 0);	atomic_set(&tconInfoAllocCount, 0);	atomic_set(&tcpSesAllocCount,0);	atomic_set(&tcpSesReconnectCount, 0);	atomic_set(&tconInfoReconnectCount, 0);	atomic_set(&bufAllocCount, 0);	atomic_set(&midCount, 0);	GlobalCurrentXid = 0;	GlobalTotalActiveXid = 0;	GlobalMaxActiveXid = 0;	rwlock_init(&GlobalSMBSeslock);	spin_lock_init(&GlobalMid_Lock);	if(cifs_max_pending < 2) {		cifs_max_pending = 2;		cFYI(1,("cifs_max_pending set to min of 2"));	} else if(cifs_max_pending > 256) {		cifs_max_pending = 256;		cFYI(1,("cifs_max_pending set to max of 256"));	}	rc = cifs_init_inodecache();	if (!rc) {		rc = cifs_init_mids();		if (!rc) {			rc = cifs_init_request_bufs();			if (!rc) {				rc = register_filesystem(&cifs_fs_type);				if (!rc) {                					rc = (int)kernel_thread(cifs_oplock_thread, NULL, 						CLONE_FS | CLONE_FILES | CLONE_VM);					if(rc > 0) {						rc = (int)kernel_thread(cifs_dnotify_thread, NULL,							CLONE_FS | CLONE_FILES | CLONE_VM);						if(rc > 0)							return 0;						else							cERROR(1,("error %d create dnotify thread", rc));					} else {						cERROR(1,("error %d create oplock thread",rc));					}				}				cifs_destroy_request_bufs();			}			cifs_destroy_mids();		}		cifs_destroy_inodecache();	}#ifdef CONFIG_PROC_FS	cifs_proc_clean();#endif	return rc;}
10457	/local/tlutelli/issta_data/temp/c/2005_temp/2005/10457/4ca9c190d902caa7efb899a4c7fc8c6e6d926e95/cifsfs.c/clean/fs/cifs/cifsfs.c