2 * Copyright (C) Sistina Software, Inc. 1997-2003 All rights reserved.
3 * Copyright (C) 2004-2005 Red Hat, Inc. All rights reserved.
5 * This copyrighted material is made available to anyone wishing to use,
6 * modify, copy, or redistribute it subject to the terms and conditions
7 * of the GNU General Public License v.2.
10 #include <linux/sched.h>
11 #include <linux/slab.h>
12 #include <linux/spinlock.h>
13 #include <linux/completion.h>
14 #include <linux/buffer_head.h>
15 #include <linux/gfs2_ondisk.h>
16 #include <asm/semaphore.h>
19 #include "lm_interface.h"
30 static void glock_lo_add(struct gfs2_sbd *sdp, struct gfs2_log_element *le)
32 struct gfs2_glock *gl;
33 struct gfs2_trans *tr = current->journal_info;
37 if (!list_empty(&le->le_list))
40 gl = container_of(le, struct gfs2_glock, gl_le);
41 if (gfs2_assert_withdraw(sdp, gfs2_glock_is_held_excl(gl)))
44 set_bit(GLF_DIRTY, &gl->gl_flags);
48 list_add(&le->le_list, &sdp->sd_log_le_gl);
52 static void glock_lo_after_commit(struct gfs2_sbd *sdp, struct gfs2_ail *ai)
54 struct list_head *head = &sdp->sd_log_le_gl;
55 struct gfs2_glock *gl;
57 while (!list_empty(head)) {
58 gl = list_entry(head->next, struct gfs2_glock, gl_le.le_list);
59 list_del_init(&gl->gl_le.le_list);
62 gfs2_assert_withdraw(sdp, gfs2_glock_is_held_excl(gl));
65 gfs2_assert_warn(sdp, !sdp->sd_log_num_gl);
68 static void buf_lo_add(struct gfs2_sbd *sdp, struct gfs2_log_element *le)
70 struct gfs2_bufdata *bd = container_of(le, struct gfs2_bufdata, bd_le);
71 struct gfs2_trans *tr;
73 if (!list_empty(&bd->bd_list_tr))
76 tr = current->journal_info;
79 list_add(&bd->bd_list_tr, &tr->tr_list_buf);
81 if (!list_empty(&le->le_list))
84 gfs2_trans_add_gl(bd->bd_gl);
86 gfs2_meta_check(sdp, bd->bd_bh);
87 gfs2_pin(sdp, bd->bd_bh);
90 sdp->sd_log_num_buf++;
91 list_add(&le->le_list, &sdp->sd_log_le_buf);
97 static void buf_lo_incore_commit(struct gfs2_sbd *sdp, struct gfs2_trans *tr)
99 struct list_head *head = &tr->tr_list_buf;
100 struct gfs2_bufdata *bd;
102 while (!list_empty(head)) {
103 bd = list_entry(head->next, struct gfs2_bufdata, bd_list_tr);
104 list_del_init(&bd->bd_list_tr);
107 gfs2_assert_warn(sdp, !tr->tr_num_buf);
110 static void buf_lo_before_commit(struct gfs2_sbd *sdp)
112 struct buffer_head *bh;
113 struct gfs2_log_descriptor *ld;
114 struct gfs2_bufdata *bd1 = NULL, *bd2;
115 unsigned int total = sdp->sd_log_num_buf;
116 unsigned int offset = sizeof(struct gfs2_log_descriptor);
122 offset += (sizeof(__be64) - 1);
123 offset &= ~(sizeof(__be64) - 1);
124 limit = (sdp->sd_sb.sb_bsize - offset)/sizeof(__be64);
125 /* for 4k blocks, limit = 503 */
127 bd1 = bd2 = list_prepare_entry(bd1, &sdp->sd_log_le_buf, bd_le.le_list);
132 bh = gfs2_log_get_buf(sdp);
133 sdp->sd_log_num_hdrs++;
134 ld = (struct gfs2_log_descriptor *)bh->b_data;
135 ptr = (__be64 *)(bh->b_data + offset);
136 ld->ld_header.mh_magic = cpu_to_be32(GFS2_MAGIC);
137 ld->ld_header.mh_type = cpu_to_be32(GFS2_METATYPE_LD);
138 ld->ld_header.mh_format = cpu_to_be32(GFS2_FORMAT_LD);
139 ld->ld_type = cpu_to_be32(GFS2_LOG_DESC_METADATA);
140 ld->ld_length = cpu_to_be32(num + 1);
141 ld->ld_data1 = cpu_to_be32(num);
142 ld->ld_data2 = cpu_to_be32(0);
143 memset(ld->ld_reserved, 0, sizeof(ld->ld_reserved));
146 list_for_each_entry_continue(bd1, &sdp->sd_log_le_buf,
148 *ptr++ = cpu_to_be64(bd1->bd_bh->b_blocknr);
153 set_buffer_dirty(bh);
154 ll_rw_block(WRITE, 1, &bh);
157 list_for_each_entry_continue(bd2, &sdp->sd_log_le_buf,
159 bh = gfs2_log_fake_buf(sdp, bd2->bd_bh);
160 set_buffer_dirty(bh);
161 ll_rw_block(WRITE, 1, &bh);
170 static void buf_lo_after_commit(struct gfs2_sbd *sdp, struct gfs2_ail *ai)
172 struct list_head *head = &sdp->sd_log_le_buf;
173 struct gfs2_bufdata *bd;
175 while (!list_empty(head)) {
176 bd = list_entry(head->next, struct gfs2_bufdata, bd_le.le_list);
177 list_del_init(&bd->bd_le.le_list);
178 sdp->sd_log_num_buf--;
180 gfs2_unpin(sdp, bd->bd_bh, ai);
182 gfs2_assert_warn(sdp, !sdp->sd_log_num_buf);
185 static void buf_lo_before_scan(struct gfs2_jdesc *jd,
186 struct gfs2_log_header *head, int pass)
188 struct gfs2_inode *ip = jd->jd_inode->u.generic_ip;
189 struct gfs2_sbd *sdp = ip->i_sbd;
194 sdp->sd_found_blocks = 0;
195 sdp->sd_replayed_blocks = 0;
198 static int buf_lo_scan_elements(struct gfs2_jdesc *jd, unsigned int start,
199 struct gfs2_log_descriptor *ld, __be64 *ptr,
202 struct gfs2_inode *ip = jd->jd_inode->u.generic_ip;
203 struct gfs2_sbd *sdp = ip->i_sbd;
204 struct gfs2_glock *gl = ip->i_gl;
205 unsigned int blks = be32_to_cpu(ld->ld_data1);
206 struct buffer_head *bh_log, *bh_ip;
210 if (pass != 1 || be32_to_cpu(ld->ld_type) != GFS2_LOG_DESC_METADATA)
213 gfs2_replay_incr_blk(sdp, &start);
215 for (; blks; gfs2_replay_incr_blk(sdp, &start), blks--) {
216 blkno = be64_to_cpu(*ptr++);
218 sdp->sd_found_blocks++;
220 if (gfs2_revoke_check(sdp, blkno, start))
223 error = gfs2_replay_read_block(jd, start, &bh_log);
227 bh_ip = gfs2_meta_new(gl, blkno);
228 memcpy(bh_ip->b_data, bh_log->b_data, bh_log->b_size);
230 if (gfs2_meta_check(sdp, bh_ip))
233 mark_buffer_dirty(bh_ip);
241 sdp->sd_replayed_blocks++;
247 static void buf_lo_after_scan(struct gfs2_jdesc *jd, int error, int pass)
249 struct gfs2_inode *ip = jd->jd_inode->u.generic_ip;
250 struct gfs2_sbd *sdp = ip->i_sbd;
253 gfs2_meta_sync(ip->i_gl,
254 DIO_START | DIO_WAIT);
260 gfs2_meta_sync(ip->i_gl, DIO_START | DIO_WAIT);
262 fs_info(sdp, "jid=%u: Replayed %u of %u blocks\n",
263 jd->jd_jid, sdp->sd_replayed_blocks, sdp->sd_found_blocks);
266 static void revoke_lo_add(struct gfs2_sbd *sdp, struct gfs2_log_element *le)
268 struct gfs2_trans *tr;
270 tr = current->journal_info;
275 sdp->sd_log_num_revoke++;
276 list_add(&le->le_list, &sdp->sd_log_le_revoke);
277 gfs2_log_unlock(sdp);
280 static void revoke_lo_before_commit(struct gfs2_sbd *sdp)
282 struct gfs2_log_descriptor *ld;
283 struct gfs2_meta_header *mh;
284 struct buffer_head *bh;
286 struct list_head *head = &sdp->sd_log_le_revoke;
287 struct gfs2_revoke *rv;
289 if (!sdp->sd_log_num_revoke)
292 bh = gfs2_log_get_buf(sdp);
293 ld = (struct gfs2_log_descriptor *)bh->b_data;
294 ld->ld_header.mh_magic = cpu_to_be32(GFS2_MAGIC);
295 ld->ld_header.mh_type = cpu_to_be32(GFS2_METATYPE_LD);
296 ld->ld_header.mh_format = cpu_to_be32(GFS2_FORMAT_LD);
297 ld->ld_type = cpu_to_be32(GFS2_LOG_DESC_REVOKE);
298 ld->ld_length = cpu_to_be32(gfs2_struct2blk(sdp, sdp->sd_log_num_revoke,
300 ld->ld_data1 = cpu_to_be32(sdp->sd_log_num_revoke);
301 ld->ld_data2 = cpu_to_be32(0);
302 memset(ld->ld_reserved, 0, sizeof(ld->ld_reserved));
303 offset = sizeof(struct gfs2_log_descriptor);
305 while (!list_empty(head)) {
306 rv = list_entry(head->next, struct gfs2_revoke, rv_le.le_list);
307 list_del_init(&rv->rv_le.le_list);
308 sdp->sd_log_num_revoke--;
310 if (offset + sizeof(uint64_t) > sdp->sd_sb.sb_bsize) {
311 set_buffer_dirty(bh);
312 ll_rw_block(WRITE, 1, &bh);
314 bh = gfs2_log_get_buf(sdp);
315 mh = (struct gfs2_meta_header *)bh->b_data;
316 mh->mh_magic = cpu_to_be32(GFS2_MAGIC);
317 mh->mh_type = cpu_to_be32(GFS2_METATYPE_LB);
318 mh->mh_format = cpu_to_be32(GFS2_FORMAT_LB);
319 offset = sizeof(struct gfs2_meta_header);
322 *(__be64 *)(bh->b_data + offset) = cpu_to_be64(rv->rv_blkno);
325 offset += sizeof(uint64_t);
327 gfs2_assert_withdraw(sdp, !sdp->sd_log_num_revoke);
329 set_buffer_dirty(bh);
330 ll_rw_block(WRITE, 1, &bh);
333 static void revoke_lo_before_scan(struct gfs2_jdesc *jd,
334 struct gfs2_log_header *head, int pass)
336 struct gfs2_inode *ip = jd->jd_inode->u.generic_ip;
337 struct gfs2_sbd *sdp = ip->i_sbd;
342 sdp->sd_found_revokes = 0;
343 sdp->sd_replay_tail = head->lh_tail;
346 static int revoke_lo_scan_elements(struct gfs2_jdesc *jd, unsigned int start,
347 struct gfs2_log_descriptor *ld, __be64 *ptr,
350 struct gfs2_inode *ip = jd->jd_inode->u.generic_ip;
351 struct gfs2_sbd *sdp = ip->i_sbd;
352 unsigned int blks = be32_to_cpu(ld->ld_length);
353 unsigned int revokes = be32_to_cpu(ld->ld_data1);
354 struct buffer_head *bh;
360 if (pass != 0 || be32_to_cpu(ld->ld_type) != GFS2_LOG_DESC_REVOKE)
363 offset = sizeof(struct gfs2_log_descriptor);
365 for (; blks; gfs2_replay_incr_blk(sdp, &start), blks--) {
366 error = gfs2_replay_read_block(jd, start, &bh);
371 gfs2_metatype_check(sdp, bh, GFS2_METATYPE_LB);
373 while (offset + sizeof(uint64_t) <= sdp->sd_sb.sb_bsize) {
374 blkno = be64_to_cpu(*(__be64 *)(bh->b_data + offset));
376 error = gfs2_revoke_add(sdp, blkno, start);
380 sdp->sd_found_revokes++;
384 offset += sizeof(uint64_t);
388 offset = sizeof(struct gfs2_meta_header);
395 static void revoke_lo_after_scan(struct gfs2_jdesc *jd, int error, int pass)
397 struct gfs2_inode *ip = jd->jd_inode->u.generic_ip;
398 struct gfs2_sbd *sdp = ip->i_sbd;
401 gfs2_revoke_clean(sdp);
407 fs_info(sdp, "jid=%u: Found %u revoke tags\n",
408 jd->jd_jid, sdp->sd_found_revokes);
410 gfs2_revoke_clean(sdp);
413 static void rg_lo_add(struct gfs2_sbd *sdp, struct gfs2_log_element *le)
415 struct gfs2_rgrpd *rgd;
416 struct gfs2_trans *tr = current->journal_info;
420 if (!list_empty(&le->le_list))
423 rgd = container_of(le, struct gfs2_rgrpd, rd_le);
424 gfs2_rgrp_bh_hold(rgd);
427 sdp->sd_log_num_rg++;
428 list_add(&le->le_list, &sdp->sd_log_le_rg);
429 gfs2_log_unlock(sdp);
432 static void rg_lo_after_commit(struct gfs2_sbd *sdp, struct gfs2_ail *ai)
434 struct list_head *head = &sdp->sd_log_le_rg;
435 struct gfs2_rgrpd *rgd;
437 while (!list_empty(head)) {
438 rgd = list_entry(head->next, struct gfs2_rgrpd, rd_le.le_list);
439 list_del_init(&rgd->rd_le.le_list);
440 sdp->sd_log_num_rg--;
442 gfs2_rgrp_repolish_clones(rgd);
443 gfs2_rgrp_bh_put(rgd);
445 gfs2_assert_warn(sdp, !sdp->sd_log_num_rg);
449 * databuf_lo_add - Add a databuf to the transaction.
451 * This is used in two distinct cases:
452 * i) In ordered write mode
453 * We put the data buffer on a list so that we can ensure that its
454 * synced to disk at the right time
455 * ii) In journaled data mode
456 * We need to journal the data block in the same way as metadata in
457 * the functions above. The difference is that here we have a tag
458 * which is two __be64's being the block number (as per meta data)
459 * and a flag which says whether the data block needs escaping or
460 * not. This means we need a new log entry for each 251 or so data
461 * blocks, which isn't an enormous overhead but twice as much as
462 * for normal metadata blocks.
464 static void databuf_lo_add(struct gfs2_sbd *sdp, struct gfs2_log_element *le)
466 struct gfs2_bufdata *bd = container_of(le, struct gfs2_bufdata, bd_le);
467 struct gfs2_trans *tr = current->journal_info;
468 struct address_space *mapping = bd->bd_bh->b_page->mapping;
469 struct gfs2_inode *ip = mapping->host->u.generic_ip;
472 if (!list_empty(&bd->bd_list_tr) &&
473 (ip->i_di.di_flags & GFS2_DIF_JDATA)) {
475 gfs2_trans_add_gl(bd->bd_gl);
476 list_add(&bd->bd_list_tr, &tr->tr_list_buf);
477 gfs2_pin(sdp, bd->bd_bh);
478 tr->tr_num_buf_new++;
481 if (!list_empty(&le->le_list)) {
482 if (ip->i_di.di_flags & GFS2_DIF_JDATA)
483 sdp->sd_log_num_jdata++;
484 sdp->sd_log_num_databuf++;
485 list_add(&le->le_list, &sdp->sd_log_le_databuf);
487 gfs2_log_unlock(sdp);
490 static int gfs2_check_magic(struct buffer_head *bh)
492 struct page *page = bh->b_page;
497 kaddr = kmap_atomic(page, KM_USER0);
498 ptr = kaddr + bh_offset(bh);
499 if (*ptr == cpu_to_be32(GFS2_MAGIC))
501 kunmap_atomic(page, KM_USER0);
507 * databuf_lo_before_commit - Scan the data buffers, writing as we go
509 * Here we scan through the lists of buffers and make the assumption
510 * that any buffer thats been pinned is being journaled, and that
511 * any unpinned buffer is an ordered write data buffer and therefore
512 * will be written back rather than journaled.
514 static void databuf_lo_before_commit(struct gfs2_sbd *sdp)
517 struct gfs2_bufdata *bd1 = NULL, *bd2, *bdt;
518 struct buffer_head *bh = NULL;
519 unsigned int offset = sizeof(struct gfs2_log_descriptor);
520 struct gfs2_log_descriptor *ld;
522 unsigned int total_dbuf = sdp->sd_log_num_databuf;
523 unsigned int total_jdata = sdp->sd_log_num_jdata;
527 offset += (2*sizeof(__be64) - 1);
528 offset &= ~(2*sizeof(__be64) - 1);
529 limit = (sdp->sd_sb.sb_bsize - offset)/sizeof(__be64);
532 * Start writing ordered buffers, write journaled buffers
533 * into the log along with a header
536 bd2 = bd1 = list_prepare_entry(bd1, &sdp->sd_log_le_databuf,
543 list_for_each_entry_safe_continue(bd1, bdt,
544 &sdp->sd_log_le_databuf,
546 /* An ordered write buffer */
547 if (bd1->bd_bh && !buffer_pinned(bd1->bd_bh)) {
548 list_move(&bd1->bd_le.le_list, &started);
551 bd2 = list_prepare_entry(bd2,
552 &sdp->sd_log_le_databuf,
558 if (buffer_dirty(bd1->bd_bh)) {
559 gfs2_log_unlock(sdp);
560 wait_on_buffer(bd1->bd_bh);
561 ll_rw_block(WRITE, 1,
569 } else if (bd1->bd_bh) { /* A journaled buffer */
571 gfs2_log_unlock(sdp);
573 bh = gfs2_log_get_buf(sdp);
574 sdp->sd_log_num_hdrs++;
575 ld = (struct gfs2_log_descriptor *)
577 ptr = (__be64 *)(bh->b_data + offset);
578 ld->ld_header.mh_magic =
579 cpu_to_be32(GFS2_MAGIC);
580 ld->ld_header.mh_type =
581 cpu_to_be32(GFS2_METATYPE_LD);
582 ld->ld_header.mh_format =
583 cpu_to_be32(GFS2_FORMAT_LD);
585 cpu_to_be32(GFS2_LOG_DESC_JDATA);
586 ld->ld_length = cpu_to_be32(num + 1);
587 ld->ld_data1 = cpu_to_be32(num);
588 ld->ld_data2 = cpu_to_be32(0);
589 memset(ld->ld_reserved, 0, sizeof(ld->ld_reserved));
591 magic = gfs2_check_magic(bd1->bd_bh);
592 *ptr++ = cpu_to_be64(bd1->bd_bh->b_blocknr);
593 *ptr++ = cpu_to_be64((__u64)magic);
594 clear_buffer_escaped(bd1->bd_bh);
595 if (unlikely(magic != 0))
596 set_buffer_escaped(bd1->bd_bh);
602 gfs2_log_unlock(sdp);
604 set_buffer_dirty(bh);
605 ll_rw_block(WRITE, 1, &bh);
610 list_for_each_entry_continue(bd2, &sdp->sd_log_le_databuf,
614 /* copy buffer if it needs escaping */
615 gfs2_log_unlock(sdp);
616 if (unlikely(buffer_escaped(bd2->bd_bh))) {
618 struct page *page = bd2->bd_bh->b_page;
619 bh = gfs2_log_get_buf(sdp);
620 kaddr = kmap_atomic(page, KM_USER0);
622 kaddr + bh_offset(bd2->bd_bh),
623 sdp->sd_sb.sb_bsize);
624 kunmap_atomic(page, KM_USER0);
625 *(__be32 *)bh->b_data = 0;
627 bh = gfs2_log_fake_buf(sdp, bd2->bd_bh);
629 set_buffer_dirty(bh);
630 ll_rw_block(WRITE, 1, &bh);
639 gfs2_log_unlock(sdp);
641 /* Wait on all ordered buffers */
642 while (!list_empty(&started)) {
644 bd1 = list_entry(started.next, struct gfs2_bufdata,
646 list_del(&bd1->bd_le.le_list);
647 sdp->sd_log_num_databuf--;
651 bh->b_private = NULL;
652 gfs2_log_unlock(sdp);
656 gfs2_log_unlock(sdp);
661 /* We've removed all the ordered write bufs here, so only jdata left */
662 gfs2_assert_warn(sdp, sdp->sd_log_num_databuf == sdp->sd_log_num_jdata);
665 static int databuf_lo_scan_elements(struct gfs2_jdesc *jd, unsigned int start,
666 struct gfs2_log_descriptor *ld,
667 __be64 *ptr, int pass)
669 struct gfs2_inode *ip = jd->jd_inode->u.generic_ip;
670 struct gfs2_sbd *sdp = ip->i_sbd;
671 struct gfs2_glock *gl = ip->i_gl;
672 unsigned int blks = be32_to_cpu(ld->ld_data1);
673 struct buffer_head *bh_log, *bh_ip;
678 if (pass != 1 || be32_to_cpu(ld->ld_type) != GFS2_LOG_DESC_JDATA)
681 gfs2_replay_incr_blk(sdp, &start);
682 for (; blks; gfs2_replay_incr_blk(sdp, &start), blks--) {
683 blkno = be64_to_cpu(*ptr++);
684 esc = be64_to_cpu(*ptr++);
686 sdp->sd_found_blocks++;
688 if (gfs2_revoke_check(sdp, blkno, start))
691 error = gfs2_replay_read_block(jd, start, &bh_log);
695 bh_ip = gfs2_meta_new(gl, blkno);
696 memcpy(bh_ip->b_data, bh_log->b_data, bh_log->b_size);
700 __be32 *eptr = (__be32 *)bh_ip->b_data;
701 *eptr = cpu_to_be32(GFS2_MAGIC);
703 mark_buffer_dirty(bh_ip);
710 sdp->sd_replayed_blocks++;
716 /* FIXME: sort out accounting for log blocks etc. */
718 static void databuf_lo_after_scan(struct gfs2_jdesc *jd, int error, int pass)
720 struct gfs2_inode *ip = jd->jd_inode->u.generic_ip;
721 struct gfs2_sbd *sdp = ip->i_sbd;
724 gfs2_meta_sync(ip->i_gl,
725 DIO_START | DIO_WAIT);
732 gfs2_meta_sync(ip->i_gl, DIO_START | DIO_WAIT);
734 fs_info(sdp, "jid=%u: Replayed %u of %u data blocks\n",
735 jd->jd_jid, sdp->sd_replayed_blocks, sdp->sd_found_blocks);
738 static void databuf_lo_after_commit(struct gfs2_sbd *sdp, struct gfs2_ail *ai)
740 struct list_head *head = &sdp->sd_log_le_databuf;
741 struct gfs2_bufdata *bd;
743 while (!list_empty(head)) {
744 bd = list_entry(head->next, struct gfs2_bufdata, bd_le.le_list);
745 list_del(&bd->bd_le.le_list);
746 sdp->sd_log_num_databuf--;
747 sdp->sd_log_num_jdata--;
748 gfs2_unpin(sdp, bd->bd_bh, ai);
750 gfs2_assert_warn(sdp, !sdp->sd_log_num_databuf);
751 gfs2_assert_warn(sdp, !sdp->sd_log_num_jdata);
755 const struct gfs2_log_operations gfs2_glock_lops = {
756 .lo_add = glock_lo_add,
757 .lo_after_commit = glock_lo_after_commit,
761 const struct gfs2_log_operations gfs2_buf_lops = {
762 .lo_add = buf_lo_add,
763 .lo_incore_commit = buf_lo_incore_commit,
764 .lo_before_commit = buf_lo_before_commit,
765 .lo_after_commit = buf_lo_after_commit,
766 .lo_before_scan = buf_lo_before_scan,
767 .lo_scan_elements = buf_lo_scan_elements,
768 .lo_after_scan = buf_lo_after_scan,
772 const struct gfs2_log_operations gfs2_revoke_lops = {
773 .lo_add = revoke_lo_add,
774 .lo_before_commit = revoke_lo_before_commit,
775 .lo_before_scan = revoke_lo_before_scan,
776 .lo_scan_elements = revoke_lo_scan_elements,
777 .lo_after_scan = revoke_lo_after_scan,
781 const struct gfs2_log_operations gfs2_rg_lops = {
783 .lo_after_commit = rg_lo_after_commit,
787 const struct gfs2_log_operations gfs2_databuf_lops = {
788 .lo_add = databuf_lo_add,
789 .lo_incore_commit = buf_lo_incore_commit,
790 .lo_before_commit = databuf_lo_before_commit,
791 .lo_after_commit = databuf_lo_after_commit,
792 .lo_scan_elements = databuf_lo_scan_elements,
793 .lo_after_scan = databuf_lo_after_scan,
797 const struct gfs2_log_operations *gfs2_log_ops[] = {