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()
435 bp = (struct lbuf *) log->bp; in lmWriteRecord()
531 bp = (struct lbuf *) log->bp; in lmWriteRecord()
557 struct lbuf *bp; in lmNextPage()
558 struct lbuf *nextbp; in lmNextPage()
739 struct lbuf *bp; in lmGCwrite()
768 bp = (struct lbuf *) tblk->bp; in lmGCwrite()
802 static void lmPostGC(struct lbuf * bp) in lmPostGC()
1245 struct lbuf *bpsuper; in lmLogInit()
1246 struct lbuf *bp; in lmLogInit()
1637 struct lbuf *bpsuper; in lmLogShutdown()
1638 struct lbuf *bp; in lmLogShutdown()
1713 struct lbuf *bpsuper; in lmLogFileSystem()
1790 struct lbuf *lbuf; in lbmLogInit() local
1822 lbuf = kmalloc(sizeof(struct lbuf), GFP_KERNEL); in lbmLogInit()
1823 if (lbuf == NULL) { in lbmLogInit()
1830 lbuf->l_offset = offset; in lbmLogInit()
1831 lbuf->l_ldata = buffer + offset; in lbmLogInit()
1832 lbuf->l_page = page; in lbmLogInit()
1833 lbuf->l_log = log; in lbmLogInit()
1834 init_waitqueue_head(&lbuf->l_ioevent); in lbmLogInit()
1836 lbuf->l_freelist = log->lbuf_free; in lbmLogInit()
1837 log->lbuf_free = lbuf; in lbmLogInit()
1857 struct lbuf *lbuf; in lbmLogShutdown() local
1861 lbuf = log->lbuf_free; in lbmLogShutdown()
1862 while (lbuf) { in lbmLogShutdown()
1863 struct lbuf *next = lbuf->l_freelist; in lbmLogShutdown()
1864 __free_page(lbuf->l_page); in lbmLogShutdown()
1865 kfree(lbuf); in lbmLogShutdown()
1866 lbuf = next; in lbmLogShutdown()
1876 static struct lbuf *lbmAllocate(struct jfs_log * log, int pn) in lbmAllocate()
1878 struct lbuf *bp; in lbmAllocate()
1907 static void lbmFree(struct lbuf * bp) in lbmFree()
1918 static void lbmfree(struct lbuf * bp) in lbmfree()
1946 static inline void lbmRedrive(struct lbuf *bp) in lbmRedrive()
1962 static int lbmRead(struct jfs_log * log, int pn, struct lbuf ** bpp) in lbmRead()
1965 struct lbuf *bp; in lbmRead()
2011 static void lbmWrite(struct jfs_log * log, struct lbuf * bp, int flag, in lbmWrite()
2014 struct lbuf *tail; in lbmWrite()
2079 static void lbmDirectWrite(struct jfs_log * log, struct lbuf * bp, int flag) in lbmDirectWrite()
2109 static void lbmStartIO(struct lbuf * bp) in lbmStartIO()
2138 static int lbmIOWait(struct lbuf * bp, int flag) in lbmIOWait()
2167 struct lbuf *bp = bio->bi_private; in lbmIODone()
2168 struct lbuf *nextbp, *tail; in lbmIODone()
2308 struct lbuf *bp; in jfsIOWait()
2359 struct lbuf *bp; in lmLogFormat()