Changeset View
Changeset View
Standalone View
Standalone View
fs/ext2fs/ext2_extents.c
Show First 20 Lines • Show All 1,182 Lines • ▼ Show 20 Lines | ext4_new_blocks(struct inode *ip, daddr_t lbn, e4fs_daddr_t pref, | ||||
} | } | ||||
return (newblk); | return (newblk); | ||||
} | } | ||||
int | int | ||||
ext4_ext_get_blocks(struct inode *ip, e4fs_daddr_t iblk, | ext4_ext_get_blocks(struct inode *ip, e4fs_daddr_t iblk, | ||||
unsigned long max_blocks, struct ucred *cred, struct buf **bpp, | unsigned long max_blocks, struct ucred *cred, struct buf **bpp, | ||||
int *pallocated, uint32_t *nb) | int *pallocated, daddr_t *nb) | ||||
{ | { | ||||
struct m_ext2fs *fs; | struct m_ext2fs *fs; | ||||
struct buf *bp = NULL; | struct buf *bp = NULL; | ||||
struct ext4_extent_path *path; | struct ext4_extent_path *path; | ||||
struct ext4_extent newex, *ex; | struct ext4_extent newex, *ex; | ||||
e4fs_daddr_t bpref, newblk = 0; | e4fs_daddr_t bpref, newblk = 0; | ||||
unsigned long allocated = 0; | unsigned long allocated = 0; | ||||
int error = 0, depth; | int error = 0, depth; | ||||
▲ Show 20 Lines • Show All 384 Lines • Show Last 20 Lines |