File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -321,6 +321,8 @@ static int journal_entry_open(struct journal *j)
321
321
atomic64_inc (& j -> seq );
322
322
journal_pin_list_init (fifo_push_ref (& j -> pin ), 1 );
323
323
324
+ BUG_ON (j -> pin .back - 1 != atomic64_read (& j -> seq ));
325
+
324
326
BUG_ON (j -> buf + (journal_cur_seq (j ) & JOURNAL_BUF_MASK ) != buf );
325
327
326
328
bkey_extent_init (& buf -> key );
Original file line number Diff line number Diff line change @@ -136,9 +136,7 @@ static inline u64 journal_last_seq(struct journal *j)
136
136
137
137
static inline u64 journal_cur_seq (struct journal * j )
138
138
{
139
- EBUG_ON (j -> pin .back - 1 != atomic64_read (& j -> seq ));
140
-
141
- return j -> pin .back - 1 ;
139
+ return atomic64_read (& j -> seq );
142
140
}
143
141
144
142
static inline u64 journal_last_unwritten_seq (struct journal * j )
You can’t perform that action at this time.
0 commit comments