File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -257,7 +257,6 @@ void bch2_readahead(struct readahead_control *ractl)
257
257
struct bch_inode_info * inode = to_bch_ei (ractl -> mapping -> host );
258
258
struct bch_fs * c = inode -> v .i_sb -> s_fs_info ;
259
259
struct bch_io_opts opts ;
260
- struct btree_trans * trans = bch2_trans_get (c );
261
260
struct folio * folio ;
262
261
struct readpages_iter readpages_iter ;
263
262
@@ -269,6 +268,7 @@ void bch2_readahead(struct readahead_control *ractl)
269
268
270
269
bch2_pagecache_add_get (inode );
271
270
271
+ struct btree_trans * trans = bch2_trans_get (c );
272
272
while ((folio = readpage_iter_peek (& readpages_iter ))) {
273
273
unsigned n = min_t (unsigned ,
274
274
readpages_iter .folios .nr -
@@ -289,10 +289,10 @@ void bch2_readahead(struct readahead_control *ractl)
289
289
& readpages_iter );
290
290
bch2_trans_unlock (trans );
291
291
}
292
+ bch2_trans_put (trans );
292
293
293
294
bch2_pagecache_add_put (inode );
294
295
295
- bch2_trans_put (trans );
296
296
darray_exit (& readpages_iter .folios );
297
297
}
298
298
You can’t perform that action at this time.
0 commit comments