Home
last modified time | relevance | path

Searched refs:cluster_size (Results 1 – 13 of 13) sorted by relevance

/linux-2.4.37.9/fs/fat/
Dmisc.c124 int cluster_size = MSDOS_SB(sb)->cluster_size; in fat_add_cluster() local
186 != inode->i_blocks / cluster_size / (sb->s_blocksize / 512)) { in fat_add_cluster()
189 inode->i_blocks / cluster_size / (sb->s_blocksize / 512)); in fat_add_cluster()
202 int cluster_size = MSDOS_SB(sb)->cluster_size; in fat_extend_dir() local
213 sector = MSDOS_SB(sb)->data_start + (nr - 2) * cluster_size; in fat_extend_dir()
214 last_sector = sector + cluster_size; in fat_extend_dir()
491 for (count = 0; count < sbi->cluster_size; count++) { in raw_scan_nonroot()
492 sector = (start - 2) * sbi->cluster_size in raw_scan_nonroot()
Dinode.c634 sbi->cluster_size = b->cluster_size; in fat_read_super()
635 if (!sbi->cluster_size in fat_read_super()
636 || (sbi->cluster_size & (sbi->cluster_size - 1))) { in fat_read_super()
637 printk("FAT: bogus cluster size %d\n", sbi->cluster_size); in fat_read_super()
649 sbi->cluster_bits = ffs(logical_sector_size * sbi->cluster_size) - 1; in fat_read_super()
715 sbi->clusters = (total_sectors - sbi->data_start) / sbi->cluster_size; in fat_read_super()
754 b->media, sbi->cluster_size, sbi->fats, in fat_read_super()
Dcache.c311 cluster = sector / sbi->cluster_size; in default_fat_bmap()
312 offset = sector % sbi->cluster_size; in default_fat_bmap()
316 return (cluster - 2) * sbi->cluster_size + sbi->data_start + offset; in default_fat_bmap()
Dfile.c69 if (!(iblock % MSDOS_SB(inode->i_sb)->cluster_size)) { in fat_get_block()
/linux-2.4.37.9/fs/ntfs/
Dsuper.c109 vol->cluster_size = vol->sector_size << sectors_per_cluster_bits; in ntfs_init_volume()
110 vol->cluster_size_bits = ffs(vol->cluster_size) - 1; in ntfs_init_volume()
112 vol->cluster_size); in ntfs_init_volume()
116 vol->mft_record_size = vol->cluster_size << in ntfs_init_volume()
131 vol->index_record_size = vol->cluster_size << in ntfs_init_volume()
193 tc = (8192 + 2 * vol->cluster_size - 1) / vol->cluster_size; in ntfs_init_volume()
194 if (tc * vol->cluster_size < 16 * 1024) in ntfs_init_volume()
195 tc = (16 * 1024 + vol->cluster_size - 1) / vol->cluster_size; in ntfs_init_volume()
467 cluster0 = ntfs_malloc(vol->cluster_size); in ntfs_get_volumesize()
474 io.size = vol->cluster_size; in ntfs_get_volumesize()
Dsupport.c170 to_copy = vol->cluster_size - start_offs; in ntfs_getput_clusters()
213 to_copy = vol->cluster_size; in ntfs_getput_clusters()
Dfs.c884 sf->f_bsize = vol->cluster_size; in ntfs_statfs()
1049 if (vol->cluster_size > PAGE_SIZE) { in ntfs_read_super()
1056 sb->s_blocksize = vol->cluster_size; in ntfs_read_super()
1058 if (blocksize != vol->cluster_size && in ntfs_read_super()
1065 i = vol->cluster_size; in ntfs_read_super()
1081 bh->b_data, vol->cluster_size); in ntfs_read_super()
Dattr.c300 clen = (len - attr->allocated + ino->vol->cluster_size - 1) >> in ntfs_extend_attr()
434 rounded = (rounded + ino->vol->cluster_size - 1) >> in ntfs_resize_attr()
472 newcount = (newsize + ino->vol->cluster_size - 1) >> in ntfs_resize_attr()
Dinode.c1769 bmp->allocated += (__s64)vol->cluster_size; in ntfs_alloc_mft_record()
1881 if (mft_rec_size <= vol->cluster_size) in ntfs_alloc_mft_record()
2096 bmp->allocated -= (__s64)vol->cluster_size; in ntfs_alloc_mft_record()
Ddir.c195 if (walk->newblock * vol->cluster_size >= size) { in ntfs_allocate_index_block()
/linux-2.4.37.9/include/linux/
Dmsdos_fs_sb.h33 unsigned short cluster_size; /* sectors/cluster */ member
Dntfs_fs_sb.h38 int cluster_size; member
Dmsdos_fs.h121 __u8 cluster_size; /* sectors/cluster */ member
187 #define MSDOS_CAN_BMAP(mib) (!(((mib)->cluster_size & 1) || \