kernels/linux-2.4.0/fs/fat/misc.c
/*
 * fat_subdirs counts the number of sub-directories of dir. It can be run
 * on directories being created.
 */
fat_subdirs counts the number of sub-directories of dir. It can be run
on directories being created.
fat_subdirs counts the number of sub - directories of dir . It can be run on directories being created .
int fat_subdirs(struct inode *dir)
{
	int count;
	count = 0;
	if ((dir->i_ino == MSDOS_ROOT_INO) &&
	    (MSDOS_SB(dir->i_sb)->fat_bits != 32)) {
		(void) raw_scan_root(dir->i_sb,NULL,&count,NULL,NULL,NULL);
	} else {
		if ((dir->i_ino != MSDOS_ROOT_INO) &&
		    !MSDOS_I(dir)->i_start) return 0; 
		else (void) raw_scan_nonroot(dir->i_sb,MSDOS_I(dir)->i_start,
		    NULL,&count,NULL,NULL,NULL);
	}
	return count;
}
int fat_subdirs ( struct inode * dir ) { int count ; count = 0 ; if ( ( dir -> i_ino == MSDOS_ROOT_INO ) && ( MSDOS_SB ( dir -> i_sb ) -> fat_bits != 32 ) ) { ( void ) raw_scan_root ( dir -> i_sb , NULL , & count , NULL , NULL , NULL ) ; } else { if ( ( dir -> i_ino != MSDOS_ROOT_INO ) && ! MSDOS_I ( dir ) -> i_start ) return 0 ; else ( void ) raw_scan_nonroot ( dir -> i_sb , MSDOS_I ( dir ) -> i_start , NULL , & count , NULL , NULL , NULL ) ; } return count ; }
fat_subdirs counts the number of sub-directories of dir.
fat_subdirs counts the number of sub - directories of dir .
/* in mkdir */