Home
last modified time | relevance | path

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

12345678

/Linux-v5.4/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()
81 transaction_t *transaction) in jbd2_get_transaction() argument
83 transaction->t_journal = journal; in jbd2_get_transaction()
84 transaction->t_state = T_RUNNING; in jbd2_get_transaction()
85 transaction->t_start_time = ktime_get(); in jbd2_get_transaction()
86 transaction->t_tid = journal->j_transaction_sequence++; in jbd2_get_transaction()
87 transaction->t_expires = jiffies + journal->j_commit_interval; in jbd2_get_transaction()
88 spin_lock_init(&transaction->t_handle_lock); in jbd2_get_transaction()
[all …]
Djournal.c172 transaction_t *transaction; in kjournald2() local
238 transaction = journal->j_running_transaction; in kjournald2()
239 if (transaction && time_after_eq(jiffies, in kjournald2()
240 transaction->t_expires)) in kjournald2()
257 transaction = journal->j_running_transaction; in kjournald2()
258 if (transaction && time_after_eq(jiffies, transaction->t_expires)) { in kjournald2()
259 journal->j_commit_request = transaction->t_tid; in kjournald2()
335 int jbd2_journal_write_metadata_buffer(transaction_t *transaction, in jbd2_journal_write_metadata_buffer() argument
348 journal_t *journal = transaction->t_journal; in jbd2_journal_write_metadata_buffer()
464 __jbd2_journal_file_buffer(jh_in, transaction, BJ_Shadow); in jbd2_journal_write_metadata_buffer()
[all …]
Drevoke.c524 void jbd2_journal_write_revoke_records(transaction_t *transaction, in jbd2_journal_write_revoke_records() argument
527 journal_t *journal = transaction->t_journal; in jbd2_journal_write_revoke_records()
548 write_one_revoke_record(transaction, log_bufs, in jbd2_journal_write_revoke_records()
565 static void write_one_revoke_record(transaction_t *transaction, in write_one_revoke_record() argument
571 journal_t *journal = transaction->t_journal; in write_one_revoke_record()
604 descriptor = jbd2_journal_get_descriptor_buffer(transaction, in write_one_revoke_record()
/Linux-v5.4/drivers/staging/octeon-usb/
Docteon-hcd.c1353 struct cvmx_usb_transaction *transaction = in cvmx_usb_start_channel_control() local
1354 list_first_entry(&pipe->transactions, typeof(*transaction), in cvmx_usb_start_channel_control()
1357 cvmx_phys_to_ptr(transaction->control_header); in cvmx_usb_start_channel_control()
1358 int bytes_to_transfer = transaction->buffer_length - in cvmx_usb_start_channel_control()
1359 transaction->actual_bytes; in cvmx_usb_start_channel_control()
1366 switch (transaction->stage) { in cvmx_usb_start_channel_control()
1384 transaction->control_header); in cvmx_usb_start_channel_control()
1498 struct cvmx_usb_transaction *transaction = in cvmx_usb_start_channel() local
1499 list_first_entry(&pipe->transactions, typeof(*transaction), in cvmx_usb_start_channel()
1565 u64 dma_address = transaction->buffer + in cvmx_usb_start_channel()
[all …]
/Linux-v5.4/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 …]
/Linux-v5.4/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
/Linux-v5.4/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.rst56 transaction state, and the syscall can affect the behavior of the transaction.
62 in the transaction being doomed by hardware.
69 be performed and the transaction will be doomed by the kernel with the
110 may or may not result in the transaction being doomed by hardware.
/Linux-v5.4/Documentation/filesystems/
Dxfs-delayed-logging-design.txt23 changes in the new transaction that is written to the log.
28 transaction:
39 In other words, each time an object is relogged, the new transaction contains
45 (increasing) LSN of each subsequent transaction - the LSN is effectively a
46 direct encoding of the location in the log of the transaction.
49 transactions. These transaction are known as rolling transactions, and require
50 a special log reservation known as a permanent transaction reservation. A
51 typical example of a rolling transaction is the removal of extents from an
52 inode which can only be done at a rate of two extents per transaction because
53 of reservation size limitations. Hence a rolling extent removal transaction
[all …]
Djournalling.rst42 this use :c:func:`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 :c:func:`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 …]
/Linux-v5.4/drivers/nfc/st21nfca/
Dse.c298 struct nfc_evt_transaction *transaction; in st21nfca_connectivity_event_received() local
318 transaction = (struct nfc_evt_transaction *)devm_kzalloc(dev, in st21nfca_connectivity_event_received()
320 if (!transaction) in st21nfca_connectivity_event_received()
323 transaction->aid_len = skb->data[1]; in st21nfca_connectivity_event_received()
324 memcpy(transaction->aid, &skb->data[2], in st21nfca_connectivity_event_received()
325 transaction->aid_len); in st21nfca_connectivity_event_received()
328 if (skb->data[transaction->aid_len + 2] != in st21nfca_connectivity_event_received()
332 transaction->params_len = skb->data[transaction->aid_len + 3]; in st21nfca_connectivity_event_received()
333 memcpy(transaction->params, skb->data + in st21nfca_connectivity_event_received()
334 transaction->aid_len + 4, transaction->params_len); in st21nfca_connectivity_event_received()
[all …]
/Linux-v5.4/drivers/nfc/st-nci/
Dse.c315 struct nfc_evt_transaction *transaction; in st_nci_hci_connectivity_event_received() local
334 transaction = (struct nfc_evt_transaction *)devm_kzalloc(dev, in st_nci_hci_connectivity_event_received()
336 if (!transaction) in st_nci_hci_connectivity_event_received()
339 transaction->aid_len = skb->data[1]; in st_nci_hci_connectivity_event_received()
340 memcpy(transaction->aid, &skb->data[2], transaction->aid_len); in st_nci_hci_connectivity_event_received()
343 if (skb->data[transaction->aid_len + 2] != in st_nci_hci_connectivity_event_received()
347 transaction->params_len = skb->data[transaction->aid_len + 3]; in st_nci_hci_connectivity_event_received()
348 memcpy(transaction->params, skb->data + in st_nci_hci_connectivity_event_received()
349 transaction->aid_len + 4, transaction->params_len); in st_nci_hci_connectivity_event_received()
351 r = nfc_se_transaction(ndev->nfc_dev, host, transaction); in st_nci_hci_connectivity_event_received()
/Linux-v5.4/fs/btrfs/
Dtransaction.h114 struct btrfs_transaction *transaction; member
150 BTRFS_I(inode)->last_trans = trans->transaction->transid; in btrfs_set_inode_last_trans()
165 delayed_refs = &trans->transaction->delayed_refs; in btrfs_set_skip_qgroup()
174 delayed_refs = &trans->transaction->delayed_refs; in btrfs_clear_skip_qgroup()
226 void btrfs_put_transaction(struct btrfs_transaction *transaction);
Dtransaction.c47 void btrfs_put_transaction(struct btrfs_transaction *transaction) in btrfs_put_transaction() argument
49 WARN_ON(refcount_read(&transaction->use_count) == 0); in btrfs_put_transaction()
50 if (refcount_dec_and_test(&transaction->use_count)) { in btrfs_put_transaction()
51 BUG_ON(!list_empty(&transaction->list)); in btrfs_put_transaction()
53 &transaction->delayed_refs.href_root.rb_root)); in btrfs_put_transaction()
54 if (transaction->delayed_refs.pending_csums) in btrfs_put_transaction()
55 btrfs_err(transaction->fs_info, in btrfs_put_transaction()
57 transaction->delayed_refs.pending_csums); in btrfs_put_transaction()
65 while (!list_empty(&transaction->deleted_bgs)) { in btrfs_put_transaction()
68 cache = list_first_entry(&transaction->deleted_bgs, in btrfs_put_transaction()
[all …]
/Linux-v5.4/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 …]
/Linux-v5.4/Documentation/ABI/testing/
Ddebugfs-driver-habanalabs38 transaction while reading from the file generates a read
39 transaction. This custom interface is needed (instead of using
42 move the bar before and after the transaction.
65 Description: Sets I2C device address for I2C transaction that is generated
72 Description: Sets I2C bus address for I2C transaction that is generated by
79 Description: Triggers an I2C transaction that is generated by the device's
80 CPU. Writing to this file generates a write transaction while
87 Description: Sets I2C register id for I2C transaction that is generated by
/Linux-v5.4/Documentation/filesystems/ext4/
Djournal.rst10 as possible. Once the important data transaction is fully written to the
59 - One transaction
62 Notice that a transaction begins with either a descriptor and some data,
63 or a block revocation list. A finished transaction always ends with a
65 transaction will be discarded during replay.
91 - One transaction
120 - The transaction ID that goes with this block.
134 written through the journal during a transaction.
137 transaction.
233 - Limit of journal blocks per transaction. (Not used?)
[all …]
/Linux-v5.4/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.
/Linux-v5.4/include/trace/events/
Djbd2.h43 __field( int, transaction )
49 __entry->transaction = commit_transaction->t_tid;
54 __entry->transaction, __entry->sync_commit)
100 __field( int, transaction )
107 __entry->transaction = commit_transaction->t_tid;
113 __entry->transaction, __entry->sync_commit, __entry->head)
/Linux-v5.4/drivers/net/ethernet/intel/i40e/
Di40e_nvm.c1278 u8 module, transaction; in i40e_nvmupd_validate_command() local
1283 transaction = i40e_nvmupd_get_transaction(cmd->config); in i40e_nvmupd_validate_command()
1298 switch (transaction) { in i40e_nvmupd_validate_command()
1324 switch (transaction) { in i40e_nvmupd_validate_command()
1562 u8 module, transaction; in i40e_nvmupd_nvm_read() local
1565 transaction = i40e_nvmupd_get_transaction(cmd->config); in i40e_nvmupd_nvm_read()
1567 last = (transaction == I40E_NVM_LCB) || (transaction == I40E_NVM_SA); in i40e_nvmupd_nvm_read()
1601 u8 module, transaction; in i40e_nvmupd_nvm_erase() local
1604 transaction = i40e_nvmupd_get_transaction(cmd->config); in i40e_nvmupd_nvm_erase()
1606 last = (transaction & I40E_NVM_LCB); in i40e_nvmupd_nvm_erase()
[all …]
/Linux-v5.4/Documentation/driver-api/dmaengine/
Dclient.rst23 - Get a descriptor for transaction
25 - Submit the transaction
76 3. Get a descriptor for transaction
92 the given transaction.
139 For slave DMA, the subsequent transaction may not be available
142 transaction.
154 4. Submit the transaction
181 issue_pending API. If channel is idle then the first transaction in
254 completion of a specific DMA transaction.
/Linux-v5.4/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
/Linux-v5.4/Documentation/i2c/
Di2c-protocol.rst28 Simple send transaction
36 Simple receive transaction
50 a start bit S is sent and the transaction continues. An example of
73 In a combined transaction, no 'S Addr Wr/Rd [A]' is generated at some
/Linux-v5.4/Documentation/driver-api/
Dfirewire.rst37 Firewire core transaction interfaces
40 .. kernel-doc:: drivers/firewire/core-transaction.c

12345678