Lines Matching refs:lbuf

73 static struct lbuf *log_redrive_list;
174 static struct lbuf *lbmAllocate(struct jfs_log * log, int);
175 static void lbmFree(struct lbuf * bp);
176 static void lbmfree(struct lbuf * bp);
177 static int lbmRead(struct jfs_log * log, int pn, struct lbuf ** bpp);
178 static void lbmWrite(struct jfs_log * log, struct lbuf * bp, int flag, int cant_block);
179 static void lbmDirectWrite(struct jfs_log * log, struct lbuf * bp, int flag);
180 static int lbmIOWait(struct lbuf * bp, int flag);
182 static void lbmStartIO(struct lbuf * bp);
348 struct lbuf *bp; /* dst log page buffer */ in lmWriteRecord()
367 bp = (struct lbuf *) log->bp; in lmWriteRecord()
443 bp = (struct lbuf *) log->bp; in lmWriteRecord()
539 bp = (struct lbuf *) log->bp; in lmWriteRecord()
565 struct lbuf *bp; in lmNextPage()
566 struct lbuf *nextbp; in lmNextPage()
747 struct lbuf *bp; in lmGCwrite()
776 bp = (struct lbuf *) tblk->bp; in lmGCwrite()
810 static void lmPostGC(struct lbuf * bp) in lmPostGC()
1253 struct lbuf *bpsuper; in lmLogInit()
1254 struct lbuf *bp; in lmLogInit()
1645 struct lbuf *bpsuper; in lmLogShutdown()
1646 struct lbuf *bp; in lmLogShutdown()
1721 struct lbuf *bpsuper; in lmLogFileSystem()
1798 struct lbuf *lbuf; in lbmLogInit() local
1830 lbuf = kmalloc(sizeof(struct lbuf), GFP_KERNEL); in lbmLogInit()
1831 if (lbuf == NULL) { in lbmLogInit()
1838 lbuf->l_offset = offset; in lbmLogInit()
1839 lbuf->l_ldata = buffer + offset; in lbmLogInit()
1840 lbuf->l_page = page; in lbmLogInit()
1841 lbuf->l_log = log; in lbmLogInit()
1842 init_waitqueue_head(&lbuf->l_ioevent); in lbmLogInit()
1844 lbuf->l_freelist = log->lbuf_free; in lbmLogInit()
1845 log->lbuf_free = lbuf; in lbmLogInit()
1865 struct lbuf *lbuf; in lbmLogShutdown() local
1869 lbuf = log->lbuf_free; in lbmLogShutdown()
1870 while (lbuf) { in lbmLogShutdown()
1871 struct lbuf *next = lbuf->l_freelist; in lbmLogShutdown()
1872 __free_page(lbuf->l_page); in lbmLogShutdown()
1873 kfree(lbuf); in lbmLogShutdown()
1874 lbuf = next; in lbmLogShutdown()
1884 static struct lbuf *lbmAllocate(struct jfs_log * log, int pn) in lbmAllocate()
1886 struct lbuf *bp; in lbmAllocate()
1915 static void lbmFree(struct lbuf * bp) in lbmFree()
1926 static void lbmfree(struct lbuf * bp) in lbmfree()
1954 static inline void lbmRedrive(struct lbuf *bp) in lbmRedrive()
1970 static int lbmRead(struct jfs_log * log, int pn, struct lbuf ** bpp) in lbmRead()
1973 struct lbuf *bp; in lbmRead()
2023 static void lbmWrite(struct jfs_log * log, struct lbuf * bp, int flag, in lbmWrite()
2026 struct lbuf *tail; in lbmWrite()
2091 static void lbmDirectWrite(struct jfs_log * log, struct lbuf * bp, int flag) in lbmDirectWrite()
2121 static void lbmStartIO(struct lbuf * bp) in lbmStartIO()
2153 static int lbmIOWait(struct lbuf * bp, int flag) in lbmIOWait()
2182 struct lbuf *bp = bio->bi_private; in lbmIODone()
2183 struct lbuf *nextbp, *tail; in lbmIODone()
2323 struct lbuf *bp; in jfsIOWait()
2374 struct lbuf *bp; in lmLogFormat()