Home
last modified time | relevance | path

Searched refs:transaction (Results 1 – 25 of 202) sorted by relevance

123456789

/kernel/linux/linux-5.10/fs/jbd2/
Dcheckpoint.c32 transaction_t *transaction = jh->b_cp_transaction; in __buffer_unlink_first() local
36 if (transaction->t_checkpoint_list == jh) { in __buffer_unlink_first()
37 transaction->t_checkpoint_list = jh->b_cpnext; in __buffer_unlink_first()
38 if (transaction->t_checkpoint_list == jh) in __buffer_unlink_first()
39 transaction->t_checkpoint_list = NULL; in __buffer_unlink_first()
50 transaction_t *transaction = jh->b_cp_transaction; in __buffer_unlink() local
53 if (transaction->t_checkpoint_io_list == jh) { in __buffer_unlink()
54 transaction->t_checkpoint_io_list = jh->b_cpnext; in __buffer_unlink()
55 if (transaction->t_checkpoint_io_list == jh) in __buffer_unlink()
56 transaction->t_checkpoint_io_list = NULL; in __buffer_unlink()
[all …]
Dtransaction.c58 void jbd2_journal_free_transaction(transaction_t *transaction) in jbd2_journal_free_transaction() argument
60 if (unlikely(ZERO_OR_NULL_PTR(transaction))) in jbd2_journal_free_transaction()
62 kmem_cache_free(transaction_cache, transaction); in jbd2_journal_free_transaction()
103 transaction_t *transaction) in jbd2_get_transaction() argument
105 transaction->t_journal = journal; in jbd2_get_transaction()
106 transaction->t_state = T_RUNNING; in jbd2_get_transaction()
107 transaction->t_start_time = ktime_get(); in jbd2_get_transaction()
108 transaction->t_tid = journal->j_transaction_sequence++; in jbd2_get_transaction()
109 transaction->t_expires = jiffies + journal->j_commit_interval; in jbd2_get_transaction()
110 spin_lock_init(&transaction->t_handle_lock); in jbd2_get_transaction()
[all …]
Djournal.c175 transaction_t *transaction; in kjournald2() local
241 transaction = journal->j_running_transaction; in kjournald2()
242 if (transaction && time_after_eq(jiffies, in kjournald2()
243 transaction->t_expires)) in kjournald2()
260 transaction = journal->j_running_transaction; in kjournald2()
261 if (transaction && time_after_eq(jiffies, transaction->t_expires)) { in kjournald2()
262 journal->j_commit_request = transaction->t_tid; in kjournald2()
338 int jbd2_journal_write_metadata_buffer(transaction_t *transaction, in jbd2_journal_write_metadata_buffer() argument
351 journal_t *journal = transaction->t_journal; in jbd2_journal_write_metadata_buffer()
467 __jbd2_journal_file_buffer(jh_in, transaction, BJ_Shadow); in jbd2_journal_write_metadata_buffer()
[all …]
Drevoke.c530 void jbd2_journal_write_revoke_records(transaction_t *transaction, in jbd2_journal_write_revoke_records() argument
533 journal_t *journal = transaction->t_journal; in jbd2_journal_write_revoke_records()
554 write_one_revoke_record(transaction, log_bufs, in jbd2_journal_write_revoke_records()
571 static void write_one_revoke_record(transaction_t *transaction, in write_one_revoke_record() argument
577 journal_t *journal = transaction->t_journal; in write_one_revoke_record()
610 descriptor = jbd2_journal_get_descriptor_buffer(transaction, in write_one_revoke_record()
/kernel/linux/linux-5.10/drivers/staging/octeon-usb/
Docteon-hcd.c1352 struct cvmx_usb_transaction *transaction = in cvmx_usb_start_channel_control() local
1353 list_first_entry(&pipe->transactions, typeof(*transaction), in cvmx_usb_start_channel_control()
1356 cvmx_phys_to_ptr(transaction->control_header); in cvmx_usb_start_channel_control()
1357 int bytes_to_transfer = transaction->buffer_length - in cvmx_usb_start_channel_control()
1358 transaction->actual_bytes; in cvmx_usb_start_channel_control()
1365 switch (transaction->stage) { in cvmx_usb_start_channel_control()
1383 transaction->control_header); in cvmx_usb_start_channel_control()
1497 struct cvmx_usb_transaction *transaction = in cvmx_usb_start_channel() local
1498 list_first_entry(&pipe->transactions, typeof(*transaction), in cvmx_usb_start_channel()
1564 u64 dma_address = transaction->buffer + in cvmx_usb_start_channel()
[all …]
/kernel/linux/linux-5.10/drivers/net/wireless/intel/iwlwifi/dvm/
Dtt.c357 struct iwl_tt_trans *transaction; in iwl_advance_tt_handler() local
371 transaction = tt->transaction + in iwl_advance_tt_handler()
373 if (temp >= transaction->tt_low && in iwl_advance_tt_handler()
374 temp <= transaction->tt_high) { in iwl_advance_tt_handler()
388 transaction->next_state) { in iwl_advance_tt_handler()
391 transaction->next_state; in iwl_advance_tt_handler()
596 struct iwl_tt_trans *transaction; in iwl_tt_initialize() local
617 tt->transaction = kcalloc(IWL_TI_STATE_MAX * in iwl_tt_initialize()
621 if (!tt->restriction || !tt->transaction) { in iwl_tt_initialize()
626 kfree(tt->transaction); in iwl_tt_initialize()
[all …]
/kernel/linux/linux-5.10/Documentation/i2c/busses/
Di2c-mlxcpld.rst19 The next transaction types are supported:
29 Bits [6:5] - transaction length. b01 - 72B is supported,
43 It should be written last as it triggers an I2C transaction.
45 Number of data bytes to write in read transaction
47 Number of address bytes to write in read transaction.
49 Bit 0 - transaction is completed.
52 For write transaction address is specified in four first bytes
54 For read transactions address is sent in a separate transaction and
/kernel/linux/linux-5.10/Documentation/filesystems/
Dxfs-delayed-logging-design.rst26 changes in the new transaction that is written to the log.
31 transaction::
42 In other words, each time an object is relogged, the new transaction contains
48 (increasing) LSN of each subsequent transaction - the LSN is effectively a
49 direct encoding of the location in the log of the transaction.
52 transactions. These transaction are known as rolling transactions, and require
53 a special log reservation known as a permanent transaction reservation. A
54 typical example of a rolling transaction is the removal of extents from an
55 inode which can only be done at a rate of two extents per transaction because
56 of reservation size limitations. Hence a rolling extent removal transaction
[all …]
Djournalling.rst42 this use jbd2_journal_start() which returns a transaction handle.
45 which indicates the end of a transaction are nestable calls, so you can
46 reenter a transaction if necessary, but remember you must call
48 jbd2_journal_start() before the transaction is completed (or more
52 Inside each transaction you need to wrap the modifications to the
59 uncommitted transaction. At this point you are at last ready to modify a
74 single outstanding transaction at any one time, remember nothing commits
76 the transaction at the end of each file/inode/address etc. operation you
83 if there isn't enough space in the journal for your transaction (based
96 transaction. I advise having a look at at least ext4_jbd.h to see the
[all …]
/kernel/linux/linux-5.10/Documentation/powerpc/
Dtransactional_memory.rst21 A simple transaction looks like this::
41 /* Retry the transaction if it failed because it conflicted with
50 example, the transaction completes as though it were normal straight-line code
58 transaction, the transaction will be aborted by the CPU. Register and memory
66 Causes of transaction aborts
78 Syscalls made from within an active transaction will not be performed and the
79 transaction will be doomed by the kernel with the failure code TM_CAUSE_SYSCALL
82 Syscalls made from within a suspended transaction are performed as normal and
83 the transaction is not explicitly doomed by the kernel. However, what the
84 kernel does to perform the syscall may result in the transaction being doomed
[all …]
Dsyscall64-abi.rst75 transaction state, and the syscall can affect the behavior of the transaction.
81 in the transaction being doomed by hardware.
88 be performed and the transaction will be doomed by the kernel with the
140 may or may not result in the transaction being doomed by hardware.
/kernel/linux/linux-5.10/drivers/nfc/st21nfca/
Dse.c306 struct nfc_evt_transaction *transaction; in st21nfca_connectivity_event_received() local
338 if (skb->len < aid_len + 4 || aid_len > sizeof(transaction->aid)) in st21nfca_connectivity_event_received()
350 transaction = devm_kzalloc(dev, sizeof(*transaction) + params_len, GFP_KERNEL); in st21nfca_connectivity_event_received()
351 if (!transaction) in st21nfca_connectivity_event_received()
354 transaction->aid_len = aid_len; in st21nfca_connectivity_event_received()
355 transaction->params_len = params_len; in st21nfca_connectivity_event_received()
357 memcpy(transaction->aid, &skb->data[2], aid_len); in st21nfca_connectivity_event_received()
358 memcpy(transaction->params, &skb->data[aid_len + 4], params_len); in st21nfca_connectivity_event_received()
360 r = nfc_se_transaction(hdev->ndev, host, transaction); in st21nfca_connectivity_event_received()
/kernel/linux/linux-5.10/drivers/nfc/st-nci/
Dse.c315 struct nfc_evt_transaction *transaction; in st_nci_hci_connectivity_event_received() local
334 transaction = devm_kzalloc(dev, skb->len - 2, GFP_KERNEL); in st_nci_hci_connectivity_event_received()
335 if (!transaction) in st_nci_hci_connectivity_event_received()
338 transaction->aid_len = skb->data[1]; in st_nci_hci_connectivity_event_received()
339 memcpy(transaction->aid, &skb->data[2], transaction->aid_len); in st_nci_hci_connectivity_event_received()
342 if (skb->data[transaction->aid_len + 2] != in st_nci_hci_connectivity_event_received()
344 devm_kfree(dev, transaction); in st_nci_hci_connectivity_event_received()
348 transaction->params_len = skb->data[transaction->aid_len + 3]; in st_nci_hci_connectivity_event_received()
349 memcpy(transaction->params, skb->data + in st_nci_hci_connectivity_event_received()
350 transaction->aid_len + 4, transaction->params_len); in st_nci_hci_connectivity_event_received()
[all …]
/kernel/linux/linux-5.10/fs/btrfs/
Dtransaction.h122 struct btrfs_transaction *transaction; member
172 inode->last_trans = trans->transaction->transid; in btrfs_set_inode_last_trans()
187 delayed_refs = &trans->transaction->delayed_refs; in btrfs_set_skip_qgroup()
196 delayed_refs = &trans->transaction->delayed_refs; in btrfs_clear_skip_qgroup()
231 void btrfs_put_transaction(struct btrfs_transaction *transaction);
Dtransaction.c118 void btrfs_put_transaction(struct btrfs_transaction *transaction) in btrfs_put_transaction() argument
120 WARN_ON(refcount_read(&transaction->use_count) == 0); in btrfs_put_transaction()
121 if (refcount_dec_and_test(&transaction->use_count)) { in btrfs_put_transaction()
122 BUG_ON(!list_empty(&transaction->list)); in btrfs_put_transaction()
124 &transaction->delayed_refs.href_root.rb_root)); in btrfs_put_transaction()
126 &transaction->delayed_refs.dirty_extent_root)); in btrfs_put_transaction()
127 if (transaction->delayed_refs.pending_csums) in btrfs_put_transaction()
128 btrfs_err(transaction->fs_info, in btrfs_put_transaction()
130 transaction->delayed_refs.pending_csums); in btrfs_put_transaction()
138 while (!list_empty(&transaction->deleted_bgs)) { in btrfs_put_transaction()
[all …]
/kernel/linux/linux-5.10/Documentation/ABI/testing/
Ddebugfs-driver-habanalabs61 transaction while reading from the file generates a read
62 transaction. This custom interface is needed (instead of using
65 move the bar before and after the transaction.
76 write transaction while reading from the file generates a read
77 transaction. This custom interface is needed (instead of using
80 move the bar before and after the transaction.
104 Description: Sets I2C device address for I2C transaction that is generated
111 Description: Sets I2C bus address for I2C transaction that is generated by
118 Description: Triggers an I2C transaction that is generated by the device's
119 CPU. Writing to this file generates a write transaction while
[all …]
/kernel/linux/linux-5.10/Documentation/locking/
Dww-mutex-design.rst36 In the RDBMS literature, a reservation ticket is associated with a transaction.
39 If the transaction holding the lock is younger, the locking transaction waits.
40 If the transaction holding the lock is older, the locking transaction backs off
43 If the transaction holding the lock is younger, the locking transaction
44 wounds the transaction holding the lock, requesting it to die.
45 If the transaction holding the lock is older, it waits for the other
46 transaction. Hence Wound-Wait.
47 The two algorithms are both fair in that a transaction will eventually succeed.
53 running transaction. Note that this is not the same as process preemption. A
54 Wound-Wait transaction is considered preempted when it dies (returning
[all …]
/kernel/linux/linux-5.10/Documentation/filesystems/ext4/
Djournal.rst10 as possible. Once the important data transaction is fully written to the
70 - One transaction
73 Notice that a transaction begins with either a descriptor and some data,
74 or a block revocation list. A finished transaction always ends with a
76 transaction will be discarded during replay.
102 - One transaction
131 - The transaction ID that goes with this block.
145 written through the journal during a transaction.
148 transaction.
244 - Limit of journal blocks per transaction. (Not used?)
[all …]
/kernel/linux/linux-5.10/Documentation/devicetree/bindings/i2c/
Di2c-mux-gpmux.txt34 + between setup of the multiplexer and the child bus I2C transaction
35 + between the child bus I2C transaction and releasing of the multiplexer
39 for the full duration of the complete multiplexed I2C transaction (i.e.
43 adapter for the complete multiplexed I2C transaction.
/kernel/linux/linux-5.10/drivers/net/ethernet/intel/i40e/
Di40e_nvm.c1281 u8 module, transaction; in i40e_nvmupd_validate_command() local
1286 transaction = i40e_nvmupd_get_transaction(cmd->config); in i40e_nvmupd_validate_command()
1301 switch (transaction) { in i40e_nvmupd_validate_command()
1327 switch (transaction) { in i40e_nvmupd_validate_command()
1565 u8 module, transaction; in i40e_nvmupd_nvm_read() local
1568 transaction = i40e_nvmupd_get_transaction(cmd->config); in i40e_nvmupd_nvm_read()
1570 last = (transaction == I40E_NVM_LCB) || (transaction == I40E_NVM_SA); in i40e_nvmupd_nvm_read()
1604 u8 module, transaction; in i40e_nvmupd_nvm_erase() local
1607 transaction = i40e_nvmupd_get_transaction(cmd->config); in i40e_nvmupd_nvm_erase()
1609 last = (transaction & I40E_NVM_LCB); in i40e_nvmupd_nvm_erase()
[all …]
/kernel/linux/linux-5.10/Documentation/i2c/
Di2c-protocol.rst28 Simple send transaction
36 Simple receive transaction
50 condition P a start condition S is sent and the transaction continues.
73 In a combined transaction, no 'S Addr Wr/Rd [A]' is generated at some
/kernel/linux/linux-5.10/Documentation/admin-guide/device-mapper/
Dpersistent-data.rst42 The transaction manager
45 dm-transaction-manager.[hc]
49 transaction manager is by shadowing an existing block (ie. doing
51 the same transaction so performance is reasonable. The commit method
/kernel/linux/linux-5.10/Documentation/driver-api/
Dfirewire.rst37 Firewire core transaction interfaces
40 .. kernel-doc:: drivers/firewire/core-transaction.c
/kernel/linux/linux-5.10/Documentation/devicetree/bindings/net/
Dbrcm,mdio-mux-iproc.txt4 external to SoCs and could accept MDIO transaction compatible to C-22 or
6 properties as well to generate desired MDIO transaction on appropriate bus.
/kernel/linux/linux-5.10/include/trace/events/
Djbd2.h43 __field( tid_t, transaction )
49 __entry->transaction = commit_transaction->t_tid;
54 __entry->transaction, __entry->sync_commit)
100 __field( tid_t, transaction )
107 __entry->transaction = commit_transaction->t_tid;
113 __entry->transaction, __entry->sync_commit, __entry->head)

123456789