/fs/jfs/ |
D | jfs_logmgr.c | 91 #define LOG_LOCK_INIT(log) mutex_init(&(log)->loglock) argument 92 #define LOG_LOCK(log) mutex_lock(&((log)->loglock)) argument 93 #define LOG_UNLOCK(log) mutex_unlock(&((log)->loglock)) argument 100 #define LOGGC_LOCK_INIT(log) spin_lock_init(&(log)->gclock) argument 101 #define LOGGC_LOCK(log) spin_lock_irq(&(log)->gclock) argument 102 #define LOGGC_UNLOCK(log) spin_unlock_irq(&(log)->gclock) argument 174 static int lmWriteRecord(struct jfs_log * log, struct tblock * tblk, 177 static int lmNextPage(struct jfs_log * log); 178 static int lmLogFileSystem(struct jfs_log * log, struct jfs_sb_info *sbi, 183 static int lbmLogInit(struct jfs_log * log); [all …]
|
D | jfs_txnmgr.c | 165 static int diLog(struct jfs_log * log, struct tblock * tblk, struct lrd * lrd, 167 static int dataLog(struct jfs_log * log, struct tblock * tblk, struct lrd * lrd, 169 static void dtLog(struct jfs_log * log, struct tblock * tblk, struct lrd * lrd, 171 static void mapLog(struct jfs_log * log, struct tblock * tblk, struct lrd * lrd, 176 static int txLog(struct jfs_log * log, struct tblock * tblk, 180 static void xtLog(struct jfs_log * log, struct tblock * tblk, struct lrd * lrd, 366 struct jfs_log *log; in txBegin() local 369 log = JFS_SBI(sb)->log; in txBegin() 380 if (test_bit(log_SYNCBARRIER, &log->flag) || in txBegin() 381 test_bit(log_QUIESCE, &log->flag)) { in txBegin() [all …]
|
D | jfs_logmgr.h | 349 } log; member 490 #define LOGSYNC_LOCK_INIT(log) spin_lock_init(&(log)->synclock) argument 491 #define LOGSYNC_LOCK(log, flags) spin_lock_irqsave(&(log)->synclock, flags) argument 492 #define LOGSYNC_UNLOCK(log, flags) \ argument 493 spin_unlock_irqrestore(&(log)->synclock, flags) 496 #define logdiff(diff, lsn, log)\ argument 498 diff = (lsn) - (log)->syncpt;\ 500 diff += (log)->logsize;\ 505 extern int lmLogShutdown(struct jfs_log * log); 506 extern int lmLogInit(struct jfs_log * log); [all …]
|
D | jfs_umount.c | 57 struct jfs_log *log; in jfs_umount() local 67 if ((log = sbi->log)) in jfs_umount() 71 jfs_flush_journal(log, 1); in jfs_umount() 121 if (log) { /* log = NULL if read-only mount */ in jfs_umount() 139 struct jfs_log *log = sbi->log; in jfs_umount_rw() local 141 if (!log) in jfs_umount_rw() 149 jfs_flush_journal(log, 1); in jfs_umount_rw()
|
D | resize.c | 69 struct jfs_log *log = sbi->log; in jfs_extendfs() local 196 if ((rc = lmLogFormat(log, newLogAddress, newLogSize))) in jfs_extendfs() 219 lmLogShutdown(log); in jfs_extendfs() 260 if ((rc = lmLogFormat(log, newLogAddress, newLogSize))) in jfs_extendfs() 266 log->base = newLogAddress; in jfs_extendfs() 267 log->size = newLogSize >> (L2LOGPSIZE - sb->s_blocksize_bits); in jfs_extendfs() 268 if ((rc = lmLogInit(log))) in jfs_extendfs() 502 j_sb->s_logserial = cpu_to_le32(log->serial); in jfs_extendfs()
|
D | super.c | 486 sbi->log = NULL; in jfs_fill_super() 549 struct jfs_log *log = sbi->log; in jfs_freeze() local 553 lmLogShutdown(log); in jfs_freeze() 562 struct jfs_log *log = sbi->log; in jfs_unfreeze() local 567 if ((rc = lmLogInit(log))) in jfs_unfreeze() 584 struct jfs_log *log = JFS_SBI(sb)->log; in jfs_sync_fs() local 587 if (log) { in jfs_sync_fs() 588 jfs_flush_journal(log, wait); in jfs_sync_fs() 589 jfs_syncpt(log, 0); in jfs_sync_fs()
|
D | jfs_metapage.c | 194 mp->log = NULL; in init_once() 300 struct jfs_log *log = mp->log; in remove_from_logsync() local 306 if (!log) in remove_from_logsync() 309 LOGSYNC_LOCK(log, flags); in remove_from_logsync() 311 mp->log = NULL; in remove_from_logsync() 314 log->count--; in remove_from_logsync() 317 LOGSYNC_UNLOCK(log, flags); in remove_from_logsync() 391 if (mp->log && !(mp->log->cflag & logGC_PAGEOUT)) in metapage_writepage() 392 jfs_flush_journal(mp->log, 0); in metapage_writepage()
|
D | jfs_mount.c | 440 j_sb->s_logdev = cpu_to_le32(new_encode_dev(sbi->log->bdev->bd_dev)); in updateSuper() 441 j_sb->s_logserial = cpu_to_le32(sbi->log->serial); in updateSuper() 496 struct jfs_log *log = JFS_SBI(sb)->log; in logMOUNT() local 504 lmLog(log, NULL, &lrd, NULL); in logMOUNT()
|
D | jfs_incore.h | 170 struct jfs_log *log; /* log */ member 225 if (JFS_SBI(inode->i_sb)->log) in isReadOnly()
|
D | jfs_dmap.c | 427 struct jfs_log *log; in dbUpdatePMap() local 443 log = (struct jfs_log *) JFS_SBI(tblk->sb)->log; in dbUpdatePMap() 444 logdiff(difft, lsn, log); in dbUpdatePMap() 535 LOGSYNC_LOCK(log, flags); in dbUpdatePMap() 538 logdiff(diffp, mp->lsn, log); in dbUpdatePMap() 547 logdiff(difft, tblk->clsn, log); in dbUpdatePMap() 548 logdiff(diffp, mp->clsn, log); in dbUpdatePMap() 552 mp->log = log; in dbUpdatePMap() 556 log->count++; in dbUpdatePMap() 561 LOGSYNC_UNLOCK(log, flags); in dbUpdatePMap()
|
D | jfs_imap.c | 2755 struct jfs_log *log; in diUpdatePMap() local 2833 log = JFS_SBI(tblk->sb)->log; in diUpdatePMap() 2834 LOGSYNC_LOCK(log, flags); in diUpdatePMap() 2837 logdiff(difft, lsn, log); in diUpdatePMap() 2838 logdiff(diffp, mp->lsn, log); in diUpdatePMap() 2846 logdiff(difft, tblk->clsn, log); in diUpdatePMap() 2847 logdiff(diffp, mp->clsn, log); in diUpdatePMap() 2851 mp->log = log; in diUpdatePMap() 2854 log->count++; in diUpdatePMap() 2858 LOGSYNC_UNLOCK(log, flags); in diUpdatePMap()
|
D | jfs_xtree.c | 3442 int freed, log; in xtTruncate() local 3457 log = 1; in xtTruncate() 3459 log = 0; in xtTruncate() 3519 if (log) in xtTruncate() 3548 if (log) { in xtTruncate() 3626 if (log) { /* COMMIT_PWMAP */ in xtTruncate() 3667 if (!log) { /* COMMIT_WAMP */ in xtTruncate() 3689 if (log) { /* COMMIT_PWMAP */ in xtTruncate() 3713 if (log) { /* COMMIT_PWMAP */ in xtTruncate() 3757 if (log) { /* COMMIT_PWMAP */ in xtTruncate() [all …]
|
D | file.c | 37 jfs_flush_journal(JFS_SBI(inode->i_sb)->log, 1); in jfs_fsync()
|
D | jfs_metapage.h | 46 struct jfs_log *log; member
|
D | Kconfig | 41 written to the system log. Under normal circumstances, this
|
D | jfs_txnmgr.h | 276 struct jfs_log *log; /* log */ member
|
/fs/xfs/ |
D | xfs_log.c | 59 STATIC int xlog_space_left(xlog_t *log, int cycle, int bytes); 60 STATIC int xlog_sync(xlog_t *log, xlog_in_core_t *iclog); 61 STATIC void xlog_dealloc_log(xlog_t *log); 70 STATIC void xlog_state_do_callback(xlog_t *log,int aborted, xlog_in_core_t *iclog); 71 STATIC int xlog_state_get_iclog_space(xlog_t *log, 77 STATIC int xlog_state_release_iclog(xlog_t *log, 79 STATIC void xlog_state_switch_iclogs(xlog_t *log, 82 STATIC int xlog_state_sync(xlog_t *log, 86 STATIC int xlog_state_sync_all(xlog_t *log, uint flags, int *log_flushed); 87 STATIC void xlog_state_want_sync(xlog_t *log, xlog_in_core_t *iclog); [all …]
|
D | xfs_log_recover.c | 57 #define xlog_recover_check_summary(log) argument 65 #define XLOG_SECTOR_ROUNDUP_BBCOUNT(log, bbs) \ argument 66 ( ((log)->l_sectbb_mask && (bbs & (log)->l_sectbb_mask)) ? \ 67 ((bbs + (log)->l_sectbb_mask + 1) & ~(log)->l_sectbb_mask) : (bbs) ) 68 #define XLOG_SECTOR_ROUNDDOWN_BLKNO(log, bno) ((bno) & ~(log)->l_sectbb_mask) argument 72 xlog_t *log, in xlog_get_bp() argument 75 if (nbblks <= 0 || nbblks > log->l_logBBsize) { in xlog_get_bp() 78 XFS_ERRLEVEL_HIGH, log->l_mp); in xlog_get_bp() 82 if (log->l_sectbb_log) { in xlog_get_bp() 84 nbblks += XLOG_SECTOR_ROUNDUP_BBCOUNT(log, 1); in xlog_get_bp() [all …]
|
D | xfs_log_priv.h | 23 struct log; 45 #define XLOG_BTOLSUNIT(log, b) (((b)+(log)->l_mp->m_sb.sb_logsunit-1) / \ argument 46 (log)->l_mp->m_sb.sb_logsunit) 47 #define XLOG_LSUNITTOB(log, su) ((su) * (log)->l_mp->m_sb.sb_logsunit) argument 51 #define XLOG_REC_SHIFT(log) \ argument 52 BTOBB(1 << (xfs_sb_version_haslogv2(&log->l_mp->m_sb) ? \ 54 #define XLOG_TOTAL_REC_SHIFT(log) \ argument 55 BTOBB(XLOG_MAX_ICLOGS << (xfs_sb_version_haslogv2(&log->l_mp->m_sb) ? \ 358 struct log *ic_log; 385 typedef struct log { struct [all …]
|
D | xfs_rtalloc.c | 824 int log; /* loop counter, log2 of ext. size */ in xfs_rtany_summary() local 830 for (log = low; log <= high; log++) { in xfs_rtany_summary() 834 error = xfs_rtget_summary(mp, tp, log, bbno, rbpp, rsb, &sum); in xfs_rtany_summary() 1105 int log; /* summary level number (log length) */ in xfs_rtcopy_summary() local 1110 for (log = omp->m_rsumlevels - 1; log >= 0; log--) { in xfs_rtcopy_summary() 1114 error = xfs_rtget_summary(omp, tp, log, bbno, &bp, in xfs_rtcopy_summary() 1120 error = xfs_rtmodify_summary(omp, tp, log, bbno, -sum, in xfs_rtcopy_summary() 1124 error = xfs_rtmodify_summary(nmp, tp, log, bbno, sum, in xfs_rtcopy_summary() 1563 int log, /* log2 of extent size */ in xfs_rtget_summary() argument 1578 so = XFS_SUMOFFS(mp, log, bbno); in xfs_rtget_summary() [all …]
|
/fs/btrfs/ |
D | tree-log.c | 191 int (*process_func)(struct btrfs_root *log, struct extent_buffer *eb, 198 static int process_one_buffer(struct btrfs_root *log, in process_one_buffer() argument 203 mutex_lock(&log->fs_info->pinned_mutex); in process_one_buffer() 204 btrfs_update_pinned_extents(log->fs_info->extent_root, in process_one_buffer() 206 mutex_unlock(&log->fs_info->pinned_mutex); in process_one_buffer() 661 static noinline int backref_in_log(struct btrfs_root *log, in backref_in_log() argument 676 ret = btrfs_search_slot(NULL, log, key, path, 0, 0); in backref_in_log() 711 struct btrfs_root *log, in add_inode_ref() argument 803 if (!backref_in_log(log, key, victim_name, in add_inode_ref() 1280 struct btrfs_root *log, in check_item_in_log() argument [all …]
|
D | Makefile | 10 ref-cache.o export.o tree-log.o acl.o free-space-cache.o zlib.o \
|
/fs/gfs2/ |
D | Makefile | 3 glops.o inode.o log.o lops.o locking.o main.o meta_io.o \
|
/fs/ubifs/ |
D | Makefile | 4 ubifs-y += tnc.o master.o scan.o replay.o log.o commit.o gc.o orphan.o
|
/fs/ufs/ |
D | Kconfig | 43 written to the system log.
|