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