Home
last modified time | relevance | path

Searched refs:ipbmap (Results 1 – 12 of 12) sorted by relevance

/Linux-v5.10/fs/jfs/
Dresize.c54 struct inode *ipbmap = sbi->ipbmap; in jfs_extendfs() local
110 if (isReadOnly(ipbmap)) { in jfs_extendfs()
307 t64 = dbMapFileSizeToMapSize(ipbmap); in jfs_extendfs()
323 if ((rc = dbExtendFS(ipbmap, XAddress, nblocks))) in jfs_extendfs()
343 nPages = ipbmap->i_size >> L2PSIZE; in jfs_extendfs()
370 rc = filemap_fdatawait(ipbmap->i_mapping); in jfs_extendfs()
374 rc = filemap_write_and_wait(ipbmap->i_mapping); in jfs_extendfs()
378 diWriteSpecial(ipbmap, 0); in jfs_extendfs()
388 if ((rc = xtAppend(tid, ipbmap, 0, xoff, nblocks, &xlen, &xaddr, 0))) { in jfs_extendfs()
393 ipbmap->i_size += xlen << sbi->l2bsize; in jfs_extendfs()
[all …]
Djfs_dmap.c152 int dbMount(struct inode *ipbmap) in dbMount() argument
168 mp = read_metapage(ipbmap, in dbMount()
169 BMAPBLKNO << JFS_SBI(ipbmap->i_sb)->l2nbperpage, in dbMount()
199 bmp->db_ipbmap = ipbmap; in dbMount()
200 JFS_SBI(ipbmap->i_sb)->bmap = bmp; in dbMount()
229 int dbUnmount(struct inode *ipbmap, int mounterror) in dbUnmount() argument
231 struct bmap *bmp = JFS_SBI(ipbmap->i_sb)->bmap; in dbUnmount()
233 if (!(mounterror || isReadOnly(ipbmap))) in dbUnmount()
234 dbSync(ipbmap); in dbUnmount()
239 truncate_inode_pages(ipbmap->i_mapping, 0); in dbUnmount()
[all …]
Djfs_dmap.h280 extern int dbMount(struct inode *ipbmap);
282 extern int dbUnmount(struct inode *ipbmap, int mounterror);
284 extern int dbFree(struct inode *ipbmap, s64 blkno, s64 nblocks);
286 extern int dbUpdatePMap(struct inode *ipbmap,
289 extern int dbNextAG(struct inode *ipbmap);
291 extern int dbAlloc(struct inode *ipbmap, s64 hint, s64 nblocks, s64 * results);
293 extern int dbReAlloc(struct inode *ipbmap,
296 extern int dbSync(struct inode *ipbmap);
298 extern int dbExtendFS(struct inode *ipbmap, s64 blkno, s64 nblocks);
299 extern void dbFinalizeBmap(struct inode *ipbmap);
[all …]
Djfs_mount.c76 struct inode *ipbmap = NULL; in jfs_mount() local
107 ipbmap = diReadSpecial(sb, BMAP_I, 0); in jfs_mount()
108 if (ipbmap == NULL) { in jfs_mount()
113 jfs_info("jfs_mount: ipbmap:0x%p", ipbmap); in jfs_mount()
115 sbi->ipbmap = ipbmap; in jfs_mount()
120 if ((rc = dbMount(ipbmap))) { in jfs_mount()
202 dbUnmount(ipbmap, 1); in jfs_mount()
203 diFreeSpecial(ipbmap); in jfs_mount()
242 truncate_inode_pages(sbi->ipbmap->i_mapping, 0); in jfs_mount_rw()
249 dbUnmount(sbi->ipbmap, 1); in jfs_mount_rw()
[all …]
Djfs_umount.c40 struct inode *ipbmap = sbi->ipbmap; in jfs_umount() local
89 dbUnmount(ipbmap, 0); in jfs_umount()
91 diFreeSpecial(ipbmap); in jfs_umount()
141 dbSync(sbi->ipbmap); in jfs_umount_rw()
Djfs_discard.c67 struct inode *ipbmap = JFS_SBI(ip->i_sb)->ipbmap; in jfs_ioc_trim() local
69 struct super_block *sb = ipbmap->i_sb; in jfs_ioc_trim()
Djfs_imap.h154 extern int diExtendFS(struct inode *ipimap, struct inode *ipbmap);
Djfs_txnmgr.c2426 struct inode *ipbmap = JFS_SBI(ip->i_sb)->ipbmap; in txAllocPMap() local
2446 dbUpdatePMap(ipbmap, false, xaddr, in txAllocPMap()
2457 dbUpdatePMap(ipbmap, false, xaddr, (s64) xlen, tblk); in txAllocPMap()
2466 dbUpdatePMap(ipbmap, false, xaddr, (s64) xlen, in txAllocPMap()
2484 struct inode *ipbmap = JFS_SBI(ip->i_sb)->ipbmap; in txFreeMap() local
2508 dbUpdatePMap(ipbmap, true, xaddr, in txFreeMap()
2518 dbUpdatePMap(ipbmap, true, xaddr, (s64) xlen, in txFreeMap()
2529 dbUpdatePMap(ipbmap, true, xaddr, in txFreeMap()
Djfs_incore.h154 struct inode *ipbmap; /* block map inode */ member
Djfs_imap.c1344 agno = dbNextAG(JFS_SBI(pip->i_sb)->ipbmap); in diAlloc()
1367 agno = dbNextAG(JFS_SBI(pip->i_sb)->ipbmap); in diAlloc()
2839 int diExtendFS(struct inode *ipimap, struct inode *ipbmap) in diExtendFS() argument
2844 struct bmap *mp = JFS_SBI(ipbmap->i_sb)->bmap; in diExtendFS()
Djfs_logmgr.c207 writer(sbi->ipbmap->i_mapping); in write_special_inodes()
Djfs_dtree.c1024 if ((rc = dbReAlloc(sbi->ipbmap, xaddr, (s64) xlen, in dtSplitUp()