Home
last modified time | relevance | path

Searched refs:s_blocksize (Results 1 – 25 of 118) sorted by relevance

12345

/linux-2.4.37.9/fs/reiserfs/
Dresize.c60 (SB_BMAP_NR(s) - 1) * s->s_blocksize * 8; in reiserfs_resize()
63 bmap_nr_new = block_count_new / ( s->s_blocksize * 8 ); in reiserfs_resize()
64 block_r_new = block_count_new - bmap_nr_new * s->s_blocksize * 8; in reiserfs_resize()
68 block_r_new = s->s_blocksize * 8; in reiserfs_resize()
115 bitmap[i].bh = sb_getblk(s, i * s->s_blocksize * 8); in reiserfs_resize()
124 bitmap[i].free_count = s->s_blocksize * 8 - 1; in reiserfs_resize()
137 for (i = block_r; i < s->s_blocksize * 8; i++) in reiserfs_resize()
140 SB_AP_BITMAP(s)[bmap_nr - 1].free_count += s->s_blocksize * 8 - block_r; in reiserfs_resize()
146 for (i = block_r_new; i < s->s_blocksize * 8; i++) in reiserfs_resize()
151 SB_AP_BITMAP(s)[bmap_nr_new - 1].free_count -= s->s_blocksize * 8 - block_r_new; in reiserfs_resize()
Dsuper.c257 set_cpu_key_k_offset (&key, 1 + inode->i_sb->s_blocksize); in add_save_link()
261 make_le_item_head (&ih, &key, key.version, 1 + inode->i_sb->s_blocksize, TYPE_DIRECT, in add_save_link()
320 1 + inode->i_sb->s_blocksize); in remove_save_link()
772 while ((char *)cur < (bi->bh->b_data + sb->s_blocksize)) { in load_bitmap_info_data()
811 for (i = 0, bmp = REISERFS_DISK_OFFSET_IN_BYTES / s->s_blocksize + 1; in read_bitmaps()
812 i < SB_BMAP_NR(s); i++, bmp = s->s_blocksize * 8 * i) { in read_bitmaps()
838 int bmp1 = (REISERFS_OLD_DISK_OFFSET_IN_BYTES / s->s_blocksize) + 1; /* first of bitmap blocks */ in read_old_bitmaps()
848 SB_AP_BITMAP (s)[i].bh = reiserfs_bread (s, bmp1 + i, s->s_blocksize); in read_old_bitmaps()
864 buf = SB_AP_BITMAP (s)[i / (s->s_blocksize * 8)].bh->b_data; in check_bitmap()
865 if (!reiserfs_test_le_bit (i % (s->s_blocksize * 8), buf)) in check_bitmap()
[all …]
Dbuffer2.c65 return bread (SB_JOURNAL_DEV(s), block, s->s_blocksize ); in journal_bread()
70 return getblk (SB_JOURNAL_DEV(s), block, s->s_blocksize ); in journal_getblk()
75 return get_hash_table (SB_JOURNAL_DEV(s), block, s->s_blocksize ); in journal_get_hash_table()
Dtail_conversion.c40 n_blk_size = sb->s_blocksize; in direct2indirect()
204 unsigned long n_block_size = p_s_sb->s_blocksize; in indirect2direct()
223 pos = le_ih_k_offset (&s_ih) - 1 + (ih_item_len(&s_ih) / UNFM_P_SIZE - 1) * p_s_sb->s_blocksize; in indirect2direct()
240 (ih_item_len(&s_ih) / UNFM_P_SIZE - 1) * p_s_sb->s_blocksize; in indirect2direct()
288 p_s_inode->i_blocks += (p_s_sb->s_blocksize / 512); in indirect2direct()
/linux-2.4.37.9/fs/udf/
Dballoc.c173 bit = block % (sb->s_blocksize << 3); in udf_bitmap_free_blocks()
178 if (bit + count > (sb->s_blocksize << 3)) in udf_bitmap_free_blocks()
180 overflow = bit + count - (sb->s_blocksize << 3); in udf_bitmap_free_blocks()
241 (sizeof(struct spaceBitmapDesc) << 3) + (sb->s_blocksize * 8) - 1) / (sb->s_blocksize * 8); in udf_bitmap_prealloc_blocks()
251 bit = block % (sb->s_blocksize << 3); in udf_bitmap_prealloc_blocks()
253 while (bit < (sb->s_blocksize << 3) && block_count > 0) in udf_bitmap_prealloc_blocks()
311 ptr = memscan((char *)bh->b_data + group_start, 0xFF, sb->s_blocksize - group_start); in udf_bitmap_new_block()
313 if ((ptr - ((char *)bh->b_data)) < sb->s_blocksize) in udf_bitmap_new_block()
315 bit = block % (sb->s_blocksize << 3); in udf_bitmap_new_block()
325 ptr = memscan((char *)bh->b_data + (bit >> 3), 0xFF, sb->s_blocksize - ((bit + 7) >> 3)); in udf_bitmap_new_block()
[all …]
Dtruncate.c39 int last_block = (elen + inode->i_sb->s_blocksize - 1) >> inode->i_sb->s_blocksize_bits; in extent_trunc()
40 int first_block = (nelen + inode->i_sb->s_blocksize - 1) >> inode->i_sb->s_blocksize_bits; in extent_trunc()
85 offset += (inode->i_size & (inode->i_sb->s_blocksize - 1)); in udf_truncate_extents()
141 lelen = (elen + inode->i_sb->s_blocksize - 1) >> in udf_truncate_extents()
211 ((elen + offset + inode->i_sb->s_blocksize - 1) & in udf_truncate_extents()
212 ~(inode->i_sb->s_blocksize - 1)); in udf_truncate_extents()
218 if (elen & (inode->i_sb->s_blocksize - 1)) in udf_truncate_extents()
222 ((elen + inode->i_sb->s_blocksize - 1) & in udf_truncate_extents()
223 ~(inode->i_sb->s_blocksize - 1)); in udf_truncate_extents()
Ddirectory.c44 if (*offset == dir->i_sb->s_blocksize) in udf_filead_read()
53 else if (*offset > dir->i_sb->s_blocksize) in udf_filead_read()
57 remainder = dir->i_sb->s_blocksize - loffset; in udf_filead_read()
87 if (fibh->eoffset == dir->i_sb->s_blocksize) in udf_fileident_read()
139 fi = udf_get_fileident(fibh->sbh->b_data, dir->i_sb->s_blocksize, in udf_fileident_read()
147 if (fibh->eoffset <= dir->i_sb->s_blocksize) in udf_fileident_read()
151 else if (fibh->eoffset > dir->i_sb->s_blocksize) in udf_fileident_read()
170 fibh->soffset -= dir->i_sb->s_blocksize; in udf_fileident_read()
171 fibh->eoffset -= dir->i_sb->s_blocksize; in udf_fileident_read()
Dinode.c258 memset(dbh->b_data, 0x00, inode->i_sb->s_blocksize); in udf_expand_dir_adinicb()
263 sfibh.soffset = sfibh.eoffset = (f_pos & ((inode->i_sb->s_blocksize - 1) >> 2)) << 2; in udf_expand_dir_adinicb()
386 memset(bh->b_data, 0x00, inode->i_sb->s_blocksize); in udf_getblk()
452 ((elen + inode->i_sb->s_blocksize - 1) >> in inode_getblk()
466 if (elen & (inode->i_sb->s_blocksize - 1)) in inode_getblk()
469 ((elen + inode->i_sb->s_blocksize - 1) & in inode_getblk()
470 ~(inode->i_sb->s_blocksize - 1)); in inode_getblk()
484 if (laarr[c].extLength & (inode->i_sb->s_blocksize - 1)) in inode_getblk()
489 inode->i_sb->s_blocksize - 1) & in inode_getblk()
490 ~(inode->i_sb->s_blocksize - 1)); in inode_getblk()
[all …]
Dnamei.c163 fibh->soffset = fibh->eoffset = (f_pos & ((dir->i_sb->s_blocksize - 1) >> 2)) << 2; in udf_find_entry()
390 fibh->soffset = fibh->eoffset = (f_pos & ((dir->i_sb->s_blocksize - 1) >> 2)) << 2; in udf_add_entry()
496 fibh->soffset = fibh->eoffset = sb->s_blocksize; in udf_add_entry()
503 sb->s_blocksize - fibh->eoffset < nfidlen) in udf_add_entry()
518 elen = dir->i_sb->s_blocksize; in udf_add_entry()
526 if (sb->s_blocksize - fibh->eoffset >= nfidlen) in udf_add_entry()
546 fibh->soffset = fibh->eoffset - sb->s_blocksize; in udf_add_entry()
547 fibh->eoffset += nfidlen - sb->s_blocksize; in udf_add_entry()
582 (fibh->sbh->b_data + sb->s_blocksize + fibh->soffset); in udf_add_entry()
651 cfi.icb.extLength = cpu_to_le32(inode->i_sb->s_blocksize); in udf_create()
[all …]
Dsuper.c362 sb->s_blocksize = bsize; in udf_set_blocksize()
363 if (get_hardsect_size(sb->s_dev) > sb->s_blocksize) in udf_set_blocksize()
364 sb->s_blocksize = get_hardsect_size(sb->s_dev); in udf_set_blocksize()
367 switch (sb->s_blocksize) in udf_set_blocksize()
376 udf_debug("Bad block size (%ld)\n", sb->s_blocksize); in udf_set_blocksize()
377 printk(KERN_ERR "udf: bad block size (%ld)\n", sb->s_blocksize); in udf_set_blocksize()
383 set_blocksize(sb->s_dev, sb->s_blocksize); in udf_set_blocksize()
384 return sb->s_blocksize; in udf_set_blocksize()
399 if (sb->s_blocksize & 511) in udf_vrs()
402 if (sb->s_blocksize < sizeof(struct volStructDesc)) in udf_vrs()
[all …]
/linux-2.4.37.9/fs/ext3/
Ddir.c52 else if (((char *) de - bh->b_data) + rlen > dir->i_sb->s_blocksize) in ext3_check_dir_entry()
85 offset = filp->f_pos & (sb->s_blocksize - 1); in ext3_readdir()
97 filp->f_pos += sb->s_blocksize - offset; in ext3_readdir()
127 for (i = 0; i < sb->s_blocksize && i < offset; ) { in ext3_readdir()
142 filp->f_pos = (filp->f_pos & ~(sb->s_blocksize - 1)) in ext3_readdir()
148 && offset < sb->s_blocksize) { in ext3_readdir()
155 (sb->s_blocksize - 1)) + 1; in ext3_readdir()
/linux-2.4.37.9/fs/adfs/
Dsuper.c119 for (i = sb->s_blocksize - 4; i; i -= 4) { in adfs_calczonecheck()
225 buf->f_bsize = sb->s_blocksize; in adfs_statfs()
322 sb->s_blocksize = BLOCK_SIZE; in adfs_read_super()
351 sb->s_blocksize = 1 << sb->s_blocksize_bits; in adfs_read_super()
352 if (sb->s_blocksize != BLOCK_SIZE && in adfs_read_super()
353 (sb->s_blocksize == 512 || sb->s_blocksize == 1024 || in adfs_read_super()
354 sb->s_blocksize == 2048 || sb->s_blocksize == 4096)) { in adfs_read_super()
357 set_blocksize(dev, sb->s_blocksize); in adfs_read_super()
358 bh = sb_bread(sb, ADFS_DISCRECORD / sb->s_blocksize); in adfs_read_super()
364 b_data = bh->b_data + (ADFS_DISCRECORD % sb->s_blocksize); in adfs_read_super()
[all …]
Ddir_f.c274 offset = pos & (sb->s_blocksize - 1); in __adfs_dir_get()
275 thissize = sb->s_blocksize - offset; in __adfs_dir_get()
304 offset = pos & (sb->s_blocksize - 1); in __adfs_dir_put()
305 thissize = sb->s_blocksize - offset; in __adfs_dir_put()
416 dir->bh[dir->nr_buffers - 1]->b_data[sb->s_blocksize - 6] += 1; in adfs_f_update()
422 dir->bh[dir->nr_buffers - 1]->b_data[sb->s_blocksize - 1] = ret; in adfs_f_update()
Ddir_fplus.c69 t = (struct adfs_bigdirtail *)(dir->bh[size - 1]->b_data + (sb->s_blocksize - 8)); in adfs_fplus_read()
107 offset &= sb->s_blocksize - 1; in dir_memcpy()
109 partial = sb->s_blocksize - offset; in dir_memcpy()
/linux-2.4.37.9/fs/fat/
Dcache.c73 (sb->s_blocksize - 1)) >> 2]); in default_fat_access()
82 (sb->s_blocksize - 1)) >> 1]); in default_fat_access()
85 p_first = &((__u8 *)bh->b_data)[first & (sb->s_blocksize - 1)]; in default_fat_access()
86 p_last = &((__u8 *)bh2->b_data)[(first + 1) & (sb->s_blocksize - 1)]; in default_fat_access()
93 ((__u32 *)bh->b_data)[(first & (sb->s_blocksize - 1)) >> 2] in default_fat_access()
96 ((__u16 *)bh->b_data)[(first & (sb->s_blocksize - 1)) >> 1] in default_fat_access()
120 memcpy(c_bh2->b_data, bh2->b_data, sb->s_blocksize); in default_fat_access()
124 memcpy(c_bh->b_data, bh->b_data, sb->s_blocksize); in default_fat_access()
306 last_block = (MSDOS_I(inode)->mmu_private + (sb->s_blocksize - 1)) in default_fat_bmap()
Dmisc.c186 != 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()
225 memset(bh->b_data, 0, sb->s_blocksize); in fat_extend_dir()
235 if (inode->i_size & (sb->s_blocksize - 1)) { in fat_extend_dir()
237 inode->i_size = (inode->i_size + sb->s_blocksize) in fat_extend_dir()
238 & ~(sb->s_blocksize - 1); in fat_extend_dir()
345 offset &= sb->s_blocksize - 1; in fat__get_entry()
/linux-2.4.37.9/fs/ufs/
Ddir.c72 offset = filp->f_pos & (sb->s_blocksize - 1); in ufs_readdir()
82 filp->f_pos += sb->s_blocksize - offset; in ufs_readdir()
92 for (i = 0; i < sb->s_blocksize && i < offset; ) { in ufs_readdir()
106 filp->f_pos = (filp->f_pos & ~(sb->s_blocksize - 1)) in ufs_readdir()
112 && offset < sb->s_blocksize) { in ufs_readdir()
117 (sb->s_blocksize - 1)) + in ufs_readdir()
118 sb->s_blocksize; in ufs_readdir()
127 (sb->s_blocksize - 1)) + in ufs_readdir()
231 offset += sb->s_blocksize; in ufs_find_entry()
243 dlimit = bh->b_data + sb->s_blocksize; in ufs_find_entry()
[all …]
/linux-2.4.37.9/fs/freevxfs/
Dvxfs_olt.c61 if (sbp->s_blocksize % bsize) in vxfs_oblock()
63 return (block * (sbp->s_blocksize / bsize)); in vxfs_oblock()
109 eaddr = (char *)bp->b_data + (infp->vsi_oltsize * sbp->s_blocksize); in vxfs_read_olt()
Dvxfs_lookup.c50 #define VXFS_BLOCK_PER_PAGE(sbp) ((PAGE_CACHE_SIZE / (sbp)->s_blocksize))
74 u_long bsize = ip->i_sb->s_blocksize; in dir_blocks()
117 u_long bsize = ip->i_sb->s_blocksize; in vxfs_find_entry()
242 u_long bsize = sbp->s_blocksize; in vxfs_readdir()
/linux-2.4.37.9/fs/affs/
Dbitmap.c212 enddata = (u32 *)((u8 *)bh->b_data + sb->s_blocksize); in affs_alloc_block()
291 AFFS_SB->s_bmap_bits = sb->s_blocksize * 8 - 32; in affs_init_bitmap()
303 blk = sb->s_blocksize / 4 - 49; in affs_init_bitmap()
323 bm->bm_free = affs_count_free_bits(sb->s_blocksize - 4, bh->b_data + 4); in affs_init_bitmap()
340 end = sb->s_blocksize / 4 - 1; in affs_init_bitmap()
365 while (++offset < sb->s_blocksize / 4) in affs_init_bitmap()
373 bm->bm_free = affs_count_free_bits(sb->s_blocksize - 4, bh->b_data + 4); in affs_init_bitmap()
/linux-2.4.37.9/fs/ext2/
Dsuper.c319 EXT2FS_VERSION, EXT2FS_DATE, sb->s_blocksize, in ext2_setup_super()
458 sb->s_blocksize = blocksize; in ext2_read_super()
514 sb->s_blocksize = 1 << sb->s_blocksize_bits; in ext2_read_super()
519 if (sb->s_blocksize != blocksize) { in ext2_read_super()
520 blocksize = sb->s_blocksize; in ext2_read_super()
562 sb->u.ext2_sb.s_frags_per_block = sb->s_blocksize / in ext2_read_super()
569 sb->u.ext2_sb.s_inodes_per_block = sb->s_blocksize / in ext2_read_super()
575 sb->u.ext2_sb.s_desc_per_block = sb->s_blocksize / in ext2_read_super()
595 if (sb->s_blocksize != bh->b_size) { in ext2_read_super()
602 if (sb->s_blocksize != sb->u.ext2_sb.s_frag_size) { in ext2_read_super()
[all …]
/linux-2.4.37.9/fs/jfs/
Dxattr.c252 nblocks = (size + (sb->s_blocksize - 1)) >> sb->s_blocksize_bits; in ea_write()
272 ((((nb + sb->s_blocksize - 1)) >> sb->s_blocksize_bits)) in ea_write()
409 ((((nb + sb->s_blocksize - 1)) >> sb->s_blocksize_bits)) in ea_read()
488 current_blocks = (ea_size + sb->s_blocksize - 1) >> in ea_get()
503 ea_buf->max_size = (size + sb->s_blocksize - 1) & in ea_get()
504 ~(sb->s_blocksize - 1); in ea_get()
516 blocks_needed = (min_size + sb->s_blocksize - 1) >> in ea_get()
540 ea_buf->max_size = (min_size + sb->s_blocksize - 1) & in ea_get()
541 ~(sb->s_blocksize - 1); in ea_get()
558 ea_buf->max_size = (ea_size + sb->s_blocksize - 1) & in ea_get()
[all …]
/linux-2.4.37.9/include/linux/
Damigaffs.h27 sb->s_blocksize = size; in affs_set_blocksize()
53 memset(bh->b_data, 0 , sb->s_blocksize); in affs_getzeroblk()
161 #define AFFS_TAIL(sb, bh) ((struct affs_tail *)((bh)->b_data+(sb)->s_blocksize-sizeof(struct affs_t…
163 #define AFFS_ROOT_TAIL(sb, bh) ((struct affs_root_tail *)((bh)->b_data+(sb)->s_blocksize-sizeof(str…
/linux-2.4.37.9/fs/hfsplus/
Dextents.c108 HFSPLUS_I(inode).mmu_private += sb->s_blocksize; in hfsplus_get_block()
186 size = sb->s_blocksize / sizeof(unsigned long); in hfsplus_free_blocks()
188 off = (start & (sb->s_blocksize * 8 - 1)) / 8 / sizeof(unsigned long); in hfsplus_free_blocks()
320 off = (HFSPLUS_SB(sb).next_alloc & (sb->s_blocksize * 8 - 1)) / sizeof(unsigned long) / 8; in hfsplus_extend_file()
328 (sb->s_blocksize * 8 - 1)) / in hfsplus_extend_file()
331 size = sb->s_blocksize / sizeof(unsigned long); in hfsplus_extend_file()
473 blk_cnt = (inode->i_size + sb->s_blocksize - 1) >> sb->s_blocksize_bits; in hfsplus_truncate()
/linux-2.4.37.9/fs/sysv/
Dsuper.c318 sb->s_blocksize = bsize; in complete_read_super()
322 found, sb->s_blocksize, bdevname(sb->s_dev)); in complete_read_super()
365 sb->s_blocksize = BLOCK_SIZE; in sysv_read_super()
384 sb->s_blocksize = 512; in sysv_read_super()
395 sb->s_blocksize = 2048; in sysv_read_super()
447 sb->s_blocksize = 512; in v7_read_super()

12345