Lines Matching refs:ipbmap

153 int dbMount(struct inode *ipbmap)  in dbMount()  argument
169 mp = read_metapage(ipbmap, in dbMount()
170 BMAPBLKNO << JFS_SBI(ipbmap->i_sb)->l2nbperpage, in dbMount()
206 bmp->db_ipbmap = ipbmap; in dbMount()
207 JFS_SBI(ipbmap->i_sb)->bmap = bmp; in dbMount()
236 int dbUnmount(struct inode *ipbmap, int mounterror) in dbUnmount() argument
238 struct bmap *bmp = JFS_SBI(ipbmap->i_sb)->bmap; in dbUnmount()
240 if (!(mounterror || isReadOnly(ipbmap))) in dbUnmount()
241 dbSync(ipbmap); in dbUnmount()
246 truncate_inode_pages(ipbmap->i_mapping, 0); in dbUnmount()
257 int dbSync(struct inode *ipbmap) in dbSync() argument
260 struct bmap *bmp = JFS_SBI(ipbmap->i_sb)->bmap; in dbSync()
268 mp = read_metapage(ipbmap, in dbSync()
269 BMAPBLKNO << JFS_SBI(ipbmap->i_sb)->l2nbperpage, in dbSync()
300 filemap_write_and_wait(ipbmap->i_mapping); in dbSync()
302 diWriteSpecial(ipbmap, 0); in dbSync()
331 struct inode *ipbmap = JFS_SBI(ip->i_sb)->ipbmap; in dbFree() local
333 struct super_block *sb = ipbmap->i_sb; in dbFree()
335 IREAD_LOCK(ipbmap, RDWRLOCK_DMAP); in dbFree()
339 IREAD_UNLOCK(ipbmap); in dbFree()
352 jfs_issue_discard(ipbmap, blkno, nblocks); in dbFree()
366 mp = read_metapage(ipbmap, lblkno, PSIZE, 0); in dbFree()
368 IREAD_UNLOCK(ipbmap); in dbFree()
382 IREAD_UNLOCK(ipbmap); in dbFree()
391 IREAD_UNLOCK(ipbmap); in dbFree()
419 dbUpdatePMap(struct inode *ipbmap, in dbUpdatePMap() argument
424 struct bmap *bmp = JFS_SBI(ipbmap->i_sb)->bmap; in dbUpdatePMap()
438 jfs_error(ipbmap->i_sb, "blocks are outside the map\n"); in dbUpdatePMap()
598 int dbNextAG(struct inode *ipbmap) in dbNextAG() argument
605 struct bmap *bmp = JFS_SBI(ipbmap->i_sb)->bmap; in dbNextAG()
698 struct inode *ipbmap = JFS_SBI(ip->i_sb)->ipbmap; in dbAlloc() local
730 IWRITE_LOCK(ipbmap, RDWRLOCK_DMAP); in dbAlloc()
771 IREAD_LOCK(ipbmap, RDWRLOCK_DMAP); in dbAlloc()
777 mp = read_metapage(ipbmap, lblkno, PSIZE, 0); in dbAlloc()
805 IREAD_UNLOCK(ipbmap); in dbAlloc()
835 IREAD_UNLOCK(ipbmap); in dbAlloc()
841 IWRITE_LOCK(ipbmap, RDWRLOCK_DMAP); in dbAlloc()
845 IWRITE_UNLOCK(ipbmap); in dbAlloc()
852 agno = dbNextAG(ipbmap); in dbAlloc()
853 IWRITE_LOCK(ipbmap, RDWRLOCK_DMAP); in dbAlloc()
862 IWRITE_UNLOCK(ipbmap); in dbAlloc()
867 IREAD_UNLOCK(ipbmap); in dbAlloc()
961 struct inode *ipbmap = sbi->ipbmap; in dbExtend() local
979 IREAD_LOCK(ipbmap, RDWRLOCK_DMAP); in dbExtend()
984 IREAD_UNLOCK(ipbmap); in dbExtend()
999 IREAD_UNLOCK(ipbmap); in dbExtend()
1007 mp = read_metapage(ipbmap, lblkno, PSIZE, 0); in dbExtend()
1009 IREAD_UNLOCK(ipbmap); in dbExtend()
1020 IREAD_UNLOCK(ipbmap); in dbExtend()
1548 struct inode *ipbmap = JFS_SBI(ip->i_sb)->ipbmap; in dbDiscardAG() local
1553 struct super_block *sb = ipbmap->i_sb; in dbDiscardAG()
1565 IWRITE_LOCK(ipbmap, RDWRLOCK_DMAP); in dbDiscardAG()
1574 IWRITE_UNLOCK(ipbmap); in dbDiscardAG()
1610 IWRITE_UNLOCK(ipbmap); in dbDiscardAG()
3145 struct inode *ipbmap = JFS_SBI(ip->i_sb)->ipbmap; in dbAllocBottomUp() local
3148 IREAD_LOCK(ipbmap, RDWRLOCK_DMAP); in dbAllocBottomUp()
3165 mp = read_metapage(ipbmap, lblkno, PSIZE, 0); in dbAllocBottomUp()
3167 IREAD_UNLOCK(ipbmap); in dbAllocBottomUp()
3180 IREAD_UNLOCK(ipbmap); in dbAllocBottomUp()
3188 IREAD_UNLOCK(ipbmap); in dbAllocBottomUp()
3315 int dbExtendFS(struct inode *ipbmap, s64 blkno, s64 nblocks) in dbExtendFS() argument
3317 struct jfs_sb_info *sbi = JFS_SBI(ipbmap->i_sb); in dbExtendFS()
3399 l2mp = read_metapage(ipbmap, p, PSIZE, 0); in dbExtendFS()
3401 jfs_error(ipbmap->i_sb, "L2 page could not be read\n"); in dbExtendFS()
3418 l1mp = read_metapage(ipbmap, p, PSIZE, 0); in dbExtendFS()
3430 l1mp = get_metapage(ipbmap, p, PSIZE, 0); in dbExtendFS()
3450 l0mp = read_metapage(ipbmap, p, PSIZE, 0); in dbExtendFS()
3464 l0mp = get_metapage(ipbmap, p, PSIZE, 0); in dbExtendFS()
3486 mp = read_metapage(ipbmap, p, in dbExtendFS()
3493 mp = read_metapage(ipbmap, p, in dbExtendFS()
3566 jfs_error(ipbmap->i_sb, "function has not returned as expected\n"); in dbExtendFS()
3587 void dbFinalizeBmap(struct inode *ipbmap) in dbFinalizeBmap() argument
3589 struct bmap *bmp = JFS_SBI(ipbmap->i_sb)->bmap; in dbFinalizeBmap()
3635 jfs_error(ipbmap->i_sb, in dbFinalizeBmap()
3982 s64 dbMapFileSizeToMapSize(struct inode * ipbmap) in dbMapFileSizeToMapSize() argument
3984 struct super_block *sb = ipbmap->i_sb; in dbMapFileSizeToMapSize()
3990 nblocks = ipbmap->i_size >> JFS_SBI(sb)->l2bsize; in dbMapFileSizeToMapSize()