jfs_logmgr.c (705cd0ea1cde2ce9225f1485c5a32c5841cacc5f) jfs_logmgr.c (73aaa22d5ffb2630456bac2f9a4ed9b81d0d7271)
1/*
2 * Copyright (C) International Business Machines Corp., 2000-2004
3 * Portions Copyright (C) Christoph Hellwig, 2001-2002
4 *
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation; either version 2 of the License, or
8 * (at your option) any later version.

--- 1044 unchanged lines hidden (view full) ---

1053 *
1054 * FUNCTION: write log SYNCPT record for specified log
1055 *
1056 * PARAMETERS: log - log structure
1057 * hard_sync - set to 1 to force metadata to be written
1058 */
1059void jfs_syncpt(struct jfs_log *log, int hard_sync)
1060{ LOG_LOCK(log);
1/*
2 * Copyright (C) International Business Machines Corp., 2000-2004
3 * Portions Copyright (C) Christoph Hellwig, 2001-2002
4 *
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation; either version 2 of the License, or
8 * (at your option) any later version.

--- 1044 unchanged lines hidden (view full) ---

1053 *
1054 * FUNCTION: write log SYNCPT record for specified log
1055 *
1056 * PARAMETERS: log - log structure
1057 * hard_sync - set to 1 to force metadata to be written
1058 */
1059void jfs_syncpt(struct jfs_log *log, int hard_sync)
1060{ LOG_LOCK(log);
1061 lmLogSync(log, hard_sync);
1061 if (!test_bit(log_QUIESCE, &log->flag))
1062 lmLogSync(log, hard_sync);
1062 LOG_UNLOCK(log);
1063}
1064
1065/*
1066 * NAME: lmLogOpen()
1067 *
1068 * FUNCTION: open the log on first open;
1069 * insert filesystem in the active list of the log.

--- 929 unchanged lines hidden (view full) ---

1999
2000 bio->bi_sector = bp->l_blkno << (log->l2bsize - 9);
2001 bio->bi_bdev = log->bdev;
2002 bio->bi_io_vec[0].bv_page = bp->l_page;
2003 bio->bi_io_vec[0].bv_len = LOGPSIZE;
2004 bio->bi_io_vec[0].bv_offset = bp->l_offset;
2005
2006 bio->bi_vcnt = 1;
1063 LOG_UNLOCK(log);
1064}
1065
1066/*
1067 * NAME: lmLogOpen()
1068 *
1069 * FUNCTION: open the log on first open;
1070 * insert filesystem in the active list of the log.

--- 929 unchanged lines hidden (view full) ---

2000
2001 bio->bi_sector = bp->l_blkno << (log->l2bsize - 9);
2002 bio->bi_bdev = log->bdev;
2003 bio->bi_io_vec[0].bv_page = bp->l_page;
2004 bio->bi_io_vec[0].bv_len = LOGPSIZE;
2005 bio->bi_io_vec[0].bv_offset = bp->l_offset;
2006
2007 bio->bi_vcnt = 1;
2008 bio->bi_idx = 0;
2007 bio->bi_size = LOGPSIZE;
2008
2009 bio->bi_end_io = lbmIODone;
2010 bio->bi_private = bp;
2011 submit_bio(READ_SYNC, bio);
2012
2013 wait_event(bp->l_ioevent, (bp->l_flag != lbmREAD));
2014

--- 124 unchanged lines hidden (view full) ---

2139 bio = bio_alloc(GFP_NOFS, 1);
2140 bio->bi_sector = bp->l_blkno << (log->l2bsize - 9);
2141 bio->bi_bdev = log->bdev;
2142 bio->bi_io_vec[0].bv_page = bp->l_page;
2143 bio->bi_io_vec[0].bv_len = LOGPSIZE;
2144 bio->bi_io_vec[0].bv_offset = bp->l_offset;
2145
2146 bio->bi_vcnt = 1;
2009 bio->bi_size = LOGPSIZE;
2010
2011 bio->bi_end_io = lbmIODone;
2012 bio->bi_private = bp;
2013 submit_bio(READ_SYNC, bio);
2014
2015 wait_event(bp->l_ioevent, (bp->l_flag != lbmREAD));
2016

--- 124 unchanged lines hidden (view full) ---

2141 bio = bio_alloc(GFP_NOFS, 1);
2142 bio->bi_sector = bp->l_blkno << (log->l2bsize - 9);
2143 bio->bi_bdev = log->bdev;
2144 bio->bi_io_vec[0].bv_page = bp->l_page;
2145 bio->bi_io_vec[0].bv_len = LOGPSIZE;
2146 bio->bi_io_vec[0].bv_offset = bp->l_offset;
2147
2148 bio->bi_vcnt = 1;
2149 bio->bi_idx = 0;
2147 bio->bi_size = LOGPSIZE;
2148
2149 bio->bi_end_io = lbmIODone;
2150 bio->bi_private = bp;
2151
2152 /* check if journaling to disk has been disabled */
2153 if (log->no_integrity) {
2154 bio->bi_size = 0;

--- 374 unchanged lines hidden ---
2150 bio->bi_size = LOGPSIZE;
2151
2152 bio->bi_end_io = lbmIODone;
2153 bio->bi_private = bp;
2154
2155 /* check if journaling to disk has been disabled */
2156 if (log->no_integrity) {
2157 bio->bi_size = 0;

--- 374 unchanged lines hidden ---