Lines Matching refs:lbuf
71 * lbuf's ready to be redriven. Protected by log_redrive_lock (jfsIO thread)
73 static struct lbuf *log_redrive_list;
127 * lbuf buffer cache (lCache) control
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 */
367 bp = (struct lbuf *) log->bp;
443 bp = (struct lbuf *) log->bp;
539 bp = (struct lbuf *) log->bp;
565 struct lbuf *bp;
566 struct lbuf *nextbp;
747 struct lbuf *bp;
776 bp = (struct lbuf *) tblk->bp;
810 static void lmPostGC(struct lbuf * bp)
1253 struct lbuf *bpsuper;
1254 struct lbuf *bp;
1645 struct lbuf *bpsuper;
1646 struct lbuf *bp;
1721 struct lbuf *bpsuper;
1798 struct lbuf *lbuf;
1830 lbuf = kmalloc(sizeof(struct lbuf), GFP_KERNEL);
1831 if (lbuf == NULL) {
1838 lbuf->l_offset = offset;
1839 lbuf->l_ldata = buffer + offset;
1840 lbuf->l_page = page;
1841 lbuf->l_log = log;
1842 init_waitqueue_head(&lbuf->l_ioevent);
1844 lbuf->l_freelist = log->lbuf_free;
1845 log->lbuf_free = lbuf;
1865 struct lbuf *lbuf;
1869 lbuf = log->lbuf_free;
1870 while (lbuf) {
1871 struct lbuf *next = lbuf->l_freelist;
1872 __free_page(lbuf->l_page);
1873 kfree(lbuf);
1874 lbuf = next;
1884 static struct lbuf *lbmAllocate(struct jfs_log * log, int pn)
1886 struct lbuf *bp;
1915 static void lbmFree(struct lbuf * bp)
1926 static void lbmfree(struct lbuf * bp)
1954 static inline void lbmRedrive(struct lbuf *bp)
1970 static int lbmRead(struct jfs_log * log, int pn, struct lbuf ** bpp)
1973 struct lbuf *bp;
2023 static void lbmWrite(struct jfs_log * log, struct lbuf * bp, int flag,
2026 struct lbuf *tail;
2091 static void lbmDirectWrite(struct jfs_log * log, struct lbuf * bp, int flag)
2121 static void lbmStartIO(struct lbuf * bp)
2153 static int lbmIOWait(struct lbuf * bp, int flag)
2182 struct lbuf *bp = bio->bi_private;
2183 struct lbuf *nextbp, *tail;
2323 struct lbuf *bp;
2374 struct lbuf *bp;