log 1609 arch/x86/kvm/x86.c r = kvm_get_dirty_log(kvm, log, &is_dirty); log 1615 arch/x86/kvm/x86.c kvm_mmu_slot_remove_write_access(kvm, log->slot); log 1617 arch/x86/kvm/x86.c memslot = &kvm->memslots[log->slot]; log 37 fs/jfs/file.c jfs_flush_journal(JFS_SBI(inode->i_sb)->log, 1); log 128 fs/jfs/inode.c jfs_flush_journal(JFS_SBI(inode->i_sb)->log, wait); log 427 fs/jfs/jfs_dmap.c struct jfs_log *log; log 443 fs/jfs/jfs_dmap.c log = (struct jfs_log *) JFS_SBI(tblk->sb)->log; log 444 fs/jfs/jfs_dmap.c logdiff(difft, lsn, log); log 535 fs/jfs/jfs_dmap.c LOGSYNC_LOCK(log, flags); log 538 fs/jfs/jfs_dmap.c logdiff(diffp, mp->lsn, log); log 547 fs/jfs/jfs_dmap.c logdiff(difft, tblk->clsn, log); log 548 fs/jfs/jfs_dmap.c logdiff(diffp, mp->clsn, log); log 552 fs/jfs/jfs_dmap.c mp->log = log; log 556 fs/jfs/jfs_dmap.c log->count++; log 561 fs/jfs/jfs_dmap.c LOGSYNC_UNLOCK(log, flags); log 2751 fs/jfs/jfs_imap.c struct jfs_log *log; log 2829 fs/jfs/jfs_imap.c log = JFS_SBI(tblk->sb)->log; log 2830 fs/jfs/jfs_imap.c LOGSYNC_LOCK(log, flags); log 2833 fs/jfs/jfs_imap.c logdiff(difft, lsn, log); log 2834 fs/jfs/jfs_imap.c logdiff(diffp, mp->lsn, log); log 2842 fs/jfs/jfs_imap.c logdiff(difft, tblk->clsn, log); log 2843 fs/jfs/jfs_imap.c logdiff(diffp, mp->clsn, log); log 2847 fs/jfs/jfs_imap.c mp->log = log; log 2850 fs/jfs/jfs_imap.c log->count++; log 2854 fs/jfs/jfs_imap.c LOGSYNC_UNLOCK(log, flags); log 170 fs/jfs/jfs_incore.h struct jfs_log *log; /* log */ log 225 fs/jfs/jfs_incore.h if (JFS_SBI(inode->i_sb)->log) log 91 fs/jfs/jfs_logmgr.c #define LOG_LOCK_INIT(log) mutex_init(&(log)->loglock) log 92 fs/jfs/jfs_logmgr.c #define LOG_LOCK(log) mutex_lock(&((log)->loglock)) log 93 fs/jfs/jfs_logmgr.c #define LOG_UNLOCK(log) mutex_unlock(&((log)->loglock)) log 100 fs/jfs/jfs_logmgr.c #define LOGGC_LOCK_INIT(log) spin_lock_init(&(log)->gclock) log 101 fs/jfs/jfs_logmgr.c #define LOGGC_LOCK(log) spin_lock_irq(&(log)->gclock) log 102 fs/jfs/jfs_logmgr.c #define LOGGC_UNLOCK(log) spin_unlock_irq(&(log)->gclock) log 217 fs/jfs/jfs_logmgr.c list_for_each_entry(sbi, &log->sb_list, log_list) { log 245 fs/jfs/jfs_logmgr.c log, tblk, lrd, tlck); log 247 fs/jfs/jfs_logmgr.c LOG_LOCK(log); log 261 fs/jfs/jfs_logmgr.c lsn = log->lsn; log 263 fs/jfs/jfs_logmgr.c LOGSYNC_LOCK(log, flags); log 269 fs/jfs/jfs_logmgr.c mp->log = log; log 271 fs/jfs/jfs_logmgr.c log->count++; log 274 fs/jfs/jfs_logmgr.c list_add_tail(&mp->synclist, &log->synclist); log 298 fs/jfs/jfs_logmgr.c log->count++; log 308 fs/jfs/jfs_logmgr.c logdiff(diffp, mp->lsn, log); log 309 fs/jfs/jfs_logmgr.c logdiff(difft, tblk->lsn, log); log 319 fs/jfs/jfs_logmgr.c LOGSYNC_UNLOCK(log, flags); log 325 fs/jfs/jfs_logmgr.c lsn = lmWriteRecord(log, tblk, lrd, tlck); log 330 fs/jfs/jfs_logmgr.c logdiff(diffp, lsn, log); log 331 fs/jfs/jfs_logmgr.c if (diffp >= log->nextsync) log 332 fs/jfs/jfs_logmgr.c lsn = lmLogSync(log, 0); log 335 fs/jfs/jfs_logmgr.c log->lsn = lsn; log 337 fs/jfs/jfs_logmgr.c LOG_UNLOCK(log); log 378 fs/jfs/jfs_logmgr.c bp = (struct lbuf *) log->bp; log 380 fs/jfs/jfs_logmgr.c dstoffset = log->eor; log 427 fs/jfs/jfs_logmgr.c lmNextPage(log); log 429 fs/jfs/jfs_logmgr.c bp = log->bp; log 452 fs/jfs/jfs_logmgr.c lmNextPage(log); log 454 fs/jfs/jfs_logmgr.c bp = (struct lbuf *) log->bp; log 506 fs/jfs/jfs_logmgr.c log->eor = dstoffset; log 508 fs/jfs/jfs_logmgr.c lsn = (log->page << L2LOGPSIZE) + dstoffset; log 525 fs/jfs/jfs_logmgr.c LOGGC_LOCK(log); log 529 fs/jfs/jfs_logmgr.c tblk->bp = log->bp; log 530 fs/jfs/jfs_logmgr.c tblk->pn = log->page; log 531 fs/jfs/jfs_logmgr.c tblk->eor = log->eor; log 534 fs/jfs/jfs_logmgr.c list_add_tail(&tblk->cqueue, &log->cqueue); log 536 fs/jfs/jfs_logmgr.c LOGGC_UNLOCK(log); log 540 fs/jfs/jfs_logmgr.c le16_to_cpu(lrd->type), log->bp, log->page, dstoffset); log 548 fs/jfs/jfs_logmgr.c lmNextPage(log); log 550 fs/jfs/jfs_logmgr.c bp = (struct lbuf *) log->bp; log 581 fs/jfs/jfs_logmgr.c pn = log->page; log 582 fs/jfs/jfs_logmgr.c bp = log->bp; log 586 fs/jfs/jfs_logmgr.c LOGGC_LOCK(log); log 592 fs/jfs/jfs_logmgr.c if (list_empty(&log->cqueue)) log 595 fs/jfs/jfs_logmgr.c tblk = list_entry(log->cqueue.prev, struct tblock, cqueue); log 611 fs/jfs/jfs_logmgr.c if (log->cflag & logGC_PAGEOUT) { log 619 fs/jfs/jfs_logmgr.c lbmWrite(log, bp, 0, 0); log 624 fs/jfs/jfs_logmgr.c log->cflag |= logGC_PAGEOUT; log 625 fs/jfs/jfs_logmgr.c lmGCwrite(log, 0); log 635 fs/jfs/jfs_logmgr.c lbmWrite(log, bp, lbmWRITE | lbmRELEASE | lbmFREE, 0); log 637 fs/jfs/jfs_logmgr.c LOGGC_UNLOCK(log); log 645 fs/jfs/jfs_logmgr.c log->page = (pn == log->size - 1) ? 2 : pn + 1; log 646 fs/jfs/jfs_logmgr.c log->eor = LOGPHDRSIZE; /* ? valid page empty/full at logRedo() */ log 649 fs/jfs/jfs_logmgr.c nextbp = lbmAllocate(log, log->page); log 650 fs/jfs/jfs_logmgr.c nextbp->l_eor = log->eor; log 651 fs/jfs/jfs_logmgr.c log->bp = nextbp; log 681 fs/jfs/jfs_logmgr.c LOGGC_LOCK(log); log 688 fs/jfs/jfs_logmgr.c LOGGC_UNLOCK(log); log 691 fs/jfs/jfs_logmgr.c jfs_info("lmGroup Commit: tblk = 0x%p, gcrtc = %d", tblk, log->gcrtc); log 696 fs/jfs/jfs_logmgr.c if ((!(log->cflag & logGC_PAGEOUT)) && (!list_empty(&log->cqueue)) && log 697 fs/jfs/jfs_logmgr.c (!(tblk->xflag & COMMIT_LAZY) || test_bit(log_FLUSH, &log->flag) log 704 fs/jfs/jfs_logmgr.c log->cflag |= logGC_PAGEOUT; log 706 fs/jfs/jfs_logmgr.c lmGCwrite(log, 0); log 713 fs/jfs/jfs_logmgr.c LOGGC_UNLOCK(log); log 723 fs/jfs/jfs_logmgr.c LOGGC_UNLOCK(log); log 729 fs/jfs/jfs_logmgr.c log->gcrtc++; log 733 fs/jfs/jfs_logmgr.c LOGGC_LOCK(log), LOGGC_UNLOCK(log)); log 739 fs/jfs/jfs_logmgr.c LOGGC_UNLOCK(log); log 771 fs/jfs/jfs_logmgr.c gcpn = list_entry(log->cqueue.next, struct tblock, cqueue)->pn; log 773 fs/jfs/jfs_logmgr.c list_for_each_entry(tblk, &log->cqueue, cqueue) { log 796 fs/jfs/jfs_logmgr.c lbmWrite(log, bp, lbmWRITE | lbmRELEASE | lbmGC, log 804 fs/jfs/jfs_logmgr.c lbmWrite(log, bp, lbmWRITE | lbmGC, cant_write); log 824 fs/jfs/jfs_logmgr.c struct jfs_log *log = bp->l_log; log 829 fs/jfs/jfs_logmgr.c spin_lock_irqsave(&log->gclock, flags); log 836 fs/jfs/jfs_logmgr.c list_for_each_entry_safe(tblk, temp, &log->cqueue, cqueue) { log 851 fs/jfs/jfs_logmgr.c if (tblk == log->flush_tblk) { log 853 fs/jfs/jfs_logmgr.c clear_bit(log_FLUSH, &log->flag); log 854 fs/jfs/jfs_logmgr.c log->flush_tblk = NULL; log 870 fs/jfs/jfs_logmgr.c log->gcrtc--; log 889 fs/jfs/jfs_logmgr.c lbmWrite(log, bp, lbmWRITE | lbmRELEASE | lbmFREE, log 902 fs/jfs/jfs_logmgr.c if ((!list_empty(&log->cqueue)) && log 903 fs/jfs/jfs_logmgr.c ((log->gcrtc > 0) || (tblk->bp->l_wqnext != NULL) || log 904 fs/jfs/jfs_logmgr.c test_bit(log_FLUSH, &log->flag) || jfs_tlocks_low)) log 908 fs/jfs/jfs_logmgr.c lmGCwrite(log, 1); log 916 fs/jfs/jfs_logmgr.c log->cflag &= ~logGC_PAGEOUT; log 919 fs/jfs/jfs_logmgr.c spin_unlock_irqrestore(&log->gclock, flags); log 954 fs/jfs/jfs_logmgr.c write_special_inodes(log, filemap_fdatawrite); log 956 fs/jfs/jfs_logmgr.c write_special_inodes(log, filemap_flush); log 965 fs/jfs/jfs_logmgr.c if (log->sync == log->syncpt) { log 966 fs/jfs/jfs_logmgr.c LOGSYNC_LOCK(log, flags); log 967 fs/jfs/jfs_logmgr.c if (list_empty(&log->synclist)) log 968 fs/jfs/jfs_logmgr.c log->sync = log->lsn; log 970 fs/jfs/jfs_logmgr.c lp = list_entry(log->synclist.next, log 972 fs/jfs/jfs_logmgr.c log->sync = lp->lsn; log 974 fs/jfs/jfs_logmgr.c LOGSYNC_UNLOCK(log, flags); log 982 fs/jfs/jfs_logmgr.c if (log->sync != log->syncpt) { log 987 fs/jfs/jfs_logmgr.c lrd.log.syncpt.sync = cpu_to_le32(log->sync); log 988 fs/jfs/jfs_logmgr.c lsn = lmWriteRecord(log, NULL, &lrd, NULL); log 990 fs/jfs/jfs_logmgr.c log->syncpt = log->sync; log 992 fs/jfs/jfs_logmgr.c lsn = log->lsn; log 997 fs/jfs/jfs_logmgr.c logsize = log->logsize; log 999 fs/jfs/jfs_logmgr.c logdiff(written, lsn, log); log 1026 fs/jfs/jfs_logmgr.c log->syncpt = log->sync = lsn; log 1027 fs/jfs/jfs_logmgr.c log->nextsync = delta; log 1030 fs/jfs/jfs_logmgr.c log->nextsync = written + more; log 1037 fs/jfs/jfs_logmgr.c if (!test_bit(log_SYNCBARRIER, &log->flag) && log 1038 fs/jfs/jfs_logmgr.c (written > LOGSYNC_BARRIER(logsize)) && log->active) { log 1039 fs/jfs/jfs_logmgr.c set_bit(log_SYNCBARRIER, &log->flag); log 1041 fs/jfs/jfs_logmgr.c log->syncpt); log 1045 fs/jfs/jfs_logmgr.c jfs_flush_journal(log, 0); log 1060 fs/jfs/jfs_logmgr.c { LOG_LOCK(log); log 1061 fs/jfs/jfs_logmgr.c lmLogSync(log, hard_sync); log 1062 fs/jfs/jfs_logmgr.c LOG_UNLOCK(log); log 1082 fs/jfs/jfs_logmgr.c struct jfs_log *log; log 1092 fs/jfs/jfs_logmgr.c list_for_each_entry(log, &jfs_external_logs, journal_list) { log 1093 fs/jfs/jfs_logmgr.c if (log->bdev->bd_dev == sbi->logdev) { log 1094 fs/jfs/jfs_logmgr.c if (memcmp(log->uuid, sbi->loguuid, log 1095 fs/jfs/jfs_logmgr.c sizeof(log->uuid))) { log 1103 fs/jfs/jfs_logmgr.c if ((rc = lmLogFileSystem(log, sbi, 1))) { log 1111 fs/jfs/jfs_logmgr.c if (!(log = kzalloc(sizeof(struct jfs_log), GFP_KERNEL))) { log 1115 fs/jfs/jfs_logmgr.c INIT_LIST_HEAD(&log->sb_list); log 1116 fs/jfs/jfs_logmgr.c init_waitqueue_head(&log->syncwait); log 1130 fs/jfs/jfs_logmgr.c if ((rc = bd_claim(bdev, log))) { log 1134 fs/jfs/jfs_logmgr.c log->bdev = bdev; log 1135 fs/jfs/jfs_logmgr.c memcpy(log->uuid, sbi->loguuid, sizeof(log->uuid)); log 1140 fs/jfs/jfs_logmgr.c if ((rc = lmLogInit(log))) log 1143 fs/jfs/jfs_logmgr.c list_add(&log->journal_list, &jfs_external_logs); log 1148 fs/jfs/jfs_logmgr.c if ((rc = lmLogFileSystem(log, sbi, 1))) log 1152 fs/jfs/jfs_logmgr.c LOG_LOCK(log); log 1153 fs/jfs/jfs_logmgr.c list_add(&sbi->log_list, &log->sb_list); log 1154 fs/jfs/jfs_logmgr.c sbi->log = log; log 1155 fs/jfs/jfs_logmgr.c LOG_UNLOCK(log); log 1164 fs/jfs/jfs_logmgr.c list_del(&log->journal_list); log 1165 fs/jfs/jfs_logmgr.c lbmLogShutdown(log); log 1175 fs/jfs/jfs_logmgr.c kfree(log); log 1183 fs/jfs/jfs_logmgr.c struct jfs_log *log; log 1186 fs/jfs/jfs_logmgr.c if (!(log = kzalloc(sizeof(struct jfs_log), GFP_KERNEL))) log 1188 fs/jfs/jfs_logmgr.c INIT_LIST_HEAD(&log->sb_list); log 1189 fs/jfs/jfs_logmgr.c init_waitqueue_head(&log->syncwait); log 1191 fs/jfs/jfs_logmgr.c set_bit(log_INLINELOG, &log->flag); log 1192 fs/jfs/jfs_logmgr.c log->bdev = sb->s_bdev; log 1193 fs/jfs/jfs_logmgr.c log->base = addressPXD(&JFS_SBI(sb)->logpxd); log 1194 fs/jfs/jfs_logmgr.c log->size = lengthPXD(&JFS_SBI(sb)->logpxd) >> log 1196 fs/jfs/jfs_logmgr.c log->l2bsize = sb->s_blocksize_bits; log 1202 fs/jfs/jfs_logmgr.c if ((rc = lmLogInit(log))) { log 1203 fs/jfs/jfs_logmgr.c kfree(log); log 1208 fs/jfs/jfs_logmgr.c list_add(&JFS_SBI(sb)->log_list, &log->sb_list); log 1209 fs/jfs/jfs_logmgr.c JFS_SBI(sb)->log = log; log 1242 fs/jfs/jfs_logmgr.c JFS_SBI(sb)->log = dummy_log; log 1277 fs/jfs/jfs_logmgr.c jfs_info("lmLogInit: log:0x%p", log); log 1280 fs/jfs/jfs_logmgr.c LOGGC_LOCK_INIT(log); log 1283 fs/jfs/jfs_logmgr.c LOG_LOCK_INIT(log); log 1285 fs/jfs/jfs_logmgr.c LOGSYNC_LOCK_INIT(log); log 1287 fs/jfs/jfs_logmgr.c INIT_LIST_HEAD(&log->synclist); log 1289 fs/jfs/jfs_logmgr.c INIT_LIST_HEAD(&log->cqueue); log 1290 fs/jfs/jfs_logmgr.c log->flush_tblk = NULL; log 1292 fs/jfs/jfs_logmgr.c log->count = 0; log 1297 fs/jfs/jfs_logmgr.c if ((rc = lbmLogInit(log))) log 1300 fs/jfs/jfs_logmgr.c if (!test_bit(log_INLINELOG, &log->flag)) log 1301 fs/jfs/jfs_logmgr.c log->l2bsize = L2LOGPSIZE; log 1304 fs/jfs/jfs_logmgr.c if (log->no_integrity) { log 1310 fs/jfs/jfs_logmgr.c bp = lbmAllocate(log , 0); log 1311 fs/jfs/jfs_logmgr.c log->bp = bp; log 1317 fs/jfs/jfs_logmgr.c if ((rc = lbmRead(log, 1, &bpsuper))) log 1336 fs/jfs/jfs_logmgr.c if (test_bit(log_INLINELOG,&log->flag)) { log 1337 fs/jfs/jfs_logmgr.c if (log->size != le32_to_cpu(logsuper->size)) { log 1342 fs/jfs/jfs_logmgr.c "size:0x%x", log, log 1343 fs/jfs/jfs_logmgr.c (unsigned long long) log->base, log->size); log 1345 fs/jfs/jfs_logmgr.c if (memcmp(logsuper->uuid, log->uuid, 16)) { log 1349 fs/jfs/jfs_logmgr.c log->size = le32_to_cpu(logsuper->size); log 1350 fs/jfs/jfs_logmgr.c log->l2bsize = le32_to_cpu(logsuper->l2bsize); log 1352 fs/jfs/jfs_logmgr.c "size:0x%x", log, log 1353 fs/jfs/jfs_logmgr.c (unsigned long long) log->base, log->size); log 1356 fs/jfs/jfs_logmgr.c log->page = le32_to_cpu(logsuper->end) / LOGPSIZE; log 1357 fs/jfs/jfs_logmgr.c log->eor = le32_to_cpu(logsuper->end) - (LOGPSIZE * log->page); log 1363 fs/jfs/jfs_logmgr.c if ((rc = lbmRead(log, log->page, &bp))) log 1369 fs/jfs/jfs_logmgr.c le32_to_cpu(logsuper->end), log->page, log->eor, log 1372 fs/jfs/jfs_logmgr.c log->bp = bp; log 1373 fs/jfs/jfs_logmgr.c bp->l_pn = log->page; log 1374 fs/jfs/jfs_logmgr.c bp->l_eor = log->eor; log 1377 fs/jfs/jfs_logmgr.c if (log->eor >= LOGPSIZE - LOGPTLRSIZE) log 1378 fs/jfs/jfs_logmgr.c lmNextPage(log); log 1394 fs/jfs/jfs_logmgr.c lrd.log.syncpt.sync = 0; log 1395 fs/jfs/jfs_logmgr.c lsn = lmWriteRecord(log, NULL, &lrd, NULL); log 1396 fs/jfs/jfs_logmgr.c bp = log->bp; log 1400 fs/jfs/jfs_logmgr.c lbmWrite(log, bp, lbmWRITE | lbmSYNC, 0); log 1408 fs/jfs/jfs_logmgr.c log->serial = le32_to_cpu(logsuper->serial) + 1; log 1409 fs/jfs/jfs_logmgr.c logsuper->serial = cpu_to_le32(log->serial); log 1410 fs/jfs/jfs_logmgr.c lbmDirectWrite(log, bpsuper, lbmWRITE | lbmRELEASE | lbmSYNC); log 1416 fs/jfs/jfs_logmgr.c log->logsize = (log->size - 2) << L2LOGPSIZE; log 1417 fs/jfs/jfs_logmgr.c log->lsn = lsn; log 1418 fs/jfs/jfs_logmgr.c log->syncpt = lsn; log 1419 fs/jfs/jfs_logmgr.c log->sync = log->syncpt; log 1420 fs/jfs/jfs_logmgr.c log->nextsync = LOGSYNC_DELTA(log->logsize); log 1423 fs/jfs/jfs_logmgr.c log->lsn, log->syncpt, log->sync); log 1428 fs/jfs/jfs_logmgr.c log->clsn = lsn; log 1436 fs/jfs/jfs_logmgr.c log->wqueue = NULL; log 1444 fs/jfs/jfs_logmgr.c lbmLogShutdown(log); log 1466 fs/jfs/jfs_logmgr.c struct jfs_log *log = sbi->log; log 1470 fs/jfs/jfs_logmgr.c jfs_info("lmLogClose: log:0x%p", log); log 1473 fs/jfs/jfs_logmgr.c LOG_LOCK(log); log 1475 fs/jfs/jfs_logmgr.c LOG_UNLOCK(log); log 1476 fs/jfs/jfs_logmgr.c sbi->log = NULL; log 1484 fs/jfs/jfs_logmgr.c if (test_bit(log_INLINELOG, &log->flag)) { log 1488 fs/jfs/jfs_logmgr.c rc = lmLogShutdown(log); log 1489 fs/jfs/jfs_logmgr.c kfree(log); log 1493 fs/jfs/jfs_logmgr.c if (!log->no_integrity) log 1494 fs/jfs/jfs_logmgr.c lmLogFileSystem(log, sbi, 0); log 1496 fs/jfs/jfs_logmgr.c if (!list_empty(&log->sb_list)) log 1506 fs/jfs/jfs_logmgr.c if (log->no_integrity) log 1512 fs/jfs/jfs_logmgr.c list_del(&log->journal_list); log 1513 fs/jfs/jfs_logmgr.c bdev = log->bdev; log 1514 fs/jfs/jfs_logmgr.c rc = lmLogShutdown(log); log 1519 fs/jfs/jfs_logmgr.c kfree(log); log 1544 fs/jfs/jfs_logmgr.c if (!log) log 1547 fs/jfs/jfs_logmgr.c jfs_info("jfs_flush_journal: log:0x%p wait=%d", log, wait); log 1549 fs/jfs/jfs_logmgr.c LOGGC_LOCK(log); log 1551 fs/jfs/jfs_logmgr.c if (!list_empty(&log->cqueue)) { log 1556 fs/jfs/jfs_logmgr.c target = list_entry(log->cqueue.prev, struct tblock, cqueue); log 1558 fs/jfs/jfs_logmgr.c if (test_bit(log_FLUSH, &log->flag)) { log 1565 fs/jfs/jfs_logmgr.c if (log->flush_tblk) log 1566 fs/jfs/jfs_logmgr.c log->flush_tblk = target; log 1569 fs/jfs/jfs_logmgr.c log->flush_tblk = target; log 1570 fs/jfs/jfs_logmgr.c set_bit(log_FLUSH, &log->flag); log 1575 fs/jfs/jfs_logmgr.c if (!(log->cflag & logGC_PAGEOUT)) { log 1576 fs/jfs/jfs_logmgr.c log->cflag |= logGC_PAGEOUT; log 1577 fs/jfs/jfs_logmgr.c lmGCwrite(log, 0); log 1581 fs/jfs/jfs_logmgr.c if ((wait > 1) || test_bit(log_SYNCBARRIER, &log->flag)) { log 1583 fs/jfs/jfs_logmgr.c set_bit(log_FLUSH, &log->flag); log 1584 fs/jfs/jfs_logmgr.c log->flush_tblk = NULL; log 1592 fs/jfs/jfs_logmgr.c LOGGC_UNLOCK(log); log 1595 fs/jfs/jfs_logmgr.c LOGGC_LOCK(log); log 1598 fs/jfs/jfs_logmgr.c LOGGC_UNLOCK(log); log 1603 fs/jfs/jfs_logmgr.c write_special_inodes(log, filemap_fdatawrite); log 1609 fs/jfs/jfs_logmgr.c if ((!list_empty(&log->cqueue)) || !list_empty(&log->synclist)) { log 1612 fs/jfs/jfs_logmgr.c write_special_inodes(log, filemap_fdatawrite); log 1613 fs/jfs/jfs_logmgr.c if (list_empty(&log->cqueue) && log 1614 fs/jfs/jfs_logmgr.c list_empty(&log->synclist)) log 1618 fs/jfs/jfs_logmgr.c assert(list_empty(&log->cqueue)); log 1621 fs/jfs/jfs_logmgr.c if (!list_empty(&log->synclist)) { log 1625 fs/jfs/jfs_logmgr.c list_for_each_entry(lp, &log->synclist, synclist) { log 1642 fs/jfs/jfs_logmgr.c WARN_ON(!list_empty(&log->synclist)); log 1644 fs/jfs/jfs_logmgr.c clear_bit(log_FLUSH, &log->flag); log 1671 fs/jfs/jfs_logmgr.c jfs_info("lmLogShutdown: log:0x%p", log); log 1673 fs/jfs/jfs_logmgr.c jfs_flush_journal(log, 2); log 1683 fs/jfs/jfs_logmgr.c lrd.log.syncpt.sync = 0; log 1685 fs/jfs/jfs_logmgr.c lsn = lmWriteRecord(log, NULL, &lrd, NULL); log 1686 fs/jfs/jfs_logmgr.c bp = log->bp; log 1689 fs/jfs/jfs_logmgr.c lbmWrite(log, log->bp, lbmWRITE | lbmRELEASE | lbmSYNC, 0); log 1690 fs/jfs/jfs_logmgr.c lbmIOWait(log->bp, lbmFREE); log 1691 fs/jfs/jfs_logmgr.c log->bp = NULL; log 1698 fs/jfs/jfs_logmgr.c if ((rc = lbmRead(log, 1, &bpsuper))) log 1704 fs/jfs/jfs_logmgr.c lbmDirectWrite(log, bpsuper, lbmWRITE | lbmRELEASE | lbmSYNC); log 1708 fs/jfs/jfs_logmgr.c lsn, log->page, log->eor); log 1714 fs/jfs/jfs_logmgr.c lbmLogShutdown(log); log 1749 fs/jfs/jfs_logmgr.c if ((rc = lbmRead(log, 1, &bpsuper))) log 1790 fs/jfs/jfs_logmgr.c lbmDirectWrite(log, bpsuper, lbmWRITE | lbmRELEASE | lbmSYNC); log 1821 fs/jfs/jfs_logmgr.c jfs_info("lbmLogInit: log:0x%p", log); log 1824 fs/jfs/jfs_logmgr.c log->bp = NULL; log 1827 fs/jfs/jfs_logmgr.c log->wqueue = NULL; log 1838 fs/jfs/jfs_logmgr.c init_waitqueue_head(&log->free_wait); log 1840 fs/jfs/jfs_logmgr.c log->lbuf_free = NULL; log 1863 fs/jfs/jfs_logmgr.c lbuf->l_log = log; log 1866 fs/jfs/jfs_logmgr.c lbuf->l_freelist = log->lbuf_free; log 1867 fs/jfs/jfs_logmgr.c log->lbuf_free = lbuf; log 1875 fs/jfs/jfs_logmgr.c lbmLogShutdown(log); log 1889 fs/jfs/jfs_logmgr.c jfs_info("lbmLogShutdown: log:0x%p", log); log 1891 fs/jfs/jfs_logmgr.c lbuf = log->lbuf_free; log 1915 fs/jfs/jfs_logmgr.c LCACHE_SLEEP_COND(log->free_wait, (bp = log->lbuf_free), flags); log 1916 fs/jfs/jfs_logmgr.c log->lbuf_free = bp->l_freelist; log 1925 fs/jfs/jfs_logmgr.c bp->l_blkno = log->base + (pn << (L2LOGPSIZE - log->l2bsize)); log 1950 fs/jfs/jfs_logmgr.c struct jfs_log *log = bp->l_log; log 1957 fs/jfs/jfs_logmgr.c bp->l_freelist = log->lbuf_free; log 1958 fs/jfs/jfs_logmgr.c log->lbuf_free = bp; log 1960 fs/jfs/jfs_logmgr.c wake_up(&log->free_wait); log 2000 fs/jfs/jfs_logmgr.c *bpp = bp = lbmAllocate(log, pn); log 2007 fs/jfs/jfs_logmgr.c bio->bi_sector = bp->l_blkno << (log->l2bsize - 9); log 2008 fs/jfs/jfs_logmgr.c bio->bi_bdev = log->bdev; log 2052 fs/jfs/jfs_logmgr.c log->base + (bp->l_pn << (L2LOGPSIZE - log->l2bsize)); log 2067 fs/jfs/jfs_logmgr.c tail = log->wqueue; log 2073 fs/jfs/jfs_logmgr.c log->wqueue = bp; log 2076 fs/jfs/jfs_logmgr.c log->wqueue = bp; log 2097 fs/jfs/jfs_logmgr.c LOGGC_UNLOCK(log); log 2099 fs/jfs/jfs_logmgr.c LOGGC_LOCK(log); log 2122 fs/jfs/jfs_logmgr.c log->base + (bp->l_pn << (L2LOGPSIZE - log->l2bsize)); log 2143 fs/jfs/jfs_logmgr.c struct jfs_log *log = bp->l_log; log 2148 fs/jfs/jfs_logmgr.c bio->bi_sector = bp->l_blkno << (log->l2bsize - 9); log 2149 fs/jfs/jfs_logmgr.c bio->bi_bdev = log->bdev; log 2162 fs/jfs/jfs_logmgr.c if (log->no_integrity) { log 2206 fs/jfs/jfs_logmgr.c struct jfs_log *log; log 2256 fs/jfs/jfs_logmgr.c log = bp->l_log; log 2257 fs/jfs/jfs_logmgr.c log->clsn = (bp->l_pn << L2LOGPSIZE) + bp->l_ceor; log 2265 fs/jfs/jfs_logmgr.c tail = log->wqueue; log 2273 fs/jfs/jfs_logmgr.c log->wqueue = NULL; log 2402 fs/jfs/jfs_logmgr.c sbi = list_entry(log->sb_list.next, struct jfs_sb_info, log_list); log 2405 fs/jfs/jfs_logmgr.c bp = lbmAllocate(log, 1); log 2473 fs/jfs/jfs_logmgr.c lrd_ptr->log.syncpt.sync = 0; log 349 fs/jfs/jfs_logmgr.h } log; log 490 fs/jfs/jfs_logmgr.h #define LOGSYNC_LOCK_INIT(log) spin_lock_init(&(log)->synclock) log 491 fs/jfs/jfs_logmgr.h #define LOGSYNC_LOCK(log, flags) spin_lock_irqsave(&(log)->synclock, flags) log 493 fs/jfs/jfs_logmgr.h spin_unlock_irqrestore(&(log)->synclock, flags) log 498 fs/jfs/jfs_logmgr.h diff = (lsn) - (log)->syncpt;\ log 500 fs/jfs/jfs_logmgr.h diff += (log)->logsize;\ log 194 fs/jfs/jfs_metapage.c mp->log = NULL; log 300 fs/jfs/jfs_metapage.c struct jfs_log *log = mp->log; log 306 fs/jfs/jfs_metapage.c if (!log) log 309 fs/jfs/jfs_metapage.c LOGSYNC_LOCK(log, flags); log 311 fs/jfs/jfs_metapage.c mp->log = NULL; log 314 fs/jfs/jfs_metapage.c log->count--; log 317 fs/jfs/jfs_metapage.c LOGSYNC_UNLOCK(log, flags); log 391 fs/jfs/jfs_metapage.c if (mp->log && !(mp->log->cflag & logGC_PAGEOUT)) log 392 fs/jfs/jfs_metapage.c jfs_flush_journal(mp->log, 0); log 46 fs/jfs/jfs_metapage.h struct jfs_log *log; log 440 fs/jfs/jfs_mount.c j_sb->s_logdev = cpu_to_le32(new_encode_dev(sbi->log->bdev->bd_dev)); log 441 fs/jfs/jfs_mount.c j_sb->s_logserial = cpu_to_le32(sbi->log->serial); log 496 fs/jfs/jfs_mount.c struct jfs_log *log = JFS_SBI(sb)->log; log 504 fs/jfs/jfs_mount.c lmLog(log, NULL, &lrd, NULL); log 366 fs/jfs/jfs_txnmgr.c struct jfs_log *log; log 369 fs/jfs/jfs_txnmgr.c log = JFS_SBI(sb)->log; log 380 fs/jfs/jfs_txnmgr.c if (test_bit(log_SYNCBARRIER, &log->flag) || log 381 fs/jfs/jfs_txnmgr.c test_bit(log_QUIESCE, &log->flag)) { log 383 fs/jfs/jfs_txnmgr.c TXN_SLEEP(&log->syncwait); log 435 fs/jfs/jfs_txnmgr.c ++log->logtid; log 436 fs/jfs/jfs_txnmgr.c tblk->logtid = log->logtid; log 438 fs/jfs/jfs_txnmgr.c ++log->active; log 463 fs/jfs/jfs_txnmgr.c struct jfs_log *log; log 465 fs/jfs/jfs_txnmgr.c log = JFS_SBI(sb)->log; log 474 fs/jfs/jfs_txnmgr.c if (test_bit(log_SYNCBARRIER, &log->flag) || log 475 fs/jfs/jfs_txnmgr.c test_bit(log_QUIESCE, &log->flag)) { log 477 fs/jfs/jfs_txnmgr.c TXN_SLEEP(&log->syncwait); log 504 fs/jfs/jfs_txnmgr.c struct jfs_log *log; log 515 fs/jfs/jfs_txnmgr.c log = JFS_SBI(tblk->sb)->log; log 529 fs/jfs/jfs_txnmgr.c spin_lock_irq(&log->gclock); // LOGGC_LOCK log 531 fs/jfs/jfs_txnmgr.c spin_unlock_irq(&log->gclock); // LOGGC_UNLOCK log 548 fs/jfs/jfs_txnmgr.c if (--log->active == 0) { log 549 fs/jfs/jfs_txnmgr.c clear_bit(log_FLUSH, &log->flag); log 554 fs/jfs/jfs_txnmgr.c if (test_bit(log_SYNCBARRIER, &log->flag)) { log 558 fs/jfs/jfs_txnmgr.c jfs_syncpt(log, 1); log 560 fs/jfs/jfs_txnmgr.c jfs_info("log barrier off: 0x%x", log->lsn); log 563 fs/jfs/jfs_txnmgr.c clear_bit(log_SYNCBARRIER, &log->flag); log 566 fs/jfs/jfs_txnmgr.c TXN_WAKEUP(&log->syncwait); log 915 fs/jfs/jfs_txnmgr.c struct jfs_log *log; log 920 fs/jfs/jfs_txnmgr.c log = JFS_SBI(tblk->sb)->log; log 944 fs/jfs/jfs_txnmgr.c LOGSYNC_LOCK(log, flags); log 946 fs/jfs/jfs_txnmgr.c logdiff(difft, tblk->clsn, log); log 947 fs/jfs/jfs_txnmgr.c logdiff(diffp, mp->clsn, log); log 952 fs/jfs/jfs_txnmgr.c LOGSYNC_UNLOCK(log, flags); log 983 fs/jfs/jfs_txnmgr.c LOGSYNC_LOCK(log, flags); log 984 fs/jfs/jfs_txnmgr.c log->count--; log 986 fs/jfs/jfs_txnmgr.c LOGSYNC_UNLOCK(log, flags); log 1143 fs/jfs/jfs_txnmgr.c struct jfs_log *log; log 1170 fs/jfs/jfs_txnmgr.c log = JFS_SBI(sb)->log; log 1171 fs/jfs/jfs_txnmgr.c cd.log = log; log 1274 fs/jfs/jfs_txnmgr.c if ((rc = txLog(log, tblk, &cd))) log 1313 fs/jfs/jfs_txnmgr.c lsn = lmLog(log, tblk, lrd, NULL); log 1315 fs/jfs/jfs_txnmgr.c lmGroupCommit(log, tblk); log 1402 fs/jfs/jfs_txnmgr.c lrd->log.redopage.fileset = cpu_to_le32(JFS_IP(ip)->fileset); log 1403 fs/jfs/jfs_txnmgr.c lrd->log.redopage.inode = cpu_to_le32(ip->i_ino); log 1408 fs/jfs/jfs_txnmgr.c xtLog(log, tblk, lrd, tlck); log 1412 fs/jfs/jfs_txnmgr.c dtLog(log, tblk, lrd, tlck); log 1416 fs/jfs/jfs_txnmgr.c diLog(log, tblk, lrd, tlck, cd); log 1420 fs/jfs/jfs_txnmgr.c mapLog(log, tblk, lrd, tlck); log 1424 fs/jfs/jfs_txnmgr.c dataLog(log, tblk, lrd, tlck); log 1451 fs/jfs/jfs_txnmgr.c lrd->log.redopage.type = cpu_to_le16(LOG_INODE); log 1452 fs/jfs/jfs_txnmgr.c lrd->log.redopage.l2linesize = cpu_to_le16(L2INODESLOTSIZE); log 1454 fs/jfs/jfs_txnmgr.c pxd = &lrd->log.redopage.pxd; log 1465 fs/jfs/jfs_txnmgr.c lrd->backchain = cpu_to_le32(lmLog(log, tblk, lrd, tlck)); log 1495 fs/jfs/jfs_txnmgr.c lrd->log.noredoinoext.iagnum = log 1497 fs/jfs/jfs_txnmgr.c lrd->log.noredoinoext.inoext_idx = log 1502 fs/jfs/jfs_txnmgr.c lrd->backchain = cpu_to_le32(lmLog(log, tblk, lrd, NULL)); log 1529 fs/jfs/jfs_txnmgr.c lrd->log.updatemap.type = log 1532 fs/jfs/jfs_txnmgr.c lrd->log.updatemap.type = log 1534 fs/jfs/jfs_txnmgr.c lrd->log.updatemap.nxd = cpu_to_le16(1); log 1535 fs/jfs/jfs_txnmgr.c lrd->log.updatemap.pxd = pxdlock->pxd; log 1537 fs/jfs/jfs_txnmgr.c cpu_to_le32(lmLog(log, tblk, lrd, NULL)); log 1562 fs/jfs/jfs_txnmgr.c lrd->log.redopage.type = cpu_to_le16(LOG_DATA); log 1563 fs/jfs/jfs_txnmgr.c lrd->log.redopage.l2linesize = cpu_to_le16(L2DATASLOTSIZE); log 1565 fs/jfs/jfs_txnmgr.c pxd = &lrd->log.redopage.pxd; log 1586 fs/jfs/jfs_txnmgr.c lrd->backchain = cpu_to_le32(lmLog(log, tblk, lrd, tlck)); log 1609 fs/jfs/jfs_txnmgr.c lrd->log.redopage.type = cpu_to_le16(LOG_DTREE); log 1610 fs/jfs/jfs_txnmgr.c lrd->log.redopage.l2linesize = cpu_to_le16(L2DTSLOTSIZE); log 1612 fs/jfs/jfs_txnmgr.c pxd = &lrd->log.redopage.pxd; log 1615 fs/jfs/jfs_txnmgr.c lrd->log.redopage.type |= cpu_to_le16(LOG_BTROOT); log 1630 fs/jfs/jfs_txnmgr.c lrd->log.redopage.type |= cpu_to_le16(LOG_EXTEND); log 1632 fs/jfs/jfs_txnmgr.c lrd->log.redopage.type |= cpu_to_le16(LOG_NEW); log 1636 fs/jfs/jfs_txnmgr.c lrd->backchain = cpu_to_le32(lmLog(log, tblk, lrd, tlck)); log 1665 fs/jfs/jfs_txnmgr.c lrd->backchain = cpu_to_le32(lmLog(log, tblk, lrd, tlck)); log 1687 fs/jfs/jfs_txnmgr.c lrd->backchain = cpu_to_le32(lmLog(log, tblk, lrd, NULL)); log 1719 fs/jfs/jfs_txnmgr.c lrd->log.redopage.type = cpu_to_le16(LOG_XTREE); log 1720 fs/jfs/jfs_txnmgr.c lrd->log.redopage.l2linesize = cpu_to_le16(L2XTSLOTSIZE); log 1722 fs/jfs/jfs_txnmgr.c page_pxd = &lrd->log.redopage.pxd; log 1725 fs/jfs/jfs_txnmgr.c lrd->log.redopage.type |= cpu_to_le16(LOG_BTROOT); log 1728 fs/jfs/jfs_txnmgr.c lrd->log.redopage.type |= log 1755 fs/jfs/jfs_txnmgr.c lrd->backchain = cpu_to_le32(lmLog(log, tblk, lrd, tlck)); log 1846 fs/jfs/jfs_txnmgr.c cpu_to_le32(lmLog(log, tblk, lrd, NULL)); log 1852 fs/jfs/jfs_txnmgr.c cpu_to_le32(lmLog(log, tblk, lrd, tlck)); log 1861 fs/jfs/jfs_txnmgr.c lrd->log.updatemap.type = cpu_to_le16(LOG_FREEXADLIST); log 1864 fs/jfs/jfs_txnmgr.c lrd->log.updatemap.nxd = log 1870 fs/jfs/jfs_txnmgr.c lrd->backchain = cpu_to_le32(lmLog(log, tblk, lrd, tlck)); log 1966 fs/jfs/jfs_txnmgr.c lrd->backchain = cpu_to_le32(lmLog(log, tblk, lrd, tlck)); log 1980 fs/jfs/jfs_txnmgr.c lrd->log.updatemap.type = cpu_to_le16(LOG_FREEPXD); log 1981 fs/jfs/jfs_txnmgr.c lrd->log.updatemap.nxd = cpu_to_le16(1); log 1982 fs/jfs/jfs_txnmgr.c lrd->log.updatemap.pxd = pxdlock->pxd; log 1985 fs/jfs/jfs_txnmgr.c cpu_to_le32(lmLog(log, tblk, lrd, NULL)); log 1997 fs/jfs/jfs_txnmgr.c lrd->log.updatemap.type = log 2001 fs/jfs/jfs_txnmgr.c lrd->log.updatemap.nxd = log 2008 fs/jfs/jfs_txnmgr.c cpu_to_le32(lmLog(log, tblk, lrd, tlck)); log 2108 fs/jfs/jfs_txnmgr.c pxd = &lrd->log.redopage.pxd; log 2110 fs/jfs/jfs_txnmgr.c lrd->backchain = cpu_to_le32(lmLog(log, tblk, lrd, NULL)); log 2123 fs/jfs/jfs_txnmgr.c lrd->log.updatemap.type = cpu_to_le16(LOG_FREEPXD); log 2124 fs/jfs/jfs_txnmgr.c lrd->log.updatemap.nxd = cpu_to_le16(1); log 2125 fs/jfs/jfs_txnmgr.c lrd->log.updatemap.pxd = pxdlock->pxd; log 2126 fs/jfs/jfs_txnmgr.c lrd->backchain = cpu_to_le32(lmLog(log, tblk, lrd, NULL)); log 2150 fs/jfs/jfs_txnmgr.c lrd->log.updatemap.type = log 2153 fs/jfs/jfs_txnmgr.c lrd->log.updatemap.type = log 2155 fs/jfs/jfs_txnmgr.c lrd->log.updatemap.nxd = cpu_to_le16(1); log 2156 fs/jfs/jfs_txnmgr.c lrd->log.updatemap.pxd = pxdlock->pxd; log 2158 fs/jfs/jfs_txnmgr.c cpu_to_le32(lmLog(log, tblk, lrd, NULL)); log 2703 fs/jfs/jfs_txnmgr.c struct jfs_log *log; log 2717 fs/jfs/jfs_txnmgr.c log = (struct jfs_log *) JFS_SBI(tblk->sb)->log; log 2719 fs/jfs/jfs_txnmgr.c spin_lock_irq(&log->gclock); // LOGGC_LOCK log 2724 fs/jfs/jfs_txnmgr.c log->gcrtc--; log 2732 fs/jfs/jfs_txnmgr.c spin_unlock_irq(&log->gclock); // LOGGC_UNLOCK log 2737 fs/jfs/jfs_txnmgr.c spin_unlock_irq(&log->gclock); // LOGGC_UNLOCK log 2845 fs/jfs/jfs_txnmgr.c struct jfs_log *log = mp->log; log 2848 fs/jfs/jfs_txnmgr.c assert(log); log 2866 fs/jfs/jfs_txnmgr.c struct jfs_log *log = JFS_SBI(sb)->log; log 2869 fs/jfs/jfs_txnmgr.c set_bit(log_QUIESCE, &log->flag); log 2911 fs/jfs/jfs_txnmgr.c jfs_flush_journal(log, 0); log 2921 fs/jfs/jfs_txnmgr.c struct jfs_log *log = JFS_SBI(sb)->log; log 2923 fs/jfs/jfs_txnmgr.c clear_bit(log_QUIESCE, &log->flag); log 2924 fs/jfs/jfs_txnmgr.c TXN_WAKEUP(&log->syncwait); log 276 fs/jfs/jfs_txnmgr.h struct jfs_log *log; /* log */ log 57 fs/jfs/jfs_umount.c struct jfs_log *log; log 67 fs/jfs/jfs_umount.c if ((log = sbi->log)) log 71 fs/jfs/jfs_umount.c jfs_flush_journal(log, 1); log 121 fs/jfs/jfs_umount.c if (log) { /* log = NULL if read-only mount */ log 139 fs/jfs/jfs_umount.c struct jfs_log *log = sbi->log; log 141 fs/jfs/jfs_umount.c if (!log) log 149 fs/jfs/jfs_umount.c jfs_flush_journal(log, 1); log 3442 fs/jfs/jfs_xtree.c int freed, log; log 3457 fs/jfs/jfs_xtree.c log = 1; log 3459 fs/jfs/jfs_xtree.c log = 0; log 3519 fs/jfs/jfs_xtree.c if (log) log 3548 fs/jfs/jfs_xtree.c if (log) { log 3626 fs/jfs/jfs_xtree.c if (log) { /* COMMIT_PWMAP */ log 3667 fs/jfs/jfs_xtree.c if (!log) { /* COMMIT_WAMP */ log 3689 fs/jfs/jfs_xtree.c if (log) { /* COMMIT_PWMAP */ log 3713 fs/jfs/jfs_xtree.c if (log) { /* COMMIT_PWMAP */ log 3757 fs/jfs/jfs_xtree.c if (log) { /* COMMIT_PWMAP */ log 3806 fs/jfs/jfs_xtree.c if (log && mp->lid && (tblk->last != mp->lid) && log 3832 fs/jfs/jfs_xtree.c if (log) { /* COMMIT_PWMAP */ log 3871 fs/jfs/jfs_xtree.c if (log) { /* COMMIT_PWMAP */ log 69 fs/jfs/resize.c struct jfs_log *log = sbi->log; log 196 fs/jfs/resize.c if ((rc = lmLogFormat(log, newLogAddress, newLogSize))) log 219 fs/jfs/resize.c lmLogShutdown(log); log 260 fs/jfs/resize.c if ((rc = lmLogFormat(log, newLogAddress, newLogSize))) log 266 fs/jfs/resize.c log->base = newLogAddress; log 267 fs/jfs/resize.c log->size = newLogSize >> (L2LOGPSIZE - sb->s_blocksize_bits); log 268 fs/jfs/resize.c if ((rc = lmLogInit(log))) log 502 fs/jfs/resize.c j_sb->s_logserial = cpu_to_le32(log->serial); log 486 fs/jfs/super.c sbi->log = NULL; log 549 fs/jfs/super.c struct jfs_log *log = sbi->log; log 553 fs/jfs/super.c lmLogShutdown(log); log 561 fs/jfs/super.c struct jfs_log *log = sbi->log; log 566 fs/jfs/super.c if ((rc = lmLogInit(log))) log 582 fs/jfs/super.c struct jfs_log *log = JFS_SBI(sb)->log; log 585 fs/jfs/super.c if (log) { log 586 fs/jfs/super.c jfs_flush_journal(log, wait); log 587 fs/jfs/super.c jfs_syncpt(log, 0); log 134 fs/xfs/xfs_log.c log->l_grant_trace = ktrace_alloc(XLOG_TRACE_LOGGRANT_SIZE, KM_NOFS); log 140 fs/xfs/xfs_log.c ktrace_free(log->l_grant_trace); log 151 fs/xfs/xfs_log.c ktrace_enter(log->l_grant_trace, log 153 fs/xfs/xfs_log.c (void *)log->l_reserve_headq, log 154 fs/xfs/xfs_log.c (void *)log->l_write_headq, log 155 fs/xfs/xfs_log.c (void *)((unsigned long)log->l_grant_reserve_cycle), log 156 fs/xfs/xfs_log.c (void *)((unsigned long)log->l_grant_reserve_bytes), log 157 fs/xfs/xfs_log.c (void *)((unsigned long)log->l_grant_write_cycle), log 158 fs/xfs/xfs_log.c (void *)((unsigned long)log->l_grant_write_bytes), log 159 fs/xfs/xfs_log.c (void *)((unsigned long)log->l_curr_cycle), log 160 fs/xfs/xfs_log.c (void *)((unsigned long)log->l_curr_block), log 161 fs/xfs/xfs_log.c (void *)((unsigned long)CYCLE_LSN(log->l_tail_lsn)), log 162 fs/xfs/xfs_log.c (void *)((unsigned long)BLOCK_LSN(log->l_tail_lsn)), log 240 fs/xfs/xfs_log.c log->l_grant_write_bytes -= bytes; log 241 fs/xfs/xfs_log.c if (log->l_grant_write_bytes < 0) { log 242 fs/xfs/xfs_log.c log->l_grant_write_bytes += log->l_logsize; log 243 fs/xfs/xfs_log.c log->l_grant_write_cycle--; log 246 fs/xfs/xfs_log.c log->l_grant_reserve_bytes -= bytes; log 247 fs/xfs/xfs_log.c if ((log)->l_grant_reserve_bytes < 0) { log 248 fs/xfs/xfs_log.c log->l_grant_reserve_bytes += log->l_logsize; log 249 fs/xfs/xfs_log.c log->l_grant_reserve_cycle--; log 257 fs/xfs/xfs_log.c int tmp = log->l_logsize - log->l_grant_write_bytes; log 259 fs/xfs/xfs_log.c log->l_grant_write_bytes += bytes; log 261 fs/xfs/xfs_log.c log->l_grant_write_cycle++; log 262 fs/xfs/xfs_log.c log->l_grant_write_bytes = bytes - tmp; log 269 fs/xfs/xfs_log.c int tmp = log->l_logsize - log->l_grant_reserve_bytes; log 271 fs/xfs/xfs_log.c log->l_grant_reserve_bytes += bytes; log 273 fs/xfs/xfs_log.c log->l_grant_reserve_cycle++; log 274 fs/xfs/xfs_log.c log->l_grant_reserve_bytes = bytes - tmp; log 281 fs/xfs/xfs_log.c xlog_grant_add_space_write(log, bytes); log 282 fs/xfs/xfs_log.c xlog_grant_add_space_reserve(log, bytes); log 336 fs/xfs/xfs_log.c xlog_t *log = mp->m_log; log 340 fs/xfs/xfs_log.c if (XLOG_FORCED_SHUTDOWN(log) || log 361 fs/xfs/xfs_log.c xlog_trace_loggrant(log, ticket, "xfs_log_done: (non-permanent)"); log 362 fs/xfs/xfs_log.c xlog_ungrant_log_space(log, ticket); log 363 fs/xfs/xfs_log.c xlog_ticket_put(log, ticket); log 365 fs/xfs/xfs_log.c xlog_trace_loggrant(log, ticket, "xfs_log_done: (permanent)"); log 366 fs/xfs/xfs_log.c xlog_regrant_reserve_log_space(log, ticket); log 398 fs/xfs/xfs_log.c xlog_t *log = mp->m_log; log 408 fs/xfs/xfs_log.c if (log->l_flags & XLOG_IO_ERROR) log 411 fs/xfs/xfs_log.c return xlog_state_sync_all(log, flags, log_flushed); log 413 fs/xfs/xfs_log.c return xlog_state_sync(log, lsn, flags, log_flushed); log 467 fs/xfs/xfs_log.c xlog_t *log = mp->m_log; log 470 fs/xfs/xfs_log.c if (xlog_state_release_iclog(log, iclog)) { log 497 fs/xfs/xfs_log.c xlog_t *log = mp->m_log; log 504 fs/xfs/xfs_log.c if (XLOG_FORCED_SHUTDOWN(log)) log 512 fs/xfs/xfs_log.c xlog_trace_loggrant(log, internal_ticket, "xfs_log_reserve: existing ticket (permanent trans)"); log 514 fs/xfs/xfs_log.c retval = xlog_regrant_write_log_space(log, internal_ticket); log 517 fs/xfs/xfs_log.c internal_ticket = xlog_ticket_get(log, unit_bytes, cnt, log 523 fs/xfs/xfs_log.c xlog_trace_loggrant(log, internal_ticket, log 530 fs/xfs/xfs_log.c retval = xlog_grant_log_space(log, internal_ticket); log 662 fs/xfs/xfs_log.c xlog_t *log = mp->m_log; log 687 fs/xfs/xfs_log.c ASSERT(error || !(XLOG_FORCED_SHUTDOWN(log))); log 690 fs/xfs/xfs_log.c first_iclog = iclog = log->l_iclog; log 699 fs/xfs/xfs_log.c if (! (XLOG_FORCED_SHUTDOWN(log))) { log 724 fs/xfs/xfs_log.c spin_lock(&log->l_icloglock); log 725 fs/xfs/xfs_log.c iclog = log->l_iclog; log 727 fs/xfs/xfs_log.c spin_unlock(&log->l_icloglock); log 728 fs/xfs/xfs_log.c xlog_state_want_sync(log, iclog); log 729 fs/xfs/xfs_log.c error = xlog_state_release_iclog(log, iclog); log 731 fs/xfs/xfs_log.c spin_lock(&log->l_icloglock); log 734 fs/xfs/xfs_log.c if (!XLOG_FORCED_SHUTDOWN(log)) { log 736 fs/xfs/xfs_log.c &log->l_icloglock, s); log 738 fs/xfs/xfs_log.c spin_unlock(&log->l_icloglock); log 741 fs/xfs/xfs_log.c spin_unlock(&log->l_icloglock); log 744 fs/xfs/xfs_log.c xlog_trace_loggrant(log, tic, "unmount rec"); log 745 fs/xfs/xfs_log.c xlog_ungrant_log_space(log, tic); log 746 fs/xfs/xfs_log.c xlog_ticket_put(log, tic); log 762 fs/xfs/xfs_log.c spin_lock(&log->l_icloglock); log 763 fs/xfs/xfs_log.c iclog = log->l_iclog; log 765 fs/xfs/xfs_log.c spin_unlock(&log->l_icloglock); log 767 fs/xfs/xfs_log.c xlog_state_want_sync(log, iclog); log 768 fs/xfs/xfs_log.c error = xlog_state_release_iclog(log, iclog); log 770 fs/xfs/xfs_log.c spin_lock(&log->l_icloglock); log 777 fs/xfs/xfs_log.c &log->l_icloglock, s); log 779 fs/xfs/xfs_log.c spin_unlock(&log->l_icloglock); log 812 fs/xfs/xfs_log.c xlog_t *log = mp->m_log; log 814 fs/xfs/xfs_log.c if (XLOG_FORCED_SHUTDOWN(log)) log 829 fs/xfs/xfs_log.c xlog_t *log = mp->m_log; log 832 fs/xfs/xfs_log.c if (XLOG_FORCED_SHUTDOWN(log)) log 837 fs/xfs/xfs_log.c spin_lock(&log->l_icloglock); log 838 fs/xfs/xfs_log.c tail_lsn = log->l_last_sync_lsn; log 839 fs/xfs/xfs_log.c spin_unlock(&log->l_icloglock); log 842 fs/xfs/xfs_log.c spin_lock(&log->l_grant_lock); log 848 fs/xfs/xfs_log.c log->l_tail_lsn = tail_lsn; log 851 fs/xfs/xfs_log.c if ((tic = log->l_write_headq)) { log 853 fs/xfs/xfs_log.c if (log->l_flags & XLOG_ACTIVE_RECOVERY) log 856 fs/xfs/xfs_log.c cycle = log->l_grant_write_cycle; log 857 fs/xfs/xfs_log.c bytes = log->l_grant_write_bytes; log 858 fs/xfs/xfs_log.c free_bytes = xlog_space_left(log, cycle, bytes); log 868 fs/xfs/xfs_log.c } while (tic != log->l_write_headq); log 870 fs/xfs/xfs_log.c if ((tic = log->l_reserve_headq)) { log 872 fs/xfs/xfs_log.c if (log->l_flags & XLOG_ACTIVE_RECOVERY) log 875 fs/xfs/xfs_log.c cycle = log->l_grant_reserve_cycle; log 876 fs/xfs/xfs_log.c bytes = log->l_grant_reserve_bytes; log 877 fs/xfs/xfs_log.c free_bytes = xlog_space_left(log, cycle, bytes); log 889 fs/xfs/xfs_log.c } while (tic != log->l_reserve_headq); log 891 fs/xfs/xfs_log.c spin_unlock(&log->l_grant_lock); log 904 fs/xfs/xfs_log.c xlog_t *log = mp->m_log; log 909 fs/xfs/xfs_log.c spin_lock(&log->l_icloglock); log 910 fs/xfs/xfs_log.c if (((log->l_covered_state == XLOG_STATE_COVER_NEED) || log 911 fs/xfs/xfs_log.c (log->l_covered_state == XLOG_STATE_COVER_NEED2)) log 913 fs/xfs/xfs_log.c && xlog_iclogs_empty(log)) { log 914 fs/xfs/xfs_log.c if (log->l_covered_state == XLOG_STATE_COVER_NEED) log 915 fs/xfs/xfs_log.c log->l_covered_state = XLOG_STATE_COVER_DONE; log 917 fs/xfs/xfs_log.c ASSERT(log->l_covered_state == XLOG_STATE_COVER_NEED2); log 918 fs/xfs/xfs_log.c log->l_covered_state = XLOG_STATE_COVER_DONE2; log 922 fs/xfs/xfs_log.c spin_unlock(&log->l_icloglock); log 947 fs/xfs/xfs_log.c xlog_t *log = mp->m_log; log 950 fs/xfs/xfs_log.c spin_lock(&log->l_grant_lock); log 952 fs/xfs/xfs_log.c log->l_tail_lsn = tail_lsn; log 954 fs/xfs/xfs_log.c tail_lsn = log->l_tail_lsn = log->l_last_sync_lsn; log 956 fs/xfs/xfs_log.c spin_unlock(&log->l_grant_lock); log 983 fs/xfs/xfs_log.c tail_bytes = BBTOB(BLOCK_LSN(log->l_tail_lsn)); log 984 fs/xfs/xfs_log.c tail_cycle = CYCLE_LSN(log->l_tail_lsn); log 986 fs/xfs/xfs_log.c free_bytes = log->l_logsize - (bytes - tail_bytes); log 998 fs/xfs/xfs_log.c xfs_fs_cmn_err(CE_ALERT, log->l_mp, log 1004 fs/xfs/xfs_log.c free_bytes = log->l_logsize; log 1127 fs/xfs/xfs_log.c log->l_iclog_bufs = XLOG_MAX_ICLOGS; log 1129 fs/xfs/xfs_log.c log->l_iclog_bufs = mp->m_logbufs; log 1135 fs/xfs/xfs_log.c size = log->l_iclog_size = mp->m_logbsize; log 1136 fs/xfs/xfs_log.c log->l_iclog_size_log = 0; log 1138 fs/xfs/xfs_log.c log->l_iclog_size_log++; log 1150 fs/xfs/xfs_log.c log->l_iclog_hsize = xhdrs << BBSHIFT; log 1151 fs/xfs/xfs_log.c log->l_iclog_heads = xhdrs; log 1154 fs/xfs/xfs_log.c log->l_iclog_hsize = BBSIZE; log 1155 fs/xfs/xfs_log.c log->l_iclog_heads = 1; log 1161 fs/xfs/xfs_log.c log->l_iclog_size = XLOG_BIG_RECORD_BSIZE; log 1162 fs/xfs/xfs_log.c log->l_iclog_size_log = XLOG_BIG_RECORD_BSHIFT; log 1165 fs/xfs/xfs_log.c log->l_iclog_hsize = BBSIZE; log 1166 fs/xfs/xfs_log.c log->l_iclog_heads = 1; log 1173 fs/xfs/xfs_log.c log->l_iclog_size = XLOG_BIG_RECORD_BSIZE; log 1174 fs/xfs/xfs_log.c log->l_iclog_size_log = XLOG_BIG_RECORD_BSHIFT; log 1178 fs/xfs/xfs_log.c log->l_iclog_bufs = 3; log 1181 fs/xfs/xfs_log.c log->l_iclog_bufs = 4; log 1184 fs/xfs/xfs_log.c log->l_iclog_bufs = 8; log 1195 fs/xfs/xfs_log.c mp->m_logbufs = log->l_iclog_bufs; log 1197 fs/xfs/xfs_log.c mp->m_logbsize = log->l_iclog_size; log 1212 fs/xfs/xfs_log.c xlog_t *log; log 1220 fs/xfs/xfs_log.c log = (xlog_t *)kmem_zalloc(sizeof(xlog_t), KM_SLEEP); log 1222 fs/xfs/xfs_log.c log->l_mp = mp; log 1223 fs/xfs/xfs_log.c log->l_targ = log_target; log 1224 fs/xfs/xfs_log.c log->l_logsize = BBTOB(num_bblks); log 1225 fs/xfs/xfs_log.c log->l_logBBstart = blk_offset; log 1226 fs/xfs/xfs_log.c log->l_logBBsize = num_bblks; log 1227 fs/xfs/xfs_log.c log->l_covered_state = XLOG_STATE_COVER_IDLE; log 1228 fs/xfs/xfs_log.c log->l_flags |= XLOG_ACTIVE_RECOVERY; log 1230 fs/xfs/xfs_log.c log->l_prev_block = -1; log 1231 fs/xfs/xfs_log.c log->l_tail_lsn = xlog_assign_lsn(1, 0); log 1233 fs/xfs/xfs_log.c log->l_last_sync_lsn = log->l_tail_lsn; log 1234 fs/xfs/xfs_log.c log->l_curr_cycle = 1; /* 0 is bad since this is initial value */ log 1235 fs/xfs/xfs_log.c log->l_grant_reserve_cycle = 1; log 1236 fs/xfs/xfs_log.c log->l_grant_write_cycle = 1; log 1239 fs/xfs/xfs_log.c log->l_sectbb_log = mp->m_sb.sb_logsectlog - BBSHIFT; log 1240 fs/xfs/xfs_log.c ASSERT(log->l_sectbb_log <= mp->m_sectbb_log); log 1242 fs/xfs/xfs_log.c ASSERT(log->l_sectbb_log == 0 || log 1243 fs/xfs/xfs_log.c log->l_logBBstart == 0 || log 1247 fs/xfs/xfs_log.c log->l_sectbb_mask = (1 << log->l_sectbb_log) - 1; log 1249 fs/xfs/xfs_log.c xlog_get_iclog_buffer_size(mp, log); log 1251 fs/xfs/xfs_log.c bp = xfs_buf_get_empty(log->l_iclog_size, mp->m_logdev_targp); log 1257 fs/xfs/xfs_log.c log->l_xbuf = bp; log 1259 fs/xfs/xfs_log.c spin_lock_init(&log->l_icloglock); log 1260 fs/xfs/xfs_log.c spin_lock_init(&log->l_grant_lock); log 1261 fs/xfs/xfs_log.c sv_init(&log->l_flush_wait, 0, "flush_wait"); log 1263 fs/xfs/xfs_log.c xlog_trace_loggrant_alloc(log); log 1267 fs/xfs/xfs_log.c iclogp = &log->l_iclog; log 1275 fs/xfs/xfs_log.c iclogsize = log->l_iclog_size; log 1276 fs/xfs/xfs_log.c ASSERT(log->l_iclog_size >= 4096); log 1277 fs/xfs/xfs_log.c for (i=0; i < log->l_iclog_bufs; i++) { log 1284 fs/xfs/xfs_log.c bp = xfs_buf_get_noaddr(log->l_iclog_size, mp->m_logdev_targp); log 1293 fs/xfs/xfs_log.c log->l_iclog_bak[i] = (xfs_caddr_t)&(iclog->ic_header); log 1299 fs/xfs/xfs_log.c xfs_sb_version_haslogv2(&log->l_mp->m_sb) ? 2 : 1); log 1300 fs/xfs/xfs_log.c head->h_size = cpu_to_be32(log->l_iclog_size); log 1305 fs/xfs/xfs_log.c iclog->ic_size = XFS_BUF_SIZE(bp) - log->l_iclog_hsize; log 1307 fs/xfs/xfs_log.c iclog->ic_log = log; log 1311 fs/xfs/xfs_log.c iclog->ic_datap = (char *)iclog->hic_data + log->l_iclog_hsize; log 1322 fs/xfs/xfs_log.c *iclogp = log->l_iclog; /* complete ring */ log 1323 fs/xfs/xfs_log.c log->l_iclog->ic_prev = prev_iclog; /* re-write 1st prev ptr */ log 1325 fs/xfs/xfs_log.c return log; log 1366 fs/xfs/xfs_log.c xlog_t *log = mp->m_log; /* pointer to the log */ log 1375 fs/xfs/xfs_log.c ASSERT(BTOBB(need_bytes) < log->l_logBBsize); log 1377 fs/xfs/xfs_log.c spin_lock(&log->l_grant_lock); log 1378 fs/xfs/xfs_log.c free_bytes = xlog_space_left(log, log 1379 fs/xfs/xfs_log.c log->l_grant_reserve_cycle, log 1380 fs/xfs/xfs_log.c log->l_grant_reserve_bytes); log 1381 fs/xfs/xfs_log.c tail_lsn = log->l_tail_lsn; log 1390 fs/xfs/xfs_log.c free_threshold = MAX(free_threshold, (log->l_logBBsize >> 2)); log 1395 fs/xfs/xfs_log.c if (threshold_block >= log->l_logBBsize) { log 1396 fs/xfs/xfs_log.c threshold_block -= log->l_logBBsize; log 1404 fs/xfs/xfs_log.c if (XFS_LSN_CMP(threshold_lsn, log->l_last_sync_lsn) > 0) log 1405 fs/xfs/xfs_log.c threshold_lsn = log->l_last_sync_lsn; log 1407 fs/xfs/xfs_log.c spin_unlock(&log->l_grant_lock); log 1415 fs/xfs/xfs_log.c !XLOG_FORCED_SHUTDOWN(log)) log 1457 fs/xfs/xfs_log.c int v2 = xfs_sb_version_haslogv2(&log->l_mp->m_sb); log 1463 fs/xfs/xfs_log.c count_init = log->l_iclog_hsize + iclog->ic_offset; log 1466 fs/xfs/xfs_log.c if (v2 && log->l_mp->m_sb.sb_logsunit > 1) { log 1468 fs/xfs/xfs_log.c count = XLOG_LSUNITTOB(log, XLOG_BTOLSUNIT(log, count_init)); log 1474 fs/xfs/xfs_log.c ASSERT((v2 && log->l_mp->m_sb.sb_logsunit > 1 && log 1475 fs/xfs/xfs_log.c roundoff < log->l_mp->m_sb.sb_logsunit) log 1477 fs/xfs/xfs_log.c (log->l_mp->m_sb.sb_logsunit <= 1 && log 1481 fs/xfs/xfs_log.c spin_lock(&log->l_grant_lock); log 1482 fs/xfs/xfs_log.c xlog_grant_add_space(log, roundoff); log 1483 fs/xfs/xfs_log.c spin_unlock(&log->l_grant_lock); log 1486 fs/xfs/xfs_log.c xlog_pack_data(log, iclog, roundoff); log 1505 fs/xfs/xfs_log.c if (XFS_BUF_ADDR(bp) + BTOBB(count) > log->l_logBBsize) { log 1506 fs/xfs/xfs_log.c split = count - (BBTOB(log->l_logBBsize - XFS_BUF_ADDR(bp))); log 1507 fs/xfs/xfs_log.c count = BBTOB(log->l_logBBsize - XFS_BUF_ADDR(bp)); log 1521 fs/xfs/xfs_log.c if (!split && (log->l_mp->m_flags & XFS_MOUNT_BARRIER)) log 1524 fs/xfs/xfs_log.c ASSERT(XFS_BUF_ADDR(bp) <= log->l_logBBsize-1); log 1525 fs/xfs/xfs_log.c ASSERT(XFS_BUF_ADDR(bp) + BTOBB(count) <= log->l_logBBsize); log 1527 fs/xfs/xfs_log.c xlog_verify_iclog(log, iclog, count, B_TRUE); log 1530 fs/xfs/xfs_log.c XFS_BUF_SET_ADDR(bp, XFS_BUF_ADDR(bp) + log->l_logBBstart); log 1538 fs/xfs/xfs_log.c xfs_ioerror_alert("xlog_sync", log->l_mp, bp, log 1554 fs/xfs/xfs_log.c if (log->l_mp->m_flags & XFS_MOUNT_BARRIER) log 1570 fs/xfs/xfs_log.c ASSERT(XFS_BUF_ADDR(bp) <= log->l_logBBsize-1); log 1571 fs/xfs/xfs_log.c ASSERT(XFS_BUF_ADDR(bp) + BTOBB(count) <= log->l_logBBsize); log 1574 fs/xfs/xfs_log.c XFS_BUF_SET_ADDR(bp, XFS_BUF_ADDR(bp) + log->l_logBBstart); log 1577 fs/xfs/xfs_log.c xfs_ioerror_alert("xlog_sync (split)", log->l_mp, log 1595 fs/xfs/xfs_log.c iclog = log->l_iclog; log 1596 fs/xfs/xfs_log.c for (i=0; i<log->l_iclog_bufs; i++) { log 1605 fs/xfs/xfs_log.c spinlock_destroy(&log->l_icloglock); log 1606 fs/xfs/xfs_log.c spinlock_destroy(&log->l_grant_lock); log 1608 fs/xfs/xfs_log.c xfs_buf_free(log->l_xbuf); log 1609 fs/xfs/xfs_log.c xlog_trace_loggrant_dealloc(log); log 1610 fs/xfs/xfs_log.c log->l_mp->m_log = NULL; log 1611 fs/xfs/xfs_log.c kmem_free(log); log 1624 fs/xfs/xfs_log.c spin_lock(&log->l_icloglock); log 1629 fs/xfs/xfs_log.c spin_unlock(&log->l_icloglock); log 1791 fs/xfs/xfs_log.c xlog_t *log = mp->m_log; log 1844 fs/xfs/xfs_log.c if ((error = xlog_state_get_iclog_space(log, len, &iclog, ticket, log 1936 fs/xfs/xfs_log.c xlog_verify_dest_ptr(log, ptr); log 1949 fs/xfs/xfs_log.c xlog_state_finish_copy(log, iclog, record_cnt, data_cnt); log 1951 fs/xfs/xfs_log.c if ((error = xlog_state_release_iclog(log, iclog))) log 1959 fs/xfs/xfs_log.c xlog_state_finish_copy(log, iclog, record_cnt, data_cnt); log 1961 fs/xfs/xfs_log.c xlog_state_want_sync(log, iclog); log 1965 fs/xfs/xfs_log.c } else if ((error = xlog_state_release_iclog(log, iclog))) log 1977 fs/xfs/xfs_log.c xlog_state_finish_copy(log, iclog, record_cnt, data_cnt); log 1983 fs/xfs/xfs_log.c return xlog_state_release_iclog(log, iclog); log 2008 fs/xfs/xfs_log.c iclog = log->l_iclog; log 2043 fs/xfs/xfs_log.c } while (iclog != log->l_iclog); log 2054 fs/xfs/xfs_log.c switch (log->l_covered_state) { log 2058 fs/xfs/xfs_log.c log->l_covered_state = XLOG_STATE_COVER_NEED; log 2063 fs/xfs/xfs_log.c log->l_covered_state = XLOG_STATE_COVER_NEED2; log 2065 fs/xfs/xfs_log.c log->l_covered_state = XLOG_STATE_COVER_NEED; log 2070 fs/xfs/xfs_log.c log->l_covered_state = XLOG_STATE_COVER_IDLE; log 2072 fs/xfs/xfs_log.c log->l_covered_state = XLOG_STATE_COVER_NEED; log 2088 fs/xfs/xfs_log.c lsn_log = log->l_iclog; log 2099 fs/xfs/xfs_log.c } while (lsn_log != log->l_iclog); log 2123 fs/xfs/xfs_log.c spin_lock(&log->l_icloglock); log 2124 fs/xfs/xfs_log.c first_iclog = iclog = log->l_iclog; log 2138 fs/xfs/xfs_log.c first_iclog = log->l_iclog; log 2139 fs/xfs/xfs_log.c iclog = log->l_iclog; log 2193 fs/xfs/xfs_log.c lowest_lsn = xlog_get_lowest_lsn(log); log 2204 fs/xfs/xfs_log.c spin_unlock(&log->l_icloglock); log 2210 fs/xfs/xfs_log.c spin_lock(&log->l_grant_lock); log 2211 fs/xfs/xfs_log.c ASSERT(XFS_LSN_CMP(log->l_last_sync_lsn, log 2213 fs/xfs/xfs_log.c log->l_last_sync_lsn = log 2215 fs/xfs/xfs_log.c spin_unlock(&log->l_grant_lock); log 2218 fs/xfs/xfs_log.c spin_unlock(&log->l_icloglock); log 2248 fs/xfs/xfs_log.c spin_lock(&log->l_icloglock); log 2258 fs/xfs/xfs_log.c xlog_state_clean_log(log); log 2269 fs/xfs/xfs_log.c xfs_fs_cmn_err(CE_WARN, log->l_mp, log 2281 fs/xfs/xfs_log.c first_iclog = iclog = log->l_iclog; log 2303 fs/xfs/xfs_log.c if (log->l_iclog->ic_state & (XLOG_STATE_ACTIVE|XLOG_STATE_IOERROR)) log 2305 fs/xfs/xfs_log.c spin_unlock(&log->l_icloglock); log 2308 fs/xfs/xfs_log.c sv_broadcast(&log->l_flush_wait); log 2330 fs/xfs/xfs_log.c xlog_t *log = iclog->ic_log; log 2332 fs/xfs/xfs_log.c spin_lock(&log->l_icloglock); log 2348 fs/xfs/xfs_log.c spin_unlock(&log->l_icloglock); log 2360 fs/xfs/xfs_log.c spin_unlock(&log->l_icloglock); log 2361 fs/xfs/xfs_log.c xlog_state_do_callback(log, aborted, iclog); /* also cleans log */ log 2397 fs/xfs/xfs_log.c spin_lock(&log->l_icloglock); log 2398 fs/xfs/xfs_log.c if (XLOG_FORCED_SHUTDOWN(log)) { log 2399 fs/xfs/xfs_log.c spin_unlock(&log->l_icloglock); log 2403 fs/xfs/xfs_log.c iclog = log->l_iclog; log 2409 fs/xfs/xfs_log.c sv_wait(&log->l_flush_wait, 0, &log->l_icloglock, 0); log 2424 fs/xfs/xfs_log.c ticket->t_curr_res -= log->l_iclog_hsize; log 2426 fs/xfs/xfs_log.c log->l_iclog_hsize, log 2428 fs/xfs/xfs_log.c head->h_cycle = cpu_to_be32(log->l_curr_cycle); log 2430 fs/xfs/xfs_log.c xlog_assign_lsn(log->l_curr_cycle, log->l_curr_block)); log 2431 fs/xfs/xfs_log.c ASSERT(log->l_curr_block >= 0); log 2444 fs/xfs/xfs_log.c xlog_state_switch_iclogs(log, iclog, iclog->ic_size); log 2455 fs/xfs/xfs_log.c spin_unlock(&log->l_icloglock); log 2456 fs/xfs/xfs_log.c error = xlog_state_release_iclog(log, iclog); log 2460 fs/xfs/xfs_log.c spin_unlock(&log->l_icloglock); log 2476 fs/xfs/xfs_log.c xlog_state_switch_iclogs(log, iclog, iclog->ic_size); log 2481 fs/xfs/xfs_log.c spin_unlock(&log->l_icloglock); log 2505 fs/xfs/xfs_log.c if (log->l_flags & XLOG_ACTIVE_RECOVERY) log 2510 fs/xfs/xfs_log.c spin_lock(&log->l_grant_lock); log 2511 fs/xfs/xfs_log.c xlog_trace_loggrant(log, tic, "xlog_grant_log_space: enter"); log 2514 fs/xfs/xfs_log.c if (log->l_reserve_headq) { log 2515 fs/xfs/xfs_log.c xlog_ins_ticketq(&log->l_reserve_headq, tic); log 2516 fs/xfs/xfs_log.c xlog_trace_loggrant(log, tic, log 2522 fs/xfs/xfs_log.c if (XLOG_FORCED_SHUTDOWN(log)) log 2526 fs/xfs/xfs_log.c sv_wait(&tic->t_wait, PINOD|PLTWAIT, &log->l_grant_lock, s); log 2531 fs/xfs/xfs_log.c xlog_trace_loggrant(log, tic, log 2533 fs/xfs/xfs_log.c spin_lock(&log->l_grant_lock); log 2541 fs/xfs/xfs_log.c if (XLOG_FORCED_SHUTDOWN(log)) log 2544 fs/xfs/xfs_log.c free_bytes = xlog_space_left(log, log->l_grant_reserve_cycle, log 2545 fs/xfs/xfs_log.c log->l_grant_reserve_bytes); log 2548 fs/xfs/xfs_log.c xlog_ins_ticketq(&log->l_reserve_headq, tic); log 2549 fs/xfs/xfs_log.c xlog_trace_loggrant(log, tic, log 2552 fs/xfs/xfs_log.c sv_wait(&tic->t_wait, PINOD|PLTWAIT, &log->l_grant_lock, s); log 2554 fs/xfs/xfs_log.c if (XLOG_FORCED_SHUTDOWN(log)) { log 2555 fs/xfs/xfs_log.c spin_lock(&log->l_grant_lock); log 2559 fs/xfs/xfs_log.c xlog_trace_loggrant(log, tic, log 2561 fs/xfs/xfs_log.c xlog_grant_push_ail(log->l_mp, need_bytes); log 2562 fs/xfs/xfs_log.c spin_lock(&log->l_grant_lock); log 2565 fs/xfs/xfs_log.c xlog_del_ticketq(&log->l_reserve_headq, tic); log 2568 fs/xfs/xfs_log.c xlog_grant_add_space(log, need_bytes); log 2570 fs/xfs/xfs_log.c tail_lsn = log->l_tail_lsn; log 2577 fs/xfs/xfs_log.c if (CYCLE_LSN(tail_lsn) != log->l_grant_write_cycle) { log 2578 fs/xfs/xfs_log.c ASSERT(log->l_grant_write_cycle-1 == CYCLE_LSN(tail_lsn)); log 2579 fs/xfs/xfs_log.c ASSERT(log->l_grant_write_bytes <= BBTOB(BLOCK_LSN(tail_lsn))); log 2582 fs/xfs/xfs_log.c xlog_trace_loggrant(log, tic, "xlog_grant_log_space: exit"); log 2583 fs/xfs/xfs_log.c xlog_verify_grant_head(log, 1); log 2584 fs/xfs/xfs_log.c spin_unlock(&log->l_grant_lock); log 2589 fs/xfs/xfs_log.c xlog_del_ticketq(&log->l_reserve_headq, tic); log 2590 fs/xfs/xfs_log.c xlog_trace_loggrant(log, tic, "xlog_grant_log_space: err_ret"); log 2598 fs/xfs/xfs_log.c spin_unlock(&log->l_grant_lock); log 2625 fs/xfs/xfs_log.c if (log->l_flags & XLOG_ACTIVE_RECOVERY) log 2629 fs/xfs/xfs_log.c spin_lock(&log->l_grant_lock); log 2630 fs/xfs/xfs_log.c xlog_trace_loggrant(log, tic, "xlog_regrant_write_log_space: enter"); log 2632 fs/xfs/xfs_log.c if (XLOG_FORCED_SHUTDOWN(log)) log 2642 fs/xfs/xfs_log.c if ((ntic = log->l_write_headq)) { log 2643 fs/xfs/xfs_log.c free_bytes = xlog_space_left(log, log->l_grant_write_cycle, log 2644 fs/xfs/xfs_log.c log->l_grant_write_bytes); log 2653 fs/xfs/xfs_log.c } while (ntic != log->l_write_headq); log 2655 fs/xfs/xfs_log.c if (ntic != log->l_write_headq) { log 2657 fs/xfs/xfs_log.c xlog_ins_ticketq(&log->l_write_headq, tic); log 2659 fs/xfs/xfs_log.c xlog_trace_loggrant(log, tic, log 2663 fs/xfs/xfs_log.c &log->l_grant_lock, s); log 2667 fs/xfs/xfs_log.c if (XLOG_FORCED_SHUTDOWN(log)) { log 2668 fs/xfs/xfs_log.c spin_lock(&log->l_grant_lock); log 2672 fs/xfs/xfs_log.c xlog_trace_loggrant(log, tic, log 2674 fs/xfs/xfs_log.c xlog_grant_push_ail(log->l_mp, tic->t_unit_res); log 2675 fs/xfs/xfs_log.c spin_lock(&log->l_grant_lock); log 2682 fs/xfs/xfs_log.c if (XLOG_FORCED_SHUTDOWN(log)) log 2685 fs/xfs/xfs_log.c free_bytes = xlog_space_left(log, log->l_grant_write_cycle, log 2686 fs/xfs/xfs_log.c log->l_grant_write_bytes); log 2689 fs/xfs/xfs_log.c xlog_ins_ticketq(&log->l_write_headq, tic); log 2691 fs/xfs/xfs_log.c sv_wait(&tic->t_wait, PINOD|PLTWAIT, &log->l_grant_lock, s); log 2694 fs/xfs/xfs_log.c if (XLOG_FORCED_SHUTDOWN(log)) { log 2695 fs/xfs/xfs_log.c spin_lock(&log->l_grant_lock); log 2699 fs/xfs/xfs_log.c xlog_trace_loggrant(log, tic, log 2701 fs/xfs/xfs_log.c xlog_grant_push_ail(log->l_mp, need_bytes); log 2702 fs/xfs/xfs_log.c spin_lock(&log->l_grant_lock); log 2705 fs/xfs/xfs_log.c xlog_del_ticketq(&log->l_write_headq, tic); log 2708 fs/xfs/xfs_log.c xlog_grant_add_space_write(log, need_bytes); log 2710 fs/xfs/xfs_log.c tail_lsn = log->l_tail_lsn; log 2711 fs/xfs/xfs_log.c if (CYCLE_LSN(tail_lsn) != log->l_grant_write_cycle) { log 2712 fs/xfs/xfs_log.c ASSERT(log->l_grant_write_cycle-1 == CYCLE_LSN(tail_lsn)); log 2713 fs/xfs/xfs_log.c ASSERT(log->l_grant_write_bytes <= BBTOB(BLOCK_LSN(tail_lsn))); log 2717 fs/xfs/xfs_log.c xlog_trace_loggrant(log, tic, "xlog_regrant_write_log_space: exit"); log 2718 fs/xfs/xfs_log.c xlog_verify_grant_head(log, 1); log 2719 fs/xfs/xfs_log.c spin_unlock(&log->l_grant_lock); log 2725 fs/xfs/xfs_log.c xlog_del_ticketq(&log->l_reserve_headq, tic); log 2726 fs/xfs/xfs_log.c xlog_trace_loggrant(log, tic, "xlog_regrant_write_log_space: err_ret"); log 2734 fs/xfs/xfs_log.c spin_unlock(&log->l_grant_lock); log 2750 fs/xfs/xfs_log.c xlog_trace_loggrant(log, ticket, log 2755 fs/xfs/xfs_log.c spin_lock(&log->l_grant_lock); log 2756 fs/xfs/xfs_log.c xlog_grant_sub_space(log, ticket->t_curr_res); log 2759 fs/xfs/xfs_log.c xlog_trace_loggrant(log, ticket, log 2761 fs/xfs/xfs_log.c xlog_verify_grant_head(log, 1); log 2765 fs/xfs/xfs_log.c spin_unlock(&log->l_grant_lock); log 2769 fs/xfs/xfs_log.c xlog_grant_add_space_reserve(log, ticket->t_unit_res); log 2770 fs/xfs/xfs_log.c xlog_trace_loggrant(log, ticket, log 2772 fs/xfs/xfs_log.c xlog_verify_grant_head(log, 0); log 2773 fs/xfs/xfs_log.c spin_unlock(&log->l_grant_lock); log 2800 fs/xfs/xfs_log.c spin_lock(&log->l_grant_lock); log 2801 fs/xfs/xfs_log.c xlog_trace_loggrant(log, ticket, "xlog_ungrant_log_space: enter"); log 2803 fs/xfs/xfs_log.c xlog_grant_sub_space(log, ticket->t_curr_res); log 2805 fs/xfs/xfs_log.c xlog_trace_loggrant(log, ticket, "xlog_ungrant_log_space: sub current"); log 2812 fs/xfs/xfs_log.c xlog_grant_sub_space(log, ticket->t_unit_res*ticket->t_cnt); log 2815 fs/xfs/xfs_log.c xlog_trace_loggrant(log, ticket, "xlog_ungrant_log_space: exit"); log 2816 fs/xfs/xfs_log.c xlog_verify_grant_head(log, 1); log 2817 fs/xfs/xfs_log.c spin_unlock(&log->l_grant_lock); log 2818 fs/xfs/xfs_log.c xfs_log_move_tail(log->l_mp, 1); log 2842 fs/xfs/xfs_log.c if (!atomic_dec_and_lock(&iclog->ic_refcnt, &log->l_icloglock)) log 2846 fs/xfs/xfs_log.c spin_unlock(&log->l_icloglock); log 2854 fs/xfs/xfs_log.c xlog_assign_tail_lsn(log->l_mp); log 2857 fs/xfs/xfs_log.c iclog->ic_header.h_tail_lsn = cpu_to_be64(log->l_tail_lsn); log 2858 fs/xfs/xfs_log.c xlog_verify_tail_lsn(log, iclog, log->l_tail_lsn); log 2861 fs/xfs/xfs_log.c spin_unlock(&log->l_icloglock); log 2871 fs/xfs/xfs_log.c return xlog_sync(log, iclog); log 2892 fs/xfs/xfs_log.c iclog->ic_header.h_prev_block = cpu_to_be32(log->l_prev_block); log 2893 fs/xfs/xfs_log.c log->l_prev_block = log->l_curr_block; log 2894 fs/xfs/xfs_log.c log->l_prev_cycle = log->l_curr_cycle; log 2897 fs/xfs/xfs_log.c log->l_curr_block += BTOBB(eventual_size)+BTOBB(log->l_iclog_hsize); log 2900 fs/xfs/xfs_log.c if (xfs_sb_version_haslogv2(&log->l_mp->m_sb) && log 2901 fs/xfs/xfs_log.c log->l_mp->m_sb.sb_logsunit > 1) { log 2902 fs/xfs/xfs_log.c __uint32_t sunit_bb = BTOBB(log->l_mp->m_sb.sb_logsunit); log 2903 fs/xfs/xfs_log.c log->l_curr_block = roundup(log->l_curr_block, sunit_bb); log 2906 fs/xfs/xfs_log.c if (log->l_curr_block >= log->l_logBBsize) { log 2907 fs/xfs/xfs_log.c log->l_curr_cycle++; log 2908 fs/xfs/xfs_log.c if (log->l_curr_cycle == XLOG_HEADER_MAGIC_NUM) log 2909 fs/xfs/xfs_log.c log->l_curr_cycle++; log 2910 fs/xfs/xfs_log.c log->l_curr_block -= log->l_logBBsize; log 2911 fs/xfs/xfs_log.c ASSERT(log->l_curr_block >= 0); log 2913 fs/xfs/xfs_log.c ASSERT(iclog == log->l_iclog); log 2914 fs/xfs/xfs_log.c log->l_iclog = iclog->ic_next; log 2951 fs/xfs/xfs_log.c spin_lock(&log->l_icloglock); log 2953 fs/xfs/xfs_log.c iclog = log->l_iclog; log 2955 fs/xfs/xfs_log.c spin_unlock(&log->l_icloglock); log 2990 fs/xfs/xfs_log.c xlog_state_switch_iclogs(log, iclog, 0); log 2991 fs/xfs/xfs_log.c spin_unlock(&log->l_icloglock); log 2993 fs/xfs/xfs_log.c if (xlog_state_release_iclog(log, iclog)) log 2996 fs/xfs/xfs_log.c spin_lock(&log->l_icloglock); log 3008 fs/xfs/xfs_log.c xlog_state_switch_iclogs(log, iclog, 0); log 3027 fs/xfs/xfs_log.c spin_unlock(&log->l_icloglock); log 3031 fs/xfs/xfs_log.c sv_wait(&iclog->ic_force_wait, PINOD, &log->l_icloglock, s); log 3044 fs/xfs/xfs_log.c spin_unlock(&log->l_icloglock); log 3072 fs/xfs/xfs_log.c spin_lock(&log->l_icloglock); log 3073 fs/xfs/xfs_log.c iclog = log->l_iclog; log 3076 fs/xfs/xfs_log.c spin_unlock(&log->l_icloglock); log 3087 fs/xfs/xfs_log.c spin_unlock(&log->l_icloglock); log 3115 fs/xfs/xfs_log.c &log->l_icloglock, s); log 3121 fs/xfs/xfs_log.c xlog_state_switch_iclogs(log, iclog, 0); log 3122 fs/xfs/xfs_log.c spin_unlock(&log->l_icloglock); log 3123 fs/xfs/xfs_log.c if (xlog_state_release_iclog(log, iclog)) log 3126 fs/xfs/xfs_log.c spin_lock(&log->l_icloglock); log 3138 fs/xfs/xfs_log.c spin_unlock(&log->l_icloglock); log 3142 fs/xfs/xfs_log.c sv_wait(&iclog->ic_force_wait, PSWP, &log->l_icloglock, s); log 3152 fs/xfs/xfs_log.c spin_unlock(&log->l_icloglock); log 3156 fs/xfs/xfs_log.c } while (iclog != log->l_iclog); log 3158 fs/xfs/xfs_log.c spin_unlock(&log->l_icloglock); log 3170 fs/xfs/xfs_log.c spin_lock(&log->l_icloglock); log 3173 fs/xfs/xfs_log.c xlog_state_switch_iclogs(log, iclog, 0); log 3179 fs/xfs/xfs_log.c spin_unlock(&log->l_icloglock); log 3259 fs/xfs/xfs_log.c num_headers = ((unit_bytes + log->l_iclog_size-1) >> log->l_iclog_size_log); log 3260 fs/xfs/xfs_log.c unit_bytes += log->l_iclog_hsize * num_headers; log 3263 fs/xfs/xfs_log.c unit_bytes += log->l_iclog_hsize; log 3269 fs/xfs/xfs_log.c if (xfs_sb_version_haslogv2(&log->l_mp->m_sb) && log 3270 fs/xfs/xfs_log.c log->l_mp->m_sb.sb_logsunit > 1) { log 3272 fs/xfs/xfs_log.c unit_bytes += 2*log->l_mp->m_sb.sb_logsunit; log 3315 fs/xfs/xfs_log.c for (i=0; i < log->l_iclog_bufs; i++) { log 3316 fs/xfs/xfs_log.c if (ptr >= (__psint_t)log->l_iclog_bak[i] && log 3317 fs/xfs/xfs_log.c ptr <= (__psint_t)log->l_iclog_bak[i]+log->l_iclog_size) log 3327 fs/xfs/xfs_log.c if (log->l_grant_reserve_cycle == log->l_grant_write_cycle) { log 3329 fs/xfs/xfs_log.c ASSERT(log->l_grant_reserve_bytes >= log->l_grant_write_bytes); log 3331 fs/xfs/xfs_log.c ASSERT(log->l_grant_reserve_bytes > log->l_grant_write_bytes); log 3333 fs/xfs/xfs_log.c ASSERT(log->l_grant_reserve_cycle-1 == log->l_grant_write_cycle); log 3334 fs/xfs/xfs_log.c ASSERT(log->l_grant_write_bytes >= log->l_grant_reserve_bytes); log 3346 fs/xfs/xfs_log.c if (CYCLE_LSN(tail_lsn) == log->l_prev_cycle) { log 3348 fs/xfs/xfs_log.c log->l_logBBsize - (log->l_prev_block - BLOCK_LSN(tail_lsn)); log 3349 fs/xfs/xfs_log.c if (blocks < BTOBB(iclog->ic_offset)+BTOBB(log->l_iclog_hsize)) log 3352 fs/xfs/xfs_log.c ASSERT(CYCLE_LSN(tail_lsn)+1 == log->l_prev_cycle); log 3354 fs/xfs/xfs_log.c if (BLOCK_LSN(tail_lsn) == log->l_prev_block) log 3357 fs/xfs/xfs_log.c blocks = BLOCK_LSN(tail_lsn) - log->l_prev_block; log 3395 fs/xfs/xfs_log.c spin_lock(&log->l_icloglock); log 3396 fs/xfs/xfs_log.c icptr = log->l_iclog; log 3397 fs/xfs/xfs_log.c for (i=0; i < log->l_iclog_bufs; i++) { log 3402 fs/xfs/xfs_log.c if (icptr != log->l_iclog) log 3404 fs/xfs/xfs_log.c spin_unlock(&log->l_icloglock); log 3478 fs/xfs/xfs_log.c iclog = log->l_iclog; log 3515 fs/xfs/xfs_log.c xlog_t *log; log 3519 fs/xfs/xfs_log.c log = mp->m_log; log 3525 fs/xfs/xfs_log.c if (!log || log 3526 fs/xfs/xfs_log.c log->l_flags & XLOG_ACTIVE_RECOVERY) { log 3536 fs/xfs/xfs_log.c if (logerror && log->l_iclog->ic_state & XLOG_STATE_IOERROR) { log 3537 fs/xfs/xfs_log.c ASSERT(XLOG_FORCED_SHUTDOWN(log)); log 3546 fs/xfs/xfs_log.c spin_lock(&log->l_icloglock); log 3547 fs/xfs/xfs_log.c spin_lock(&log->l_grant_lock); log 3555 fs/xfs/xfs_log.c log->l_flags |= XLOG_IO_ERROR; log 3562 fs/xfs/xfs_log.c retval = xlog_state_ioerror(log); log 3563 fs/xfs/xfs_log.c spin_unlock(&log->l_icloglock); log 3573 fs/xfs/xfs_log.c if ((tic = log->l_reserve_headq)) { log 3577 fs/xfs/xfs_log.c } while (tic != log->l_reserve_headq); log 3580 fs/xfs/xfs_log.c if ((tic = log->l_write_headq)) { log 3584 fs/xfs/xfs_log.c } while (tic != log->l_write_headq); log 3586 fs/xfs/xfs_log.c spin_unlock(&log->l_grant_lock); log 3588 fs/xfs/xfs_log.c if (! (log->l_iclog->ic_state & XLOG_STATE_IOERROR)) { log 3594 fs/xfs/xfs_log.c xlog_state_sync_all(log, XFS_LOG_FORCE|XFS_LOG_SYNC, &dummy); log 3595 fs/xfs/xfs_log.c spin_lock(&log->l_icloglock); log 3596 fs/xfs/xfs_log.c retval = xlog_state_ioerror(log); log 3597 fs/xfs/xfs_log.c spin_unlock(&log->l_icloglock); log 3604 fs/xfs/xfs_log.c xlog_state_do_callback(log, XFS_LI_ABORTED, NULL); log 3610 fs/xfs/xfs_log.c spin_lock(&log->l_icloglock); log 3611 fs/xfs/xfs_log.c iclog = log->l_iclog; log 3615 fs/xfs/xfs_log.c } while (iclog != log->l_iclog); log 3616 fs/xfs/xfs_log.c spin_unlock(&log->l_icloglock); log 3628 fs/xfs/xfs_log.c iclog = log->l_iclog; log 3636 fs/xfs/xfs_log.c } while (iclog != log->l_iclog); log 23 fs/xfs/xfs_log_priv.h struct log; log 45 fs/xfs/xfs_log_priv.h #define XLOG_BTOLSUNIT(log, b) (((b)+(log)->l_mp->m_sb.sb_logsunit-1) / \ log 46 fs/xfs/xfs_log_priv.h (log)->l_mp->m_sb.sb_logsunit) log 47 fs/xfs/xfs_log_priv.h #define XLOG_LSUNITTOB(log, su) ((su) * (log)->l_mp->m_sb.sb_logsunit) log 52 fs/xfs/xfs_log_priv.h BTOBB(1 << (xfs_sb_version_haslogv2(&log->l_mp->m_sb) ? \ log 55 fs/xfs/xfs_log_priv.h BTOBB(XLOG_MAX_ICLOGS << (xfs_sb_version_haslogv2(&log->l_mp->m_sb) ? \ log 347 fs/xfs/xfs_log_priv.h struct log *ic_log; log 461 fs/xfs/xfs_log_priv.h #define XLOG_FORCED_SHUTDOWN(log) ((log)->l_flags & XLOG_IO_ERROR) log 69 fs/xfs/xfs_log_recover.c ( ((log)->l_sectbb_mask && (bbs & (log)->l_sectbb_mask)) ? \ log 70 fs/xfs/xfs_log_recover.c ((bbs + (log)->l_sectbb_mask + 1) & ~(log)->l_sectbb_mask) : (bbs) ) log 71 fs/xfs/xfs_log_recover.c #define XLOG_SECTOR_ROUNDDOWN_BLKNO(log, bno) ((bno) & ~(log)->l_sectbb_mask) log 80 fs/xfs/xfs_log_recover.c if (log->l_sectbb_log) { log 82 fs/xfs/xfs_log_recover.c num_bblks += XLOG_SECTOR_ROUNDUP_BBCOUNT(log, 1); log 83 fs/xfs/xfs_log_recover.c num_bblks = XLOG_SECTOR_ROUNDUP_BBCOUNT(log, num_bblks); log 85 fs/xfs/xfs_log_recover.c return xfs_buf_get_noaddr(BBTOB(num_bblks), log->l_mp->m_logdev_targp); log 108 fs/xfs/xfs_log_recover.c if (log->l_sectbb_log) { log 109 fs/xfs/xfs_log_recover.c blk_no = XLOG_SECTOR_ROUNDDOWN_BLKNO(log, blk_no); log 110 fs/xfs/xfs_log_recover.c nbblks = XLOG_SECTOR_ROUNDUP_BBCOUNT(log, nbblks); log 117 fs/xfs/xfs_log_recover.c XFS_BUF_SET_ADDR(bp, log->l_logBBstart + blk_no); log 121 fs/xfs/xfs_log_recover.c XFS_BUF_SET_TARGET(bp, log->l_mp->m_logdev_targp); log 123 fs/xfs/xfs_log_recover.c xfsbdstrat(log->l_mp, bp); log 126 fs/xfs/xfs_log_recover.c xfs_ioerror_alert("xlog_bread", log->l_mp, log 145 fs/xfs/xfs_log_recover.c if (log->l_sectbb_log) { log 146 fs/xfs/xfs_log_recover.c blk_no = XLOG_SECTOR_ROUNDDOWN_BLKNO(log, blk_no); log 147 fs/xfs/xfs_log_recover.c nbblks = XLOG_SECTOR_ROUNDUP_BBCOUNT(log, nbblks); log 153 fs/xfs/xfs_log_recover.c XFS_BUF_SET_ADDR(bp, log->l_logBBstart + blk_no); log 159 fs/xfs/xfs_log_recover.c XFS_BUF_SET_TARGET(bp, log->l_mp->m_logdev_targp); log 161 fs/xfs/xfs_log_recover.c if ((error = xfs_bwrite(log->l_mp, bp))) log 162 fs/xfs/xfs_log_recover.c xfs_ioerror_alert("xlog_bwrite", log->l_mp, log 176 fs/xfs/xfs_log_recover.c if (!log->l_sectbb_log) log 179 fs/xfs/xfs_log_recover.c ptr = XFS_BUF_PTR(bp) + BBTOB((int)blk_no & log->l_sectbb_mask); log 181 fs/xfs/xfs_log_recover.c BBTOB(nbblks + (blk_no & log->l_sectbb_mask))); log 313 fs/xfs/xfs_log_recover.c if ((error = xlog_bread(log, mid_blk, 1, bp))) log 315 fs/xfs/xfs_log_recover.c offset = xlog_align(log, mid_blk, 1, bp); log 359 fs/xfs/xfs_log_recover.c while (!(bp = xlog_get_bp(log, bufblks))) { log 362 fs/xfs/xfs_log_recover.c if (bufblks <= log->l_sectbb_log) log 371 fs/xfs/xfs_log_recover.c if ((error = xlog_bread(log, i, bcount, bp))) log 374 fs/xfs/xfs_log_recover.c buf = xlog_align(log, i, bcount, bp); log 423 fs/xfs/xfs_log_recover.c if (!(bp = xlog_get_bp(log, num_blks))) { log 424 fs/xfs/xfs_log_recover.c if (!(bp = xlog_get_bp(log, 1))) log 428 fs/xfs/xfs_log_recover.c if ((error = xlog_bread(log, start_blk, num_blks, bp))) log 430 fs/xfs/xfs_log_recover.c offset = xlog_align(log, start_blk, num_blks, bp); log 445 fs/xfs/xfs_log_recover.c if ((error = xlog_bread(log, i, 1, bp))) log 447 fs/xfs/xfs_log_recover.c offset = xlog_align(log, i, 1, bp); log 473 fs/xfs/xfs_log_recover.c if ((error = xlog_header_check_mount(log->l_mp, head))) log 483 fs/xfs/xfs_log_recover.c if (xfs_sb_version_haslogv2(&log->l_mp->m_sb)) { log 526 fs/xfs/xfs_log_recover.c int error, log_bbnum = log->l_logBBsize; log 529 fs/xfs/xfs_log_recover.c if ((error = xlog_find_zeroed(log, &first_blk)) == -1) { log 548 fs/xfs/xfs_log_recover.c bp = xlog_get_bp(log, 1); log 551 fs/xfs/xfs_log_recover.c if ((error = xlog_bread(log, 0, 1, bp))) log 553 fs/xfs/xfs_log_recover.c offset = xlog_align(log, 0, 1, bp); log 557 fs/xfs/xfs_log_recover.c if ((error = xlog_bread(log, last_blk, 1, bp))) log 559 fs/xfs/xfs_log_recover.c offset = xlog_align(log, last_blk, 1, bp); log 624 fs/xfs/xfs_log_recover.c if ((error = xlog_find_cycle_start(log, bp, first_blk, log 636 fs/xfs/xfs_log_recover.c num_scan_bblks = XLOG_TOTAL_REC_SHIFT(log); log 643 fs/xfs/xfs_log_recover.c if ((error = xlog_find_verify_cycle(log, log 680 fs/xfs/xfs_log_recover.c if ((error = xlog_find_verify_cycle(log, start_blk, log 696 fs/xfs/xfs_log_recover.c if ((error = xlog_find_verify_cycle(log, log 709 fs/xfs/xfs_log_recover.c num_scan_bblks = XLOG_REC_SHIFT(log); log 714 fs/xfs/xfs_log_recover.c if ((error = xlog_find_verify_log_record(log, start_blk, log 723 fs/xfs/xfs_log_recover.c if ((error = xlog_find_verify_log_record(log, start_blk, log 731 fs/xfs/xfs_log_recover.c if ((error = xlog_find_verify_log_record(log, log 802 fs/xfs/xfs_log_recover.c if ((error = xlog_find_head(log, head_blk))) log 805 fs/xfs/xfs_log_recover.c bp = xlog_get_bp(log, 1); log 809 fs/xfs/xfs_log_recover.c if ((error = xlog_bread(log, 0, 1, bp))) log 811 fs/xfs/xfs_log_recover.c offset = xlog_align(log, 0, 1, bp); log 824 fs/xfs/xfs_log_recover.c if ((error = xlog_bread(log, i, 1, bp))) log 826 fs/xfs/xfs_log_recover.c offset = xlog_align(log, i, 1, bp); log 839 fs/xfs/xfs_log_recover.c for (i = log->l_logBBsize - 1; i >= (int)(*head_blk); i--) { log 840 fs/xfs/xfs_log_recover.c if ((error = xlog_bread(log, i, 1, bp))) log 842 fs/xfs/xfs_log_recover.c offset = xlog_align(log, i, 1, bp); log 870 fs/xfs/xfs_log_recover.c log->l_prev_block = i; log 871 fs/xfs/xfs_log_recover.c log->l_curr_block = (int)*head_blk; log 872 fs/xfs/xfs_log_recover.c log->l_curr_cycle = be32_to_cpu(rhead->h_cycle); log 874 fs/xfs/xfs_log_recover.c log->l_curr_cycle++; log 875 fs/xfs/xfs_log_recover.c log->l_tail_lsn = be64_to_cpu(rhead->h_tail_lsn); log 876 fs/xfs/xfs_log_recover.c log->l_last_sync_lsn = be64_to_cpu(rhead->h_lsn); log 877 fs/xfs/xfs_log_recover.c log->l_grant_reserve_cycle = log->l_curr_cycle; log 878 fs/xfs/xfs_log_recover.c log->l_grant_reserve_bytes = BBTOB(log->l_curr_block); log 879 fs/xfs/xfs_log_recover.c log->l_grant_write_cycle = log->l_curr_cycle; log 880 fs/xfs/xfs_log_recover.c log->l_grant_write_bytes = BBTOB(log->l_curr_block); log 893 fs/xfs/xfs_log_recover.c if (xfs_sb_version_haslogv2(&log->l_mp->m_sb)) { log 909 fs/xfs/xfs_log_recover.c BTOBB(be32_to_cpu(rhead->h_len))) % log->l_logBBsize; log 910 fs/xfs/xfs_log_recover.c tail_lsn = log->l_tail_lsn; log 913 fs/xfs/xfs_log_recover.c umount_data_blk = (i + hblks) % log->l_logBBsize; log 914 fs/xfs/xfs_log_recover.c if ((error = xlog_bread(log, umount_data_blk, 1, bp))) { log 917 fs/xfs/xfs_log_recover.c offset = xlog_align(log, umount_data_blk, 1, bp); log 925 fs/xfs/xfs_log_recover.c log->l_tail_lsn = log 926 fs/xfs/xfs_log_recover.c xlog_assign_lsn(log->l_curr_cycle, log 928 fs/xfs/xfs_log_recover.c log->l_last_sync_lsn = log 929 fs/xfs/xfs_log_recover.c xlog_assign_lsn(log->l_curr_cycle, log 939 fs/xfs/xfs_log_recover.c log->l_mp->m_flags |= XFS_MOUNT_WAS_CLEAN; log 962 fs/xfs/xfs_log_recover.c if (!xfs_readonly_buftarg(log->l_mp->m_logdev_targp)) { log 963 fs/xfs/xfs_log_recover.c error = xlog_clear_stale_blocks(log, tail_lsn); log 1001 fs/xfs/xfs_log_recover.c int error, log_bbnum = log->l_logBBsize; log 1006 fs/xfs/xfs_log_recover.c bp = xlog_get_bp(log, 1); log 1009 fs/xfs/xfs_log_recover.c if ((error = xlog_bread(log, 0, 1, bp))) log 1011 fs/xfs/xfs_log_recover.c offset = xlog_align(log, 0, 1, bp); log 1020 fs/xfs/xfs_log_recover.c if ((error = xlog_bread(log, log_bbnum-1, 1, bp))) log 1022 fs/xfs/xfs_log_recover.c offset = xlog_align(log, log_bbnum-1, 1, bp); log 1039 fs/xfs/xfs_log_recover.c if ((error = xlog_find_cycle_start(log, bp, 0, &last_blk, 0))) log 1048 fs/xfs/xfs_log_recover.c num_scan_bblks = XLOG_TOTAL_REC_SHIFT(log); log 1061 fs/xfs/xfs_log_recover.c if ((error = xlog_find_verify_cycle(log, start_blk, log 1071 fs/xfs/xfs_log_recover.c if ((error = xlog_find_verify_log_record(log, start_blk, log 1106 fs/xfs/xfs_log_recover.c xfs_sb_version_haslogv2(&log->l_mp->m_sb) ? 2 : 1); log 1110 fs/xfs/xfs_log_recover.c memcpy(&recp->h_fs_uuid, &log->l_mp->m_sb.sb_uuid, sizeof(uuid_t)); log 1125 fs/xfs/xfs_log_recover.c int sectbb = XLOG_SECTOR_ROUNDUP_BBCOUNT(log, 1); log 1132 fs/xfs/xfs_log_recover.c while (!(bp = xlog_get_bp(log, bufblks))) { log 1134 fs/xfs/xfs_log_recover.c if (bufblks <= log->l_sectbb_log) log 1142 fs/xfs/xfs_log_recover.c balign = XLOG_SECTOR_ROUNDDOWN_BLKNO(log, start_block); log 1144 fs/xfs/xfs_log_recover.c if ((error = xlog_bread(log, start_block, 1, bp))) { log 1161 fs/xfs/xfs_log_recover.c ealign = XLOG_SECTOR_ROUNDDOWN_BLKNO(log, end_block); log 1168 fs/xfs/xfs_log_recover.c error = xlog_bread(log, ealign, sectbb, bp); log 1175 fs/xfs/xfs_log_recover.c offset = xlog_align(log, start_block, endcount, bp); log 1177 fs/xfs/xfs_log_recover.c xlog_add_record(log, offset, cycle, i+j, log 1181 fs/xfs/xfs_log_recover.c error = xlog_bwrite(log, start_block, endcount, bp); log 1220 fs/xfs/xfs_log_recover.c head_cycle = log->l_curr_cycle; log 1221 fs/xfs/xfs_log_recover.c head_block = log->l_curr_block; log 1237 fs/xfs/xfs_log_recover.c if (unlikely(head_block < tail_block || head_block >= log->l_logBBsize)) { log 1239 fs/xfs/xfs_log_recover.c XFS_ERRLEVEL_LOW, log->l_mp); log 1242 fs/xfs/xfs_log_recover.c tail_distance = tail_block + (log->l_logBBsize - head_block); log 1251 fs/xfs/xfs_log_recover.c XFS_ERRLEVEL_LOW, log->l_mp); log 1266 fs/xfs/xfs_log_recover.c max_distance = XLOG_TOTAL_REC_SHIFT(log); log 1276 fs/xfs/xfs_log_recover.c if ((head_block + max_distance) <= log->l_logBBsize) { log 1284 fs/xfs/xfs_log_recover.c error = xlog_write_log_records(log, (head_cycle - 1), log 1297 fs/xfs/xfs_log_recover.c distance = log->l_logBBsize - head_block; log 1298 fs/xfs/xfs_log_recover.c error = xlog_write_log_records(log, (head_cycle - 1), log 1313 fs/xfs/xfs_log_recover.c distance = max_distance - (log->l_logBBsize - head_block); log 1314 fs/xfs/xfs_log_recover.c error = xlog_write_log_records(log, head_cycle, 0, distance, log 1608 fs/xfs/xfs_log_recover.c bucket = &log->l_buf_cancel_table[(__uint64_t)blkno % log 1674 fs/xfs/xfs_log_recover.c if (log->l_buf_cancel_table == NULL) { log 1683 fs/xfs/xfs_log_recover.c bucket = &log->l_buf_cancel_table[(__uint64_t)blkno % log 1751 fs/xfs/xfs_log_recover.c return xlog_check_buffer_cancelled(log, blkno, len, flags); log 2094 fs/xfs/xfs_log_recover.c if (log->l_quotaoffs_flag & type) log 2145 fs/xfs/xfs_log_recover.c xlog_recover_do_buffer_pass1(log, buf_f); log 2155 fs/xfs/xfs_log_recover.c cancel = xlog_recover_do_buffer_pass2(log, buf_f); log 2167 fs/xfs/xfs_log_recover.c xfs_fs_cmn_err(CE_ALERT, log->l_mp, log 2169 fs/xfs/xfs_log_recover.c buf_f->blf_type, log->l_mp->m_logname ? log 2170 fs/xfs/xfs_log_recover.c log->l_mp->m_logname : "internal"); log 2172 fs/xfs/xfs_log_recover.c XFS_ERRLEVEL_LOW, log->l_mp); log 2176 fs/xfs/xfs_log_recover.c mp = log->l_mp; log 2184 fs/xfs/xfs_log_recover.c xfs_ioerror_alert("xlog_recover_do..(read#1)", log->l_mp, log 2196 fs/xfs/xfs_log_recover.c xlog_recover_do_dquot_buffer(mp, log, item, bp, buf_f); log 2220 fs/xfs/xfs_log_recover.c (XFS_BUF_COUNT(bp) != MAX(log->l_mp->m_sb.sb_blocksize, log 2221 fs/xfs/xfs_log_recover.c (__uint32_t)XFS_INODE_CLUSTER_SIZE(log->l_mp)))) { log 2271 fs/xfs/xfs_log_recover.c mp = log->l_mp; log 2288 fs/xfs/xfs_log_recover.c error = xfs_imap(log->l_mp, NULL, ino, &imap, 0); log 2297 fs/xfs/xfs_log_recover.c if (xlog_check_buffer_cancelled(log, imap.im_blkno, imap.im_len, 0)) { log 2550 fs/xfs/xfs_log_recover.c log->l_quotaoffs_flag |= XFS_DQ_USER; log 2552 fs/xfs/xfs_log_recover.c log->l_quotaoffs_flag |= XFS_DQ_PROJ; log 2554 fs/xfs/xfs_log_recover.c log->l_quotaoffs_flag |= XFS_DQ_GROUP; log 2578 fs/xfs/xfs_log_recover.c mp = log->l_mp; log 2593 fs/xfs/xfs_log_recover.c if (log->l_quotaoffs_flag & type) log 2676 fs/xfs/xfs_log_recover.c mp = log->l_mp; log 2731 fs/xfs/xfs_log_recover.c mp = log->l_mp; log 2781 fs/xfs/xfs_log_recover.c if ((error = xlog_recover_do_buffer_trans(log, item, log 2785 fs/xfs/xfs_log_recover.c if ((error = xlog_recover_do_inode_trans(log, item, log 2789 fs/xfs/xfs_log_recover.c if ((error = xlog_recover_do_efi_trans(log, item, trans->r_lsn, log 2793 fs/xfs/xfs_log_recover.c xlog_recover_do_efd_trans(log, item, pass); log 2795 fs/xfs/xfs_log_recover.c if ((error = xlog_recover_do_dquot_trans(log, item, log 2799 fs/xfs/xfs_log_recover.c if ((error = xlog_recover_do_quotaoff_trans(log, item, log 2853 fs/xfs/xfs_log_recover.c if ((error = xlog_recover_do_trans(log, trans, pass))) log 2898 fs/xfs/xfs_log_recover.c if (xlog_header_check_recover(log->l_mp, rhead)) log 2931 fs/xfs/xfs_log_recover.c error = xlog_recover_commit_trans(log, log 3087 fs/xfs/xfs_log_recover.c mp = log->l_mp; log 3198 fs/xfs/xfs_log_recover.c mp = log->l_mp; log 3215 fs/xfs/xfs_log_recover.c log->l_mp, agibp, log 3307 fs/xfs/xfs_log_recover.c log->l_mp, agibp, log 3366 fs/xfs/xfs_log_recover.c xlog_pack_data_checksum(log, iclog, size); log 3378 fs/xfs/xfs_log_recover.c if (xfs_sb_version_haslogv2(&log->l_mp->m_sb)) { log 3388 fs/xfs/xfs_log_recover.c for (i = 1; i < log->l_iclog_heads; i++) { log 3412 fs/xfs/xfs_log_recover.c ((log->l_flags & XLOG_CHKSUM_MISMATCH) == 0)) { log 3418 fs/xfs/xfs_log_recover.c if (xfs_sb_version_haslogv2(&log->l_mp->m_sb)) { log 3422 fs/xfs/xfs_log_recover.c log->l_flags |= XLOG_CHKSUM_MISMATCH; log 3445 fs/xfs/xfs_log_recover.c if (xfs_sb_version_haslogv2(&log->l_mp->m_sb)) { log 3455 fs/xfs/xfs_log_recover.c xlog_unpack_data_checksum(rhead, dp, log); log 3468 fs/xfs/xfs_log_recover.c XFS_ERRLEVEL_LOW, log->l_mp); log 3483 fs/xfs/xfs_log_recover.c XFS_ERRLEVEL_LOW, log->l_mp); log 3486 fs/xfs/xfs_log_recover.c if (unlikely( blkno > log->l_logBBsize || blkno > INT_MAX )) { log 3488 fs/xfs/xfs_log_recover.c XFS_ERRLEVEL_LOW, log->l_mp); log 3524 fs/xfs/xfs_log_recover.c if (xfs_sb_version_haslogv2(&log->l_mp->m_sb)) { log 3530 fs/xfs/xfs_log_recover.c hbp = xlog_get_bp(log, 1); log 3533 fs/xfs/xfs_log_recover.c if ((error = xlog_bread(log, tail_blk, 1, hbp))) log 3535 fs/xfs/xfs_log_recover.c offset = xlog_align(log, tail_blk, 1, hbp); log 3537 fs/xfs/xfs_log_recover.c error = xlog_valid_rec_header(log, rhead, tail_blk); log 3547 fs/xfs/xfs_log_recover.c hbp = xlog_get_bp(log, hblks); log 3552 fs/xfs/xfs_log_recover.c ASSERT(log->l_sectbb_log == 0); log 3554 fs/xfs/xfs_log_recover.c hbp = xlog_get_bp(log, 1); log 3560 fs/xfs/xfs_log_recover.c dbp = xlog_get_bp(log, BTOBB(h_size)); log 3569 fs/xfs/xfs_log_recover.c if ((error = xlog_bread(log, blk_no, hblks, hbp))) log 3571 fs/xfs/xfs_log_recover.c offset = xlog_align(log, blk_no, hblks, hbp); log 3573 fs/xfs/xfs_log_recover.c error = xlog_valid_rec_header(log, rhead, blk_no); log 3579 fs/xfs/xfs_log_recover.c error = xlog_bread(log, blk_no + hblks, bblks, dbp); log 3582 fs/xfs/xfs_log_recover.c offset = xlog_align(log, blk_no + hblks, bblks, dbp); log 3583 fs/xfs/xfs_log_recover.c xlog_unpack_data(rhead, offset, log); log 3584 fs/xfs/xfs_log_recover.c if ((error = xlog_recover_process_data(log, log 3596 fs/xfs/xfs_log_recover.c while (blk_no < log->l_logBBsize) { log 3603 fs/xfs/xfs_log_recover.c if (blk_no + hblks <= log->l_logBBsize) { log 3605 fs/xfs/xfs_log_recover.c error = xlog_bread(log, blk_no, hblks, hbp); log 3608 fs/xfs/xfs_log_recover.c offset = xlog_align(log, blk_no, hblks, hbp); log 3611 fs/xfs/xfs_log_recover.c if (blk_no != log->l_logBBsize) { log 3614 fs/xfs/xfs_log_recover.c split_hblks = log->l_logBBsize - (int)blk_no; log 3616 fs/xfs/xfs_log_recover.c if ((error = xlog_bread(log, blk_no, log 3619 fs/xfs/xfs_log_recover.c offset = xlog_align(log, blk_no, log 3640 fs/xfs/xfs_log_recover.c error = xlog_bread(log, 0, log 3648 fs/xfs/xfs_log_recover.c offset = xlog_align(log, 0, log 3652 fs/xfs/xfs_log_recover.c error = xlog_valid_rec_header(log, rhead, log 3661 fs/xfs/xfs_log_recover.c if (blk_no + bblks <= log->l_logBBsize) { log 3662 fs/xfs/xfs_log_recover.c error = xlog_bread(log, blk_no, bblks, dbp); log 3665 fs/xfs/xfs_log_recover.c offset = xlog_align(log, blk_no, bblks, dbp); log 3671 fs/xfs/xfs_log_recover.c if (blk_no != log->l_logBBsize) { log 3677 fs/xfs/xfs_log_recover.c log->l_logBBsize - (int)blk_no; log 3679 fs/xfs/xfs_log_recover.c if ((error = xlog_bread(log, blk_no, log 3682 fs/xfs/xfs_log_recover.c offset = xlog_align(log, blk_no, log 3702 fs/xfs/xfs_log_recover.c error = xlog_bread(log, wrapped_hblks, log 3711 fs/xfs/xfs_log_recover.c offset = xlog_align(log, wrapped_hblks, log 3714 fs/xfs/xfs_log_recover.c xlog_unpack_data(rhead, offset, log); log 3715 fs/xfs/xfs_log_recover.c if ((error = xlog_recover_process_data(log, rhash, log 3721 fs/xfs/xfs_log_recover.c ASSERT(blk_no >= log->l_logBBsize); log 3722 fs/xfs/xfs_log_recover.c blk_no -= log->l_logBBsize; log 3726 fs/xfs/xfs_log_recover.c if ((error = xlog_bread(log, blk_no, hblks, hbp))) log 3728 fs/xfs/xfs_log_recover.c offset = xlog_align(log, blk_no, hblks, hbp); log 3730 fs/xfs/xfs_log_recover.c error = xlog_valid_rec_header(log, rhead, blk_no); log 3734 fs/xfs/xfs_log_recover.c if ((error = xlog_bread(log, blk_no+hblks, bblks, dbp))) log 3736 fs/xfs/xfs_log_recover.c offset = xlog_align(log, blk_no+hblks, bblks, dbp); log 3737 fs/xfs/xfs_log_recover.c xlog_unpack_data(rhead, offset, log); log 3738 fs/xfs/xfs_log_recover.c if ((error = xlog_recover_process_data(log, rhash, log 3779 fs/xfs/xfs_log_recover.c log->l_buf_cancel_table = log 3783 fs/xfs/xfs_log_recover.c error = xlog_do_recovery_pass(log, head_blk, tail_blk, log 3786 fs/xfs/xfs_log_recover.c kmem_free(log->l_buf_cancel_table); log 3787 fs/xfs/xfs_log_recover.c log->l_buf_cancel_table = NULL; log 3794 fs/xfs/xfs_log_recover.c error = xlog_do_recovery_pass(log, head_blk, tail_blk, log 3801 fs/xfs/xfs_log_recover.c ASSERT(log->l_buf_cancel_table[i] == NULL); log 3805 fs/xfs/xfs_log_recover.c kmem_free(log->l_buf_cancel_table); log 3806 fs/xfs/xfs_log_recover.c log->l_buf_cancel_table = NULL; log 3827 fs/xfs/xfs_log_recover.c error = xlog_do_log_recovery(log, head_blk, tail_blk); log 3832 fs/xfs/xfs_log_recover.c XFS_bflush(log->l_mp->m_ddev_targp); log 3837 fs/xfs/xfs_log_recover.c if (XFS_FORCED_SHUTDOWN(log->l_mp)) { log 3850 fs/xfs/xfs_log_recover.c xlog_assign_tail_lsn(log->l_mp); log 3856 fs/xfs/xfs_log_recover.c bp = xfs_getsb(log->l_mp, 0); log 3862 fs/xfs/xfs_log_recover.c xfsbdstrat(log->l_mp, bp); log 3866 fs/xfs/xfs_log_recover.c log->l_mp, bp, XFS_BUF_ADDR(bp)); log 3873 fs/xfs/xfs_log_recover.c sbp = &log->l_mp->m_sb; log 3880 fs/xfs/xfs_log_recover.c xfs_icsb_reinit_counters(log->l_mp); log 3882 fs/xfs/xfs_log_recover.c xlog_recover_check_summary(log); log 3885 fs/xfs/xfs_log_recover.c log->l_flags &= ~XLOG_ACTIVE_RECOVERY; log 3902 fs/xfs/xfs_log_recover.c if ((error = xlog_find_tail(log, &head_blk, &tail_blk))) log 3917 fs/xfs/xfs_log_recover.c if ((error = xfs_dev_is_read_only(log->l_mp, "recovery"))) { log 3923 fs/xfs/xfs_log_recover.c log->l_mp->m_fsname, log->l_mp->m_logname ? log 3924 fs/xfs/xfs_log_recover.c log->l_mp->m_logname : "internal"); log 3926 fs/xfs/xfs_log_recover.c error = xlog_do_recover(log, head_blk, tail_blk); log 3927 fs/xfs/xfs_log_recover.c log->l_flags |= XLOG_RECOVERY_NEEDED; log 3953 fs/xfs/xfs_log_recover.c if (log->l_flags & XLOG_RECOVERY_NEEDED) { log 3955 fs/xfs/xfs_log_recover.c error = xlog_recover_process_efis(log); log 3959 fs/xfs/xfs_log_recover.c log->l_mp->m_fsname); log 3968 fs/xfs/xfs_log_recover.c xfs_log_force(log->l_mp, (xfs_lsn_t)0, log 3971 fs/xfs/xfs_log_recover.c xlog_recover_process_iunlinks(log); log 3973 fs/xfs/xfs_log_recover.c xlog_recover_check_summary(log); log 3977 fs/xfs/xfs_log_recover.c log->l_mp->m_fsname, log->l_mp->m_logname ? log 3978 fs/xfs/xfs_log_recover.c log->l_mp->m_logname : "internal"); log 3979 fs/xfs/xfs_log_recover.c log->l_flags &= ~XLOG_RECOVERY_NEEDED; log 3983 fs/xfs/xfs_log_recover.c log->l_mp->m_fsname); log 4014 fs/xfs/xfs_log_recover.c mp = log->l_mp; log 56 fs/xfs/xfs_mount.h struct log; log 258 fs/xfs/xfs_mount.h struct log *m_log; /* log specific stuff */ log 824 fs/xfs/xfs_rtalloc.c int log; /* loop counter, log2 of ext. size */ log 830 fs/xfs/xfs_rtalloc.c for (log = low; log <= high; log++) { log 834 fs/xfs/xfs_rtalloc.c error = xfs_rtget_summary(mp, tp, log, bbno, rbpp, rsb, &sum); log 1105 fs/xfs/xfs_rtalloc.c int log; /* summary level number (log length) */ log 1110 fs/xfs/xfs_rtalloc.c for (log = omp->m_rsumlevels - 1; log >= 0; log--) { log 1114 fs/xfs/xfs_rtalloc.c error = xfs_rtget_summary(omp, tp, log, bbno, &bp, log 1120 fs/xfs/xfs_rtalloc.c error = xfs_rtmodify_summary(omp, tp, log, bbno, -sum, log 1124 fs/xfs/xfs_rtalloc.c error = xfs_rtmodify_summary(nmp, tp, log, bbno, sum, log 1578 fs/xfs/xfs_rtalloc.c so = XFS_SUMOFFS(mp, log, bbno); log 1804 fs/xfs/xfs_rtalloc.c so = XFS_SUMOFFS(mp, log, bbno); log 100 include/asm-cris/arch-v32/hwregs/extmem_defs.h unsigned int log : 1; log 119 include/asm-cris/arch-v32/hwregs/extmem_defs.h unsigned int log : 1; log 138 include/asm-cris/arch-v32/hwregs/extmem_defs.h unsigned int log : 1; log 157 include/asm-cris/arch-v32/hwregs/extmem_defs.h unsigned int log : 1; log 176 include/asm-cris/arch-v32/hwregs/extmem_defs.h unsigned int log : 1; log 195 include/asm-cris/arch-v32/hwregs/extmem_defs.h unsigned int log : 1; log 214 include/asm-cris/arch-v32/hwregs/extmem_defs.h unsigned int log : 1; log 233 include/asm-cris/arch-v32/hwregs/extmem_defs.h unsigned int log : 1; log 252 include/asm-cris/arch-v32/hwregs/extmem_defs.h unsigned int log : 1; log 271 include/asm-cris/arch-v32/hwregs/extmem_defs.h unsigned int log : 1; log 290 include/asm-cris/arch-v32/hwregs/extmem_defs.h unsigned int log : 1; log 309 include/asm-cris/arch-v32/hwregs/extmem_defs.h unsigned int log : 1; log 31 include/linux/dm-dirty-log.h int (*ctr)(struct dm_dirty_log *log, struct dm_target *ti, log 33 include/linux/dm-dirty-log.h void (*dtr)(struct dm_dirty_log *log); log 39 include/linux/dm-dirty-log.h int (*presuspend)(struct dm_dirty_log *log); log 40 include/linux/dm-dirty-log.h int (*postsuspend)(struct dm_dirty_log *log); log 41 include/linux/dm-dirty-log.h int (*resume)(struct dm_dirty_log *log); log 47 include/linux/dm-dirty-log.h uint32_t (*get_region_size)(struct dm_dirty_log *log); log 53 include/linux/dm-dirty-log.h int (*is_clean)(struct dm_dirty_log *log, region_t region); log 66 include/linux/dm-dirty-log.h int (*in_sync)(struct dm_dirty_log *log, region_t region, log 73 include/linux/dm-dirty-log.h int (*flush)(struct dm_dirty_log *log); log 81 include/linux/dm-dirty-log.h void (*mark_region)(struct dm_dirty_log *log, region_t region); log 82 include/linux/dm-dirty-log.h void (*clear_region)(struct dm_dirty_log *log, region_t region); log 96 include/linux/dm-dirty-log.h int (*get_resync_work)(struct dm_dirty_log *log, region_t *region); log 103 include/linux/dm-dirty-log.h void (*set_region_sync)(struct dm_dirty_log *log, log 109 include/linux/dm-dirty-log.h region_t (*get_sync_count)(struct dm_dirty_log *log); log 114 include/linux/dm-dirty-log.h int (*status)(struct dm_dirty_log *log, status_type_t status_type, log 27 include/net/netfilter/nf_log.h } log; log 92 net/bridge/netfilter/ebt_log.c printk("<%c>%s IN=%s OUT=%s MAC source = ", '0' + loginfo->u.log.level, log 102 net/bridge/netfilter/ebt_log.c bitmask = loginfo->u.log.logflags; log 201 net/bridge/netfilter/ebt_log.c li.u.log.level = info->loglevel; log 202 net/bridge/netfilter/ebt_log.c li.u.log.logflags = info->bitmask; log 245 net/ipv4/netfilter/ip_tables.c .log = { log 44 net/ipv4/netfilter/ipt_LOG.c logflags = info->u.log.logflags; log 370 net/ipv4/netfilter/ipt_LOG.c .log = { log 390 net/ipv4/netfilter/ipt_LOG.c printk("<%d>%sIN=%s OUT=%s ", loginfo->u.log.level, log 435 net/ipv4/netfilter/ipt_LOG.c li.u.log.level = loginfo->level; log 436 net/ipv4/netfilter/ipt_LOG.c li.u.log.logflags = loginfo->logflags; log 72 net/ipv4/tcp_probe.c struct tcp_log *log; log 103 net/ipv4/tcp_probe.c struct tcp_log *p = tcp_probe.log + tcp_probe.head; log 151 net/ipv4/tcp_probe.c = tcp_probe.log + tcp_probe.tail % bufsize; log 227 net/ipv4/tcp_probe.c tcp_probe.log = kcalloc(bufsize, sizeof(struct tcp_log), GFP_KERNEL); log 228 net/ipv4/tcp_probe.c if (!tcp_probe.log) log 243 net/ipv4/tcp_probe.c kfree(tcp_probe.log); log 252 net/ipv4/tcp_probe.c kfree(tcp_probe.log); log 273 net/ipv6/netfilter/ip6_tables.c .log = { log 53 net/ipv6/netfilter/ip6t_LOG.c logflags = info->u.log.logflags; log 380 net/ipv6/netfilter/ip6t_LOG.c .log = { log 400 net/ipv6/netfilter/ip6t_LOG.c printk("<%d>%sIN=%s OUT=%s ", loginfo->u.log.level, log 447 net/ipv6/netfilter/ip6t_LOG.c li.u.log.level = loginfo->level; log 448 net/ipv6/netfilter/ip6t_LOG.c li.u.log.logflags = loginfo->logflags; log 123 net/irda/discovery.c if (log == NULL) { log 133 net/irda/discovery.c discovery = (discovery_t *) hashbin_remove_first(log); log 137 net/irda/discovery.c discovery = (discovery_t *) hashbin_remove_first(log); log 141 net/irda/discovery.c hashbin_delete(log, (FREE_FUNC) kfree); log 161 net/irda/discovery.c IRDA_ASSERT(log != NULL, return;); log 164 net/irda/discovery.c spin_lock_irqsave(&log->hb_spinlock, flags); log 166 net/irda/discovery.c discovery = (discovery_t *) hashbin_get_first(log); log 170 net/irda/discovery.c discovery = (discovery_t *) hashbin_get_next(log); log 184 net/irda/discovery.c n = HASHBIN_GET_SIZE(log); log 187 net/irda/discovery.c spin_unlock_irqrestore(&log->hb_spinlock, flags); log 199 net/irda/discovery.c curr = hashbin_remove_this(log, (irda_queue_t *) curr); log 208 net/irda/discovery.c spin_unlock_irqrestore(&log->hb_spinlock, flags); log 231 net/irda/discovery.c IRDA_ASSERT(log != NULL, return;); log 233 net/irda/discovery.c discovery = (discovery_t *) hashbin_get_first(log); log 240 net/irda/discovery.c discovery = (discovery_t *) hashbin_get_next(log); log 276 net/irda/discovery.c IRDA_ASSERT(log != NULL, return NULL;); log 279 net/irda/discovery.c spin_lock_irqsave(&log->hb_spinlock, flags); log 281 net/irda/discovery.c discovery = (discovery_t *) hashbin_get_first(log); log 296 net/irda/discovery.c n = HASHBIN_GET_SIZE(log); log 299 net/irda/discovery.c spin_unlock_irqrestore(&log->hb_spinlock, flags); log 310 net/irda/discovery.c discovery = (discovery_t *) hashbin_get_next(log); log 313 net/irda/discovery.c spin_unlock_irqrestore(&log->hb_spinlock, flags); log 990 net/irda/irlmp.c discoveries = irlmp_copy_discoveries(log, &number, log 1019 net/irda/irlmp.c IRDA_ASSERT(log != NULL, return;); log 1021 net/irda/irlmp.c if (!(HASHBIN_GET_SIZE(log))) log 1029 net/irda/irlmp.c irlmp_notify_client(client, log, mode); log 392 net/irda/irlmp_frame.c irlmp_add_discovery_log(irlmp->cachelog, log); log 497 net/irda/irnet/irnet.h irnet_log log[IRNET_MAX_EVENTS]; /* Event log */ log 70 net/irda/irnet/irnet_irda.c irnet_events.log[index].event = event; log 71 net/irda/irnet/irnet_irda.c irnet_events.log[index].daddr = daddr; log 72 net/irda/irnet/irnet_irda.c irnet_events.log[index].saddr = saddr; log 75 net/irda/irnet/irnet_irda.c strcpy(irnet_events.log[index].name, name); log 77 net/irda/irnet/irnet_irda.c irnet_events.log[index].name[0] = '\0'; log 79 net/irda/irnet/irnet_irda.c irnet_events.log[index].hints.word = hints; log 82 net/irda/irnet/irnet_irda.c irnet_events.log[index].unit = ppp_unit_number(&ap->chan); log 84 net/irda/irnet/irnet_irda.c irnet_events.log[index].unit = -1; log 336 net/irda/irnet/irnet_ppp.c switch(irnet_events.log[ap->event_index].event) log 340 net/irda/irnet/irnet_ppp.c irnet_events.log[ap->event_index].daddr, log 341 net/irda/irnet/irnet_ppp.c irnet_events.log[ap->event_index].name, log 342 net/irda/irnet/irnet_ppp.c irnet_events.log[ap->event_index].saddr, log 343 net/irda/irnet/irnet_ppp.c irnet_events.log[ap->event_index].hints.byte[0], log 344 net/irda/irnet/irnet_ppp.c irnet_events.log[ap->event_index].hints.byte[1]); log 348 net/irda/irnet/irnet_ppp.c irnet_events.log[ap->event_index].daddr, log 349 net/irda/irnet/irnet_ppp.c irnet_events.log[ap->event_index].name, log 350 net/irda/irnet/irnet_ppp.c irnet_events.log[ap->event_index].saddr, log 351 net/irda/irnet/irnet_ppp.c irnet_events.log[ap->event_index].hints.byte[0], log 352 net/irda/irnet/irnet_ppp.c irnet_events.log[ap->event_index].hints.byte[1]); log 356 net/irda/irnet/irnet_ppp.c irnet_events.log[ap->event_index].daddr, log 357 net/irda/irnet/irnet_ppp.c irnet_events.log[ap->event_index].name, log 358 net/irda/irnet/irnet_ppp.c irnet_events.log[ap->event_index].unit); log 362 net/irda/irnet/irnet_ppp.c irnet_events.log[ap->event_index].daddr, log 363 net/irda/irnet/irnet_ppp.c irnet_events.log[ap->event_index].name, log 364 net/irda/irnet/irnet_ppp.c irnet_events.log[ap->event_index].unit); log 368 net/irda/irnet/irnet_ppp.c irnet_events.log[ap->event_index].daddr, log 369 net/irda/irnet/irnet_ppp.c irnet_events.log[ap->event_index].name, log 370 net/irda/irnet/irnet_ppp.c irnet_events.log[ap->event_index].saddr); log 374 net/irda/irnet/irnet_ppp.c irnet_events.log[ap->event_index].daddr, log 375 net/irda/irnet/irnet_ppp.c irnet_events.log[ap->event_index].name, log 376 net/irda/irnet/irnet_ppp.c irnet_events.log[ap->event_index].unit); log 380 net/irda/irnet/irnet_ppp.c irnet_events.log[ap->event_index].daddr, log 381 net/irda/irnet/irnet_ppp.c irnet_events.log[ap->event_index].name, log 382 net/irda/irnet/irnet_ppp.c irnet_events.log[ap->event_index].unit); log 386 net/irda/irnet/irnet_ppp.c irnet_events.log[ap->event_index].daddr, log 387 net/irda/irnet/irnet_ppp.c irnet_events.log[ap->event_index].name, log 388 net/irda/irnet/irnet_ppp.c irnet_events.log[ap->event_index].unit); log 392 net/irda/irnet/irnet_ppp.c irnet_events.log[ap->event_index].daddr, log 393 net/irda/irnet/irnet_ppp.c irnet_events.log[ap->event_index].name); log 121 sound/usb/caiaq/caiaq-audio.c log("unable to trigger read #%d! (ret %d)\n", i, ret); log 533 sound/usb/caiaq/caiaq-audio.c log("unable to kmalloc() urbs, OOM!?\n"); log 541 sound/usb/caiaq/caiaq-audio.c log("unable to usb_alloc_urb(), OOM!?\n"); log 549 sound/usb/caiaq/caiaq-audio.c log("unable to kmalloc() transfer buffer, OOM!?\n"); log 614 sound/usb/caiaq/caiaq-audio.c log("unable to initialize device, too many streams.\n"); log 622 sound/usb/caiaq/caiaq-audio.c log("snd_pcm_new() returned %d\n", ret); log 129 sound/usb/caiaq/caiaq-device.c log("received EP1 urb->status = %i\n", urb->status); log 176 sound/usb/caiaq/caiaq-device.c log("unable to submit urb. OOM!?\n"); log 311 sound/usb/caiaq/caiaq-device.c log("Unable to set up audio system (ret=%d)\n", ret); log 318 sound/usb/caiaq/caiaq-device.c log("Unable to set up MIDI system (ret=%d)\n", ret); log 324 sound/usb/caiaq/caiaq-device.c log("Unable to set up input system (ret=%d)\n", ret); log 330 sound/usb/caiaq/caiaq-device.c log("snd_card_register() returned %d\n", ret); log 336 sound/usb/caiaq/caiaq-device.c log("Unable to set up control system (ret=%d)\n", ret); log 376 sound/usb/caiaq/caiaq-device.c log("can't set alt interface.\n"); log 452 sound/usb/caiaq/caiaq-device.c log("unable to init card! (ret=%d)\n", ret); log 82 sound/usb/caiaq/caiaq-midi.c log("snd_usb_caiaq_midi_send(%p): usb_submit_urb() failed, %d\n", log 615 virt/kvm/kvm_main.c if (log->slot >= KVM_MEMORY_SLOTS) log 618 virt/kvm/kvm_main.c memslot = &kvm->memslots[log->slot]; log 629 virt/kvm/kvm_main.c if (copy_to_user(log->dirty_bitmap, memslot->dirty_bitmap, n)) log 1327 virt/kvm/kvm_main.c struct kvm_dirty_log log; log 1330 virt/kvm/kvm_main.c if (copy_from_user(&log, argp, sizeof log)) log 1332 virt/kvm/kvm_main.c r = kvm_vm_ioctl_get_dirty_log(kvm, &log);