/fs/jfs/ |
D | namei.c | 79 tid_t tid; /* transaction id */ in jfs_create() local 109 tid = txBegin(dip->i_sb, 0); in jfs_create() 114 rc = jfs_init_acl(tid, ip, dip); in jfs_create() 118 rc = jfs_init_security(tid, ip, dip, &dentry->d_name); in jfs_create() 120 txAbort(tid, 0); in jfs_create() 126 txAbort(tid, 0); in jfs_create() 130 tblk = tid_to_tblock(tid); in jfs_create() 141 xtInitRoot(tid, ip); in jfs_create() 148 if ((rc = dtInsert(tid, dip, &dname, &ino, &btstack))) { in jfs_create() 151 txAbort(tid, 1); /* Marks Filesystem dirty */ in jfs_create() [all …]
|
D | jfs_xtree.h | 113 extern void xtInitRoot(tid_t tid, struct inode *ip); 114 extern int xtInsert(tid_t tid, struct inode *ip, 116 extern int xtExtend(tid_t tid, struct inode *ip, s64 xoff, int xlen, 119 extern int xtTailgate(tid_t tid, struct inode *ip, 122 extern int xtUpdate(tid_t tid, struct inode *ip, struct xad *nxad); 123 extern int xtDelete(tid_t tid, struct inode *ip, s64 xoff, int xlen, 125 extern s64 xtTruncate(tid_t tid, struct inode *ip, s64 newsize, int type); 126 extern s64 xtTruncate_pmap(tid_t tid, struct inode *ip, s64 committed_size); 127 extern int xtRelocate(tid_t tid, struct inode *ip, 129 extern int xtAppend(tid_t tid,
|
D | acl.c | 75 static int jfs_set_acl(tid_t tid, struct inode *inode, int type, in jfs_set_acl() argument 107 rc = __jfs_setxattr(tid, inode, ea_name, value, size, 0); in jfs_set_acl() 117 int jfs_init_acl(tid_t tid, struct inode *inode, struct inode *dir) in jfs_init_acl() argument 131 rc = jfs_set_acl(tid, inode, ACL_TYPE_DEFAULT, acl); in jfs_init_acl() 139 rc = jfs_set_acl(tid, inode, ACL_TYPE_ACCESS, acl); in jfs_init_acl() 155 tid_t tid; in jfs_acl_chmod() local 168 tid = txBegin(inode->i_sb, 0); in jfs_acl_chmod() 170 rc = jfs_set_acl(tid, inode, ACL_TYPE_ACCESS, acl); in jfs_acl_chmod() 172 rc = txCommit(tid, 1, &inode, 0); in jfs_acl_chmod() 173 txEnd(tid); in jfs_acl_chmod()
|
D | jfs_xtree.c | 119 static int xtSplitUp(tid_t tid, 123 static int xtSplitPage(tid_t tid, struct inode *ip, struct xtsplit * split, 126 static int xtSplitRoot(tid_t tid, struct inode *ip, 130 static int xtDeleteUp(tid_t tid, struct inode *ip, struct metapage * fmp, 137 static int xtRelink(tid_t tid, struct inode *ip, xtpage_t * fp); 536 int xtInsert(tid_t tid, /* transaction id */ in xtInsert() argument 616 if ((rc = xtSplitUp(tid, ip, &split, &btstack))) { in xtInsert() 653 tlck = txLock(tid, ip, mp, tlckXTREE | tlckGROW); in xtInsert() 687 xtSplitUp(tid_t tid, in xtSplitUp() argument 744 tlck = txLock(tid, ip, smp, tlckXTREE | tlckGROW); in xtSplitUp() [all …]
|
D | jfs_dtree.c | 152 static int dtSplitUp(tid_t tid, struct inode *ip, 155 static int dtSplitPage(tid_t tid, struct inode *ip, struct dtsplit * split, 158 static int dtExtendPage(tid_t tid, struct inode *ip, 161 static int dtSplitRoot(tid_t tid, struct inode *ip, 164 static int dtDeleteUp(tid_t tid, struct inode *ip, struct metapage * fmp, 167 static int dtRelink(tid_t tid, struct inode *ip, dtpage_t * p); 304 static inline void lock_index(tid_t tid, struct inode *ip, struct metapage * mp, in lock_index() argument 311 tlck = txLock(tid, ip, mp, tlckDATA); in lock_index() 334 static u32 add_index(tid_t tid, struct inode *ip, s64 bn, int slot) in add_index() argument 401 xtInitRoot(tid, ip); in add_index() [all …]
|
D | jfs_txnmgr.c | 218 TxLock[lid].tid = 0; in txLockFree() 501 void txEnd(tid_t tid) in txEnd() argument 503 struct tblock *tblk = tid_to_tblock(tid); in txEnd() 506 jfs_info("txEnd: tid = %d", tid); in txEnd() 526 jfs_info("txEnd called w/lazy tid: %d, tblk = 0x%p", tid, tblk); in txEnd() 535 jfs_info("txEnd: tid: %d, tblk = 0x%p", tid, tblk); in txEnd() 543 TxAnchor.freetid = tid; in txEnd() 591 struct tlock *txLock(tid_t tid, struct inode *ip, struct metapage * mp, in txLock() argument 621 jfs_info("txLock: tid:%d ip:0x%p mp:0x%p lid:%d", tid, ip, mp, lid); in txLock() 625 if ((xtid = tlck->tid) == tid) { in txLock() [all …]
|
D | inode.c | 86 tid_t tid; in jfs_commit_inode() local 111 tid = txBegin(inode->i_sb, COMMIT_INODE); in jfs_commit_inode() 118 rc = txCommit(tid, 1, &inode, wait ? COMMIT_SYNC : 0); in jfs_commit_inode() 120 txEnd(tid); in jfs_commit_inode() 377 tid_t tid; in jfs_truncate_nolock() local 387 tid = txBegin(ip->i_sb, 0); in jfs_truncate_nolock() 397 newsize = xtTruncate(tid, ip, length, in jfs_truncate_nolock() 400 txEnd(tid); in jfs_truncate_nolock() 408 txCommit(tid, 1, &ip, 0); in jfs_truncate_nolock() 409 txEnd(tid); in jfs_truncate_nolock()
|
D | xattr.c | 605 static int ea_put(tid_t tid, struct inode *inode, struct ea_buffer *ea_buf, in ea_put() argument 644 txEA(tid, inode, &ji->ea, &ea_buf->new_ea); in ea_put() 652 txEA(tid, inode, &ji->ea, NULL); in ea_put() 767 int __jfs_setxattr(tid_t tid, struct inode *inode, const char *name, in __jfs_setxattr() argument 893 rc = ea_put(tid, inode, &ea_buf, new_size); in __jfs_setxattr() 912 tid_t tid; in jfs_setxattr() local 922 tid = txBegin(inode->i_sb, 0); in jfs_setxattr() 924 rc = __jfs_setxattr(tid, dentry->d_inode, name, value, value_len, in jfs_setxattr() 927 rc = txCommit(tid, 1, &inode, 0); in jfs_setxattr() 928 txEnd(tid); in jfs_setxattr() [all …]
|
D | jfs_dtree.h | 29 tid_t tid; member 254 extern void dtInitRoot(tid_t tid, struct inode *ip, u32 idotdot); 259 extern int dtInsert(tid_t tid, struct inode *ip, struct component_name * key, 262 extern int dtDelete(tid_t tid, struct inode *ip, struct component_name * key, 265 extern int dtModify(tid_t tid, struct inode *ip, struct component_name * key,
|
D | resize.c | 79 int tid; in jfs_extendfs() local 392 tid = txBegin(sb, COMMIT_FORCE); in jfs_extendfs() 394 if ((rc = xtAppend(tid, ipbmap, 0, xoff, nblocks, &xlen, &xaddr, 0))) { in jfs_extendfs() 395 txEnd(tid); in jfs_extendfs() 403 rc = txCommit(tid, 1, &iplist[0], COMMIT_FORCE); in jfs_extendfs() 405 txEnd(tid); in jfs_extendfs()
|
D | jfs_txnmgr.h | 26 #define tid_to_tblock(tid) (&TxBlock[tid]) argument 99 tid_t tid; /* 2: transaction id holding lock */ member 274 tid_t tid; /* tid = index of tblock */ member
|
D | jfs_imap.c | 599 int diWrite(tid_t tid, struct inode *ip) in diWrite() argument 672 txLock(tid, ipimap, mp, tlckINODE | tlckENTRY)) == NULL) in diWrite() 875 tid_t tid; in diFree() local 1251 tid = txBegin(ipimap->i_sb, COMMIT_FORCE); in diFree() 1261 tlck = txLock(tid, ipimap, mp, tlckINODE | tlckFREE); in diFree() 1282 rc = txCommit(tid, 1, &iplist[0], COMMIT_FORCE); in diFree() 1284 txEnd(tid); in diFree() 2469 tid_t tid; in diNewIAG() local 2539 tid = txBegin(sb, COMMIT_FORCE); in diNewIAG() 2544 xtInsert(tid, ipimap, 0, blkno, xlen, &xaddr, 0))) { in diNewIAG() [all …]
|
D | jfs_acl.h | 29 static inline int jfs_init_acl(tid_t tid, struct inode *inode, in jfs_init_acl() argument
|
D | jfs_xattr.h | 68 static inline int jfs_init_security(tid_t tid, struct inode *inode, in jfs_init_security() argument
|
D | jfs_imap.h | 174 extern int diWrite(tid_t tid, struct inode *);
|
/fs/jbd2/ |
D | journal.c | 540 int jbd2_log_start_commit(journal_t *journal, tid_t tid) in jbd2_log_start_commit() argument 545 ret = __jbd2_log_start_commit(journal, tid); in jbd2_log_start_commit() 560 tid_t tid; in __jbd2_journal_force_commit() local 576 tid = transaction->t_tid; in __jbd2_journal_force_commit() 579 jbd2_log_start_commit(journal, tid); in __jbd2_journal_force_commit() 580 ret = jbd2_log_wait_commit(journal, tid); in __jbd2_journal_force_commit() 632 tid_t tid = journal->j_running_transaction->t_tid; in jbd2_journal_start_commit() local 634 __jbd2_log_start_commit(journal, tid); in jbd2_journal_start_commit() 638 *ptid = tid; in jbd2_journal_start_commit() 659 int jbd2_trans_will_send_data_barrier(journal_t *journal, tid_t tid) in jbd2_trans_will_send_data_barrier() argument [all …]
|
D | checkpoint.c | 142 tid_t tid = 0; in __jbd2_log_wait_for_space() local 145 tid = journal->j_committing_transaction->t_tid; in __jbd2_log_wait_for_space() 153 } else if (tid) { in __jbd2_log_wait_for_space() 160 jbd2_log_wait_commit(journal, tid); in __jbd2_log_wait_for_space() 267 tid_t tid = t->t_tid; in jbd2_log_do_checkpoint() local 282 jbd2_log_start_commit(journal, tid); in jbd2_log_do_checkpoint() 283 jbd2_log_wait_commit(journal, tid); in jbd2_log_do_checkpoint()
|
D | transaction.c | 154 tid_t tid = journal->j_running_transaction->t_tid; in wait_transaction_locked() local 158 need_to_start = !tid_geq(journal->j_commit_request, tid); in wait_transaction_locked() 161 jbd2_log_start_commit(journal, tid); in wait_transaction_locked() 627 tid_t tid; in jbd2__journal_restart() local 654 tid = transaction->t_tid; in jbd2__journal_restart() 660 need_to_start = !tid_geq(journal->j_commit_request, tid); in jbd2__journal_restart() 663 jbd2_log_start_commit(journal, tid); in jbd2__journal_restart() 1530 tid_t tid; in jbd2_journal_stop() local 1654 tid = transaction->t_tid; in jbd2_journal_stop() 1662 err = jbd2_log_wait_commit(journal, tid); in jbd2_journal_stop()
|
/fs/jbd/ |
D | journal.c | 472 int log_start_commit(journal_t *journal, tid_t tid) in log_start_commit() argument 477 ret = __log_start_commit(journal, tid); in log_start_commit() 495 tid_t tid; in journal_force_commit_nested() local 509 tid = transaction->t_tid; in journal_force_commit_nested() 511 log_wait_commit(journal, tid); in journal_force_commit_nested() 526 tid_t tid = journal->j_running_transaction->t_tid; in journal_start_commit() local 528 __log_start_commit(journal, tid); in journal_start_commit() 532 *ptid = tid; in journal_start_commit() 551 int log_wait_commit(journal_t *journal, tid_t tid) in log_wait_commit() argument 557 if (!tid_geq(journal->j_commit_request, tid)) { in log_wait_commit() [all …]
|
D | checkpoint.c | 151 tid_t tid = 0; in __log_wait_for_space() local 154 tid = journal->j_committing_transaction->t_tid; in __log_wait_for_space() 162 } else if (tid) { in __log_wait_for_space() 163 log_wait_commit(journal, tid); in __log_wait_for_space() 304 tid_t tid = t->t_tid; in __process_buffer() local 308 log_start_commit(journal, tid); in __process_buffer() 309 log_wait_commit(journal, tid); in __process_buffer()
|
/fs/xfs/ |
D | xfs_log_recover.h | 28 #define XLOG_RHASH(tid) \ argument 29 ((((__uint32_t)tid)>>XLOG_RHASH_SHIFT) & (XLOG_RHASH_SIZE-1))
|
/fs/ceph/ |
D | mds_client.c | 551 u64 tid) in __lookup_request() argument 558 if (tid < req->r_tid) in __lookup_request() 560 else if (tid > req->r_tid) in __lookup_request() 1684 msg->hdr.tid = cpu_to_le64(req->r_tid); in create_request_message() 2066 u64 tid; in handle_reply() local 2077 tid = le64_to_cpu(msg->hdr.tid); in handle_reply() 2079 req = __lookup_request(mdsc, tid); in handle_reply() 2081 dout("handle_reply on unknown tid %llu\n", tid); in handle_reply() 2090 " not mds%d\n", tid, session->s_mds, in handle_reply() 2100 head->safe ? "safe" : "unsafe", tid, mds); in handle_reply() [all …]
|
/fs/proc/ |
D | task_nommu.c | 173 pid_t tid = vm_is_stack(priv->task, vma, is_pid); in nommu_vma_show() local 175 if (tid != 0) { in nommu_vma_show() 185 seq_printf(m, "[stack:%d]", tid); in nommu_vma_show()
|
D | base.c | 3176 unsigned tid; in proc_task_lookup() local 3182 tid = name_to_int(dentry); in proc_task_lookup() 3183 if (tid == ~0U) in proc_task_lookup() 3188 task = find_task_by_pid_ns(tid, ns); in proc_task_lookup() 3219 int tid, int nr, struct pid_namespace *ns) in first_tid() argument 3225 if (tid && (nr > 0)) { in first_tid() 3226 pos = find_task_by_pid_ns(tid, ns); in first_tid() 3276 struct task_struct *task, int tid) in proc_task_fill_cache() argument 3279 int len = snprintf(name, sizeof(name), "%d", tid); in proc_task_fill_cache() 3293 int tid; in proc_task_readdir() local [all …]
|
D | task_mmu.c | 356 pid_t tid; in show_map_vma() local 369 tid = vm_is_stack(task, vma, is_pid); in show_map_vma() 371 if (tid != 0) { in show_map_vma() 382 seq_printf(m, "[stack:%d]", tid); in show_map_vma() 1388 pid_t tid = vm_is_stack(task, vma, is_pid); in show_numa_map() local 1389 if (tid != 0) { in show_numa_map() 1398 seq_printf(m, " stack:%d", tid); in show_numa_map()
|