Lines Matching refs:reservations
41 return __journal_entry_is_open(j->reservations); in journal_entry_is_open()
46 union journal_res_state s = READ_ONCE(j->reservations); in bch2_journal_buf_to_text()
203 if (!journal_state_seq_count(j, j->reservations, seq)) { in bch2_journal_do_writes()
251 old.v = atomic64_read(&j->reservations.counter); in __journal_entry_close()
259 } while (!atomic64_try_cmpxchg(&j->reservations.counter, in __journal_entry_close()
499 old.v = atomic64_read(&j->reservations.counter); in journal_entry_open()
513 } while (!atomic64_try_cmpxchg(&j->reservations.counter, in journal_entry_open()
546 if (__journal_entry_is_open(j->reservations)) { in journal_write_work()
782 state = READ_ONCE(j->reservations); in bch2_journal_entry_res_resize()
1016 j->reservations.cur_entry_offset == JOURNAL_ENTRY_BLOCKED_VAL) { in bch2_journal_unblock()
1019 old.v = atomic64_read(&j->reservations.counter); in bch2_journal_unblock()
1023 } while (!atomic64_try_cmpxchg(&j->reservations.counter, &old.v, new.v)); in bch2_journal_unblock()
1035 old.v = atomic64_read(&j->reservations.counter); in __bch2_journal_block()
1044 } while (!atomic64_try_cmpxchg(&j->reservations.counter, &old.v, new.v)); in __bch2_journal_block()
1079 s.v = atomic64_read_acquire(&j->reservations.counter); in __bch2_next_write_buffer_flush_journal_buf()
1085 s.v = atomic64_read_acquire(&j->reservations.counter); in __bch2_next_write_buffer_flush_journal_buf()
1563 j->reservations.idx = journal_cur_seq(j); in bch2_fs_journal_start()
1689 atomic64_set(&j->reservations.counter, in bch2_fs_journal_init_early()
1734 s = READ_ONCE(j->reservations); in __bch2_journal_debug_to_text()