Home
last modified time | relevance | path

Searched refs:e2fs_bsize (Results 1 – 10 of 10) sorted by relevance

/freebsd/sys/fs/ext2fs/
H A Dext2_balloc.c66 blks = howmany(size, fs->e2fs_bsize); in ext2_ext_balloc()
73 bp = getblk(vp, lbn, fs->e2fs_bsize, 0, 0, 0); in ext2_ext_balloc()
77 error = bread(vp, lbn, fs->e2fs_bsize, NOCRED, &bp); in ext2_ext_balloc()
139 error = bread(vp, lbn, fs->e2fs_bsize, NOCRED, &bp); in ext2_balloc()
144 if (ip->i_size >= (lbn + 1) * fs->e2fs_bsize) { in ext2_balloc()
152 fs->e2fs_bsize, cred, &newb); in ext2_balloc()
161 bp = getblk(vp, lbn, fs->e2fs_bsize, 0, 0, 0); in ext2_balloc()
190 if ((error = ext2_alloc(ip, lbn, pref, fs->e2fs_bsize, cred, in ext2_balloc()
196 bp = getblk(vp, indirs[1].in_lbn, fs->e2fs_bsize, 0, 0, 0); in ext2_balloc()
204 ext2_blkfree(ip, nb, fs->e2fs_bsize); in ext2_balloc()
[all …]
H A Dext2_inode.c88 (int)fs->e2fs_bsize, NOCRED, &bp)) != 0) { in ext2_update()
142 nblocks = btodb(fs->e2fs_bsize); in ext2_indirtrunc()
152 bp = getblk(vp, lbn, (int)fs->e2fs_bsize, 0, 0, 0); in ext2_indirtrunc()
169 copy = malloc(fs->e2fs_bsize, M_TEMP, M_WAITOK); in ext2_indirtrunc()
170 bcopy((caddr_t)bap, (caddr_t)copy, (u_int)fs->e2fs_bsize); in ext2_indirtrunc()
198 ext2_blkfree(ip, nb, fs->e2fs_bsize); in ext2_indirtrunc()
271 if (bp->b_bufsize == fs->e2fs_bsize) in ext2_ind_truncate()
303 if (bp->b_bufsize == fs->e2fs_bsize) in ext2_ind_truncate()
318 lastblock = lblkno(fs, length + fs->e2fs_bsize - 1) - 1; in ext2_ind_truncate()
322 nblocks = btodb(fs->e2fs_bsize); in ext2_ind_truncate()
[all …]
H A Dext2_extattr.c206 (int)fs->e2fs_bsize, NOCRED, &bp)) != 0) { in ext2_extattr_inode_list()
279 fs->e2fs_bsize, NOCRED, &bp); in ext2_extattr_block_list()
347 (int)fs->e2fs_bsize, NOCRED, &bp)) != 0) { in ext2_extattr_inode_get()
421 fs->e2fs_bsize, NOCRED, &bp); in ext2_extattr_block_get()
552 (int)fs->e2fs_bsize, NOCRED, &bp)) != 0) { in ext2_extattr_inode_delete()
648 cbp = getblk(ip->i_devvp, fsbtodb(fs, facl), fs->e2fs_bsize, 0, 0, 0); in ext2_extattr_block_clone()
650 ext2_blkfree(ip, facl, fs->e2fs_bsize); in ext2_extattr_block_clone()
654 memcpy(cbp->b_data, sbp->b_data, fs->e2fs_bsize); in ext2_extattr_block_clone()
683 fs->e2fs_bsize, NOCRED, &bp); in ext2_extattr_block_delete()
725 ip->i_blocks -= btodb(fs->e2fs_bsize); in ext2_extattr_block_delete()
[all …]
H A Dext2_alloc.c113 if ((u_int)size > fs->e2fs_bsize || blkoff(fs, size) != 0) { in ext2_alloc()
115 (long unsigned int)fs->e2fs_bsize, size, fs->e2fs_fsmnt); in ext2_alloc()
121 if (size == fs->e2fs_bsize && fs->e2fs_fbcount == 0) in ext2_alloc()
132 bno = (daddr_t)ext2_hashalloc(ip, cg, bpref, fs->e2fs_bsize, in ext2_alloc()
139 ip->i_blocks += btodb(fs->e2fs_bsize); in ext2_alloc()
162 blk = ext2_hashalloc(ip, ino_to_cg(fs, ip->i_number), 0, fs->e2fs_bsize, in ext2_alloc_meta()
266 if (bread(vp, idp->in_lbn, (int)fs->e2fs_bsize, NOCRED, &sbp)) { in ext2_reallocblks()
285 if (bread(vp, idp->in_lbn, (int)fs->e2fs_bsize, NOCRED, &ebp)) in ext2_reallocblks()
359 fs->e2fs_bsize); in ext2_reallocblks()
651 (cgsize - avgbfree * fs->e2fs_bsize) / avgndir : 0; in ext2_dirpref()
[all …]
H A Dext2fs.h161 uint32_t e2fs_bsize; /* Block size */ member
404 #define EXT2_BLOCK_SIZE(s) ((s)->e2fs_bsize)
422 EXT2F_INCOMPAT_64BIT) ? ((s)->e2fs_bsize / sizeof(struct ext2_gd)) : \
423 ((s)->e2fs_bsize / E2FS_REV0_GD_SIZE))
H A Dext2_extents.c108 fsbtodb(fs, blk), (int)fs->e2fs_bsize, NOCRED, &bp)) != 0) { in ext4_ext_walk_index()
307 size = (fs->e2fs_bsize - sizeof(struct ext4_extent_header)) / in ext4_ext_space_block()
333 size = (fs->e2fs_bsize - sizeof(struct ext4_extent_header)) / in ext4_ext_space_block_idx()
642 ip->i_e2fs->e2fs_bsize, NOCRED, &bp); in ext4_ext_find_extent()
701 size = (fs->e2fs_bsize - sizeof(struct ext4_extent_header)) / in ext4_ext_space_block_index()
829 fs->e2fs_bsize, 0, 0, 0); in ext4_ext_dirty()
894 ip->i_blocks += btodb(ip->i_e2fs->e2fs_bsize); in ext4_ext_alloc_meta()
912 ext2_blkfree(ip, blk + i, fs->e2fs_bsize); in ext4_ext_blkfree()
915 ip->i_blocks -= (btodb(fs->e2fs_bsize)*blocksreleased); in ext4_ext_blkfree()
967 bp = getblk(ip->i_devvp, fsbtodb(fs, newblk), fs->e2fs_bsize, in ext4_ext_split()
[all...]
H A Dext2_htree.c143 ip->i_e2fs->e2fs_bsize, NULL, &bp) != 0) in ext2_htree_check_next()
223 space = ip->i_e2fs->e2fs_bsize - EXT2_DIR_REC_LEN(1) - in ext2_htree_root_limit()
239 space = fs->e2fs_bsize - EXT2_DIR_REC_LEN(0); in ext2_htree_node_limit()
334 ext2_htree_get_block(found) * m_fs->e2fs_bsize, in ext2_htree_find_leaf()
369 bsize = m_fs->e2fs_bsize; in ext2_htree_lookup()
686 blksize = m_fs->e2fs_bsize; in ext2_htree_create_index()
803 blksize = m_fs->e2fs_bsize; in ext2_htree_add_entry()
H A Dext2_lookup.c154 int DIRBLKSIZ = VTOI(ap->a_vp)->i_e2fs->e2fs_bsize; in ext2_readdir()
340 int DIRBLKSIZ = VTOI(vdp)->i_e2fs->e2fs_bsize; in ext2_lookup_ino()
714 uint32_t bsize = ip->i_e2fs->e2fs_bsize; in ext2_search_dirblock()
827 else if (entryoffsetinblock + le16toh(de->e2d_reclen)> fs->e2fs_bsize) in ext2_check_direntry()
861 dirblksize = dp->i_e2fs->e2fs_bsize; in ext2_add_first_entry()
918 int DIRBLKSIZ = ip->i_e2fs->e2fs_bsize; in ext2_direnter()
H A Dext2_csum.c138 fs->e2fs_bsize - offset); in ext2_extattr_blk_csum()
208 top = EXT2_DIRENT_TAIL(ep, ip->i_e2fs->e2fs_bsize); in ext2_dirent_get_tail()
336 ip->i_e2fs->e2fs_bsize - sizeof(struct ext2fs_htree_tail)) in ext2_dx_csum_verify()
412 ip->i_e2fs->e2fs_bsize - sizeof(struct ext2fs_htree_tail)) in ext2_dx_csum_set()
H A Dext2_vnops.c1076 dirbuf = malloc(dp->i_e2fs->e2fs_bsize, M_TEMP, M_WAITOK | M_ZERO); in ext2_rename()
1078 ip->i_e2fs->e2fs_bsize, (off_t)0, in ext2_rename()
1110 ip->i_e2fs->e2fs_bsize, in ext2_rename()
1388 #define DIRBLKSIZ VTOI(dvp)->i_e2fs->e2fs_bsize in ext2_mkdir()
2241 if (fs->e2fs_bsize > xfersize) in ext2_write()
2278 fs->e2fs_bsize == xfersize) in ext2_write()