Home
last modified time | relevance | path

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

/Linux-v4.19/fs/jfs/
Dresize.c66 struct inode *ipbmap = sbi->ipbmap; in jfs_extendfs() local
122 if (isReadOnly(ipbmap)) { in jfs_extendfs()
319 t64 = dbMapFileSizeToMapSize(ipbmap); in jfs_extendfs()
335 if ((rc = dbExtendFS(ipbmap, XAddress, nblocks))) in jfs_extendfs()
355 nPages = ipbmap->i_size >> L2PSIZE; in jfs_extendfs()
382 rc = filemap_fdatawait(ipbmap->i_mapping); in jfs_extendfs()
386 rc = filemap_write_and_wait(ipbmap->i_mapping); in jfs_extendfs()
390 diWriteSpecial(ipbmap, 0); in jfs_extendfs()
400 if ((rc = xtAppend(tid, ipbmap, 0, xoff, nblocks, &xlen, &xaddr, 0))) { in jfs_extendfs()
405 ipbmap->i_size += xlen << sbi->l2bsize; in jfs_extendfs()
[all …]
Djfs_dmap.c165 int dbMount(struct inode *ipbmap) in dbMount() argument
181 mp = read_metapage(ipbmap, in dbMount()
182 BMAPBLKNO << JFS_SBI(ipbmap->i_sb)->l2nbperpage, in dbMount()
212 bmp->db_ipbmap = ipbmap; in dbMount()
213 JFS_SBI(ipbmap->i_sb)->bmap = bmp; in dbMount()
242 int dbUnmount(struct inode *ipbmap, int mounterror) in dbUnmount() argument
244 struct bmap *bmp = JFS_SBI(ipbmap->i_sb)->bmap; in dbUnmount()
246 if (!(mounterror || isReadOnly(ipbmap))) in dbUnmount()
247 dbSync(ipbmap); in dbUnmount()
252 truncate_inode_pages(ipbmap->i_mapping, 0); in dbUnmount()
[all …]
Djfs_dmap.h293 extern int dbMount(struct inode *ipbmap);
295 extern int dbUnmount(struct inode *ipbmap, int mounterror);
297 extern int dbFree(struct inode *ipbmap, s64 blkno, s64 nblocks);
299 extern int dbUpdatePMap(struct inode *ipbmap,
302 extern int dbNextAG(struct inode *ipbmap);
304 extern int dbAlloc(struct inode *ipbmap, s64 hint, s64 nblocks, s64 * results);
306 extern int dbReAlloc(struct inode *ipbmap,
309 extern int dbSync(struct inode *ipbmap);
311 extern int dbExtendFS(struct inode *ipbmap, s64 blkno, s64 nblocks);
312 extern void dbFinalizeBmap(struct inode *ipbmap);
[all …]
Djfs_mount.c88 struct inode *ipbmap = NULL; in jfs_mount() local
119 ipbmap = diReadSpecial(sb, BMAP_I, 0); in jfs_mount()
120 if (ipbmap == NULL) { in jfs_mount()
125 jfs_info("jfs_mount: ipbmap:0x%p", ipbmap); in jfs_mount()
127 sbi->ipbmap = ipbmap; in jfs_mount()
132 if ((rc = dbMount(ipbmap))) { in jfs_mount()
214 dbUnmount(ipbmap, 1); in jfs_mount()
215 diFreeSpecial(ipbmap); in jfs_mount()
254 truncate_inode_pages(sbi->ipbmap->i_mapping, 0); in jfs_mount_rw()
261 dbUnmount(sbi->ipbmap, 1); in jfs_mount_rw()
[all …]
Djfs_umount.c53 struct inode *ipbmap = sbi->ipbmap; in jfs_umount() local
102 dbUnmount(ipbmap, 0); in jfs_umount()
104 diFreeSpecial(ipbmap); in jfs_umount()
154 dbSync(sbi->ipbmap); in jfs_umount_rw()
Djfs_discard.c80 struct inode *ipbmap = JFS_SBI(ip->i_sb)->ipbmap; in jfs_ioc_trim() local
82 struct super_block *sb = ipbmap->i_sb; in jfs_ioc_trim()
Djfs_imap.h167 extern int diExtendFS(struct inode *ipimap, struct inode *ipbmap);
Djfs_txnmgr.c2440 struct inode *ipbmap = JFS_SBI(ip->i_sb)->ipbmap; in txAllocPMap() local
2460 dbUpdatePMap(ipbmap, false, xaddr, in txAllocPMap()
2471 dbUpdatePMap(ipbmap, false, xaddr, (s64) xlen, tblk); in txAllocPMap()
2480 dbUpdatePMap(ipbmap, false, xaddr, (s64) xlen, in txAllocPMap()
2498 struct inode *ipbmap = JFS_SBI(ip->i_sb)->ipbmap; in txFreeMap() local
2522 dbUpdatePMap(ipbmap, true, xaddr, in txFreeMap()
2532 dbUpdatePMap(ipbmap, true, xaddr, (s64) xlen, in txFreeMap()
2543 dbUpdatePMap(ipbmap, true, xaddr, in txFreeMap()
Djfs_incore.h165 struct inode *ipbmap; /* block map inode */ member
Djfs_imap.c1357 agno = dbNextAG(JFS_SBI(pip->i_sb)->ipbmap); in diAlloc()
1380 agno = dbNextAG(JFS_SBI(pip->i_sb)->ipbmap); in diAlloc()
2852 int diExtendFS(struct inode *ipimap, struct inode *ipbmap) in diExtendFS() argument
2857 struct bmap *mp = JFS_SBI(ipbmap->i_sb)->bmap; in diExtendFS()
Djfs_logmgr.c220 writer(sbi->ipbmap->i_mapping); in write_special_inodes()
Djfs_dtree.c1037 if ((rc = dbReAlloc(sbi->ipbmap, xaddr, (s64) xlen, in dtSplitUp()