Lines Matching refs:bmap

39  *	write inode lock of the bmap inode. requests starting at the top
47 * write information maintained in the bmap descriptor (i.e. total
64 static void dbAllocBits(struct bmap * bmp, struct dmap * dp, s64 blkno,
70 static int dbAdjCtl(struct bmap * bmp, s64 blkno, int newval, int alloc,
72 static int dbAllocAny(struct bmap * bmp, s64 nblocks, int l2nb, s64 * results);
73 static int dbAllocNext(struct bmap * bmp, struct dmap * dp, s64 blkno,
75 static int dbAllocNear(struct bmap * bmp, struct dmap * dp, s64 blkno,
78 static int dbAllocDmap(struct bmap * bmp, struct dmap * dp, s64 blkno,
80 static int dbAllocDmapLev(struct bmap * bmp, struct dmap * dp, int nblocks,
83 static int dbAllocAG(struct bmap * bmp, int agno, s64 nblocks, int l2nb,
85 static int dbAllocCtl(struct bmap * bmp, s64 nblocks, int l2nb, s64 blkno,
89 static int dbFindCtl(struct bmap * bmp, int l2nb, int level, s64 * blkno);
91 static int dbFreeBits(struct bmap * bmp, struct dmap * dp, s64 blkno,
93 static int dbFreeDmap(struct bmap * bmp, struct dmap * dp, s64 blkno,
101 static int dbAllocDmapBU(struct bmap * bmp, struct dmap * dp, s64 blkno,
141 * memory is allocated for the in-core bmap descriptor and
151 * -EINVAL - wrong bmap data
155 struct bmap *bmp;
161 * allocate/initialize the in-memory bmap descriptor
163 /* allocate memory for the in-memory bmap descriptor */
164 bmp = kmalloc(sizeof(struct bmap), GFP_KERNEL);
168 /* read the on-disk bmap descriptor. */
177 /* copy the on-disk bmap descriptor to its in-memory version. */
228 /* bind the bmap inode and the bmap descriptor to each other. */
230 JFS_SBI(ipbmap->i_sb)->bmap = bmp;
235 * allocate/initialize the bmap lock
255 * the in-core bmap descriptor is written to disk and
267 struct bmap *bmp = JFS_SBI(ipbmap->i_sb)->bmap;
277 /* free the memory for the in-memory bmap. */
279 JFS_SBI(ipbmap->i_sb)->bmap = NULL;
290 struct bmap *bmp = JFS_SBI(ipbmap->i_sb)->bmap;
295 * write bmap global control page
297 /* get the buffer for the on-disk bmap descriptor. */
305 /* copy the in-memory version of the bmap to the on-disk version */
328 * write out dirty pages of bmap
362 struct bmap *bmp = JFS_SBI(ip->i_sb)->bmap;
454 struct bmap *bmp = JFS_SBI(ipbmap->i_sb)->bmap;
635 struct bmap *bmp = JFS_SBI(ipbmap->i_sb)->bmap;
729 struct bmap *bmp;
746 bmp = JFS_SBI(ip->i_sb)->bmap;
992 struct bmap *bmp;
1012 bmp = sbi->bmap;
1070 * bmp - pointer to bmap descriptor
1082 static int dbAllocNext(struct bmap * bmp, struct dmap * dp, s64 blkno,
1198 * bmp - pointer to bmap descriptor
1214 dbAllocNear(struct bmap * bmp,
1308 * bmp - pointer to bmap descriptor
1323 dbAllocAG(struct bmap * bmp, int agno, s64 nblocks, int l2nb, s64 * results)
1508 * bmp - pointer to bmap descriptor
1521 static int dbAllocAny(struct bmap * bmp, s64 nblocks, int l2nb, s64 * results)
1579 struct bmap *bmp = JFS_SBI(ip->i_sb)->bmap;
1670 * bmp - pointer to bmap descriptor
1684 static int dbFindCtl(struct bmap * bmp, int l2nb, int level, s64 * blkno)
1787 * bmp - pointer to bmap descriptor
1803 dbAllocCtl(struct bmap * bmp, s64 nblocks, int l2nb, s64 blkno, s64 * results)
1938 * mp - pointer to bmap descriptor
1954 dbAllocDmapLev(struct bmap * bmp,
2009 * bmp - pointer to bmap descriptor
2020 static int dbAllocDmap(struct bmap * bmp, struct dmap * dp, s64 blkno,
2064 * bmp - pointer to bmap descriptor
2075 static int dbFreeDmap(struct bmap * bmp, struct dmap * dp, s64 blkno,
2128 * bmp - pointer to bmap descriptor
2137 static void dbAllocBits(struct bmap * bmp, struct dmap * dp, s64 blkno,
2275 * bmp - pointer to bmap descriptor
2284 static int dbFreeBits(struct bmap * bmp, struct dmap * dp, s64 blkno,
2451 * bmp - pointer to bmap descriptor
2468 dbAdjCtl(struct bmap * bmp, s64 blkno, int newval, int alloc, int level)
2586 * the bmap control page to reflect the size
3190 struct bmap *bmp = JFS_SBI(ip->i_sb)->bmap;
3238 static int dbAllocDmapBU(struct bmap * bmp, struct dmap * dp, s64 blkno,
3345 * FUNCTION: extend bmap from blkno for nblocks;
3346 * dbExtendFS() updates bmap ready for dbAllocBottomUp();
3370 struct bmap *bmp = sbi->bmap;
3380 * initialize bmap control page.
3382 * all the data in bmap control page should exclude
3435 * extend bmap
3578 /* summarize in global bmap page */
3602 /* summarize in global bmap page */
3620 * finalize bmap control page
3633 struct bmap *bmp = JFS_SBI(ipbmap->i_sb)->bmap;
3639 * finalize bmap control page