• Home
  • Raw
  • Download

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()
229 bmp->db_ipbmap = ipbmap; in dbMount()
230 JFS_SBI(ipbmap->i_sb)->bmap = bmp; in dbMount()
265 int dbUnmount(struct inode *ipbmap, int mounterror) in dbUnmount() argument
267 struct bmap *bmp = JFS_SBI(ipbmap->i_sb)->bmap; in dbUnmount()
269 if (!(mounterror || isReadOnly(ipbmap))) in dbUnmount()
270 dbSync(ipbmap); in dbUnmount()
275 truncate_inode_pages(ipbmap->i_mapping, 0); in dbUnmount()
279 JFS_SBI(ipbmap->i_sb)->bmap = NULL; in dbUnmount()
287 int dbSync(struct inode *ipbmap) in dbSync() argument
290 struct bmap *bmp = JFS_SBI(ipbmap->i_sb)->bmap; in dbSync()
298 mp = read_metapage(ipbmap, in dbSync()
299 BMAPBLKNO << JFS_SBI(ipbmap->i_sb)->l2nbperpage, in dbSync()
330 filemap_write_and_wait(ipbmap->i_mapping); in dbSync()
332 diWriteSpecial(ipbmap, 0); in dbSync()
361 struct inode *ipbmap = JFS_SBI(ip->i_sb)->ipbmap; in dbFree() local
363 struct super_block *sb = ipbmap->i_sb; in dbFree()
365 IREAD_LOCK(ipbmap, RDWRLOCK_DMAP); in dbFree()
369 IREAD_UNLOCK(ipbmap); in dbFree()
382 jfs_issue_discard(ipbmap, blkno, nblocks); in dbFree()
396 mp = read_metapage(ipbmap, lblkno, PSIZE, 0); in dbFree()
398 IREAD_UNLOCK(ipbmap); in dbFree()
412 IREAD_UNLOCK(ipbmap); in dbFree()
421 IREAD_UNLOCK(ipbmap); in dbFree()
449 dbUpdatePMap(struct inode *ipbmap, in dbUpdatePMap() argument
454 struct bmap *bmp = JFS_SBI(ipbmap->i_sb)->bmap; in dbUpdatePMap()
468 jfs_error(ipbmap->i_sb, "blocks are outside the map\n"); in dbUpdatePMap()
628 int dbNextAG(struct inode *ipbmap) in dbNextAG() argument
635 struct bmap *bmp = JFS_SBI(ipbmap->i_sb)->bmap; in dbNextAG()
728 struct inode *ipbmap = JFS_SBI(ip->i_sb)->ipbmap; in dbAlloc() local
760 IWRITE_LOCK(ipbmap, RDWRLOCK_DMAP); in dbAlloc()
801 IREAD_LOCK(ipbmap, RDWRLOCK_DMAP); in dbAlloc()
807 mp = read_metapage(ipbmap, lblkno, PSIZE, 0); in dbAlloc()
835 IREAD_UNLOCK(ipbmap); in dbAlloc()
865 IREAD_UNLOCK(ipbmap); in dbAlloc()
871 IWRITE_LOCK(ipbmap, RDWRLOCK_DMAP); in dbAlloc()
875 IWRITE_UNLOCK(ipbmap); in dbAlloc()
882 agno = dbNextAG(ipbmap); in dbAlloc()
883 IWRITE_LOCK(ipbmap, RDWRLOCK_DMAP); in dbAlloc()
892 IWRITE_UNLOCK(ipbmap); in dbAlloc()
897 IREAD_UNLOCK(ipbmap); in dbAlloc()
921 struct inode *ipbmap = JFS_SBI(ip->i_sb)->ipbmap; in dbAllocExact() local
927 IREAD_LOCK(ipbmap, RDWRLOCK_DMAP); in dbAllocExact()
937 IREAD_UNLOCK(ipbmap); in dbAllocExact()
943 IREAD_UNLOCK(ipbmap); in dbAllocExact()
949 mp = read_metapage(ipbmap, lblkno, PSIZE, 0); in dbAllocExact()
951 IREAD_UNLOCK(ipbmap); in dbAllocExact()
959 IREAD_UNLOCK(ipbmap); in dbAllocExact()
1059 struct inode *ipbmap = sbi->ipbmap; in dbExtend() local
1077 IREAD_LOCK(ipbmap, RDWRLOCK_DMAP); in dbExtend()
1082 IREAD_UNLOCK(ipbmap); in dbExtend()
1097 IREAD_UNLOCK(ipbmap); in dbExtend()
1105 mp = read_metapage(ipbmap, lblkno, PSIZE, 0); in dbExtend()
1107 IREAD_UNLOCK(ipbmap); in dbExtend()
1118 IREAD_UNLOCK(ipbmap); in dbExtend()
1646 struct inode *ipbmap = JFS_SBI(ip->i_sb)->ipbmap; in dbDiscardAG() local
1651 struct super_block *sb = ipbmap->i_sb; in dbDiscardAG()
1663 IWRITE_LOCK(ipbmap, RDWRLOCK_DMAP); in dbDiscardAG()
1672 IWRITE_UNLOCK(ipbmap); in dbDiscardAG()
1708 IWRITE_UNLOCK(ipbmap); in dbDiscardAG()
3253 struct inode *ipbmap = JFS_SBI(ip->i_sb)->ipbmap; in dbAllocBottomUp() local
3256 IREAD_LOCK(ipbmap, RDWRLOCK_DMAP); in dbAllocBottomUp()
3273 mp = read_metapage(ipbmap, lblkno, PSIZE, 0); in dbAllocBottomUp()
3275 IREAD_UNLOCK(ipbmap); in dbAllocBottomUp()
3288 IREAD_UNLOCK(ipbmap); in dbAllocBottomUp()
3296 IREAD_UNLOCK(ipbmap); in dbAllocBottomUp()
3423 int dbExtendFS(struct inode *ipbmap, s64 blkno, s64 nblocks) in dbExtendFS() argument
3425 struct jfs_sb_info *sbi = JFS_SBI(ipbmap->i_sb); in dbExtendFS()
3507 l2mp = read_metapage(ipbmap, p, PSIZE, 0); in dbExtendFS()
3509 jfs_error(ipbmap->i_sb, "L2 page could not be read\n"); in dbExtendFS()
3526 l1mp = read_metapage(ipbmap, p, PSIZE, 0); in dbExtendFS()
3538 l1mp = get_metapage(ipbmap, p, PSIZE, 0); in dbExtendFS()
3558 l0mp = read_metapage(ipbmap, p, PSIZE, 0); in dbExtendFS()
3572 l0mp = get_metapage(ipbmap, p, PSIZE, 0); in dbExtendFS()
3594 mp = read_metapage(ipbmap, p, in dbExtendFS()
3601 mp = read_metapage(ipbmap, p, in dbExtendFS()
3674 jfs_error(ipbmap->i_sb, "function has not returned as expected\n"); in dbExtendFS()
3695 void dbFinalizeBmap(struct inode *ipbmap) in dbFinalizeBmap() argument
3697 struct bmap *bmp = JFS_SBI(ipbmap->i_sb)->bmap; in dbFinalizeBmap()
3743 jfs_error(ipbmap->i_sb, in dbFinalizeBmap()
4090 s64 dbMapFileSizeToMapSize(struct inode * ipbmap) in dbMapFileSizeToMapSize() argument
4092 struct super_block *sb = ipbmap->i_sb; in dbMapFileSizeToMapSize()
4098 nblocks = ipbmap->i_size >> JFS_SBI(sb)->l2bsize; in dbMapFileSizeToMapSize()