Lines Matching refs:lbuf

86 static struct lbuf *log_redrive_list;
187 static struct lbuf *lbmAllocate(struct jfs_log * log, int);
188 static void lbmFree(struct lbuf * bp);
189 static void lbmfree(struct lbuf * bp);
190 static int lbmRead(struct jfs_log * log, int pn, struct lbuf ** bpp);
191 static void lbmWrite(struct jfs_log * log, struct lbuf * bp, int flag, int cant_block);
192 static void lbmDirectWrite(struct jfs_log * log, struct lbuf * bp, int flag);
193 static int lbmIOWait(struct lbuf * bp, int flag);
195 static void lbmStartIO(struct lbuf * bp);
361 struct lbuf *bp; /* dst log page buffer */ in lmWriteRecord()
380 bp = (struct lbuf *) log->bp; in lmWriteRecord()
456 bp = (struct lbuf *) log->bp; in lmWriteRecord()
552 bp = (struct lbuf *) log->bp; in lmWriteRecord()
578 struct lbuf *bp; in lmNextPage()
579 struct lbuf *nextbp; in lmNextPage()
760 struct lbuf *bp; in lmGCwrite()
789 bp = (struct lbuf *) tblk->bp; in lmGCwrite()
823 static void lmPostGC(struct lbuf * bp) in lmPostGC()
1267 struct lbuf *bpsuper; in lmLogInit()
1268 struct lbuf *bp; in lmLogInit()
1660 struct lbuf *bpsuper; in lmLogShutdown()
1661 struct lbuf *bp; in lmLogShutdown()
1736 struct lbuf *bpsuper; in lmLogFileSystem()
1812 struct lbuf *lbuf; in lbmLogInit() local
1845 lbuf = kmalloc(sizeof(struct lbuf), GFP_KERNEL); in lbmLogInit()
1846 if (lbuf == NULL) { in lbmLogInit()
1853 lbuf->l_offset = offset; in lbmLogInit()
1854 lbuf->l_ldata = buffer + offset; in lbmLogInit()
1855 lbuf->l_page = page; in lbmLogInit()
1856 lbuf->l_log = log; in lbmLogInit()
1857 init_waitqueue_head(&lbuf->l_ioevent); in lbmLogInit()
1859 lbuf->l_freelist = log->lbuf_free; in lbmLogInit()
1860 log->lbuf_free = lbuf; in lbmLogInit()
1880 struct lbuf *lbuf; in lbmLogShutdown() local
1884 lbuf = log->lbuf_free; in lbmLogShutdown()
1885 while (lbuf) { in lbmLogShutdown()
1886 struct lbuf *next = lbuf->l_freelist; in lbmLogShutdown()
1887 __free_page(lbuf->l_page); in lbmLogShutdown()
1888 kfree(lbuf); in lbmLogShutdown()
1889 lbuf = next; in lbmLogShutdown()
1899 static struct lbuf *lbmAllocate(struct jfs_log * log, int pn) in lbmAllocate()
1901 struct lbuf *bp; in lbmAllocate()
1930 static void lbmFree(struct lbuf * bp) in lbmFree()
1941 static void lbmfree(struct lbuf * bp) in lbmfree()
1969 static inline void lbmRedrive(struct lbuf *bp) in lbmRedrive()
1985 static int lbmRead(struct jfs_log * log, int pn, struct lbuf ** bpp) in lbmRead()
1988 struct lbuf *bp; in lbmRead()
2037 static void lbmWrite(struct jfs_log * log, struct lbuf * bp, int flag, in lbmWrite()
2040 struct lbuf *tail; in lbmWrite()
2105 static void lbmDirectWrite(struct jfs_log * log, struct lbuf * bp, int flag) in lbmDirectWrite()
2135 static void lbmStartIO(struct lbuf * bp) in lbmStartIO()
2166 static int lbmIOWait(struct lbuf * bp, int flag) in lbmIOWait()
2195 struct lbuf *bp = bio->bi_private; in lbmIODone()
2196 struct lbuf *nextbp, *tail; in lbmIODone()
2336 struct lbuf *bp; in jfsIOWait()
2387 struct lbuf *bp; in lmLogFormat()