File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -369,6 +369,7 @@ static noinline void bch2_dio_write_flush(struct dio_write *dio)
369
369
370
370
static __always_inline long bch2_dio_write_done (struct dio_write * dio )
371
371
{
372
+ struct bch_fs * c = dio -> op .c ;
372
373
struct kiocb * req = dio -> req ;
373
374
struct bch_inode_info * inode = dio -> inode ;
374
375
bool sync = dio -> sync ;
@@ -387,7 +388,7 @@ static __always_inline long bch2_dio_write_done(struct dio_write *dio)
387
388
ret = dio -> op .error ?: ((long ) dio -> written << 9 );
388
389
bio_put (& dio -> op .wbio .bio );
389
390
390
- bch2_write_ref_put (dio -> op . c , BCH_WRITE_REF_dio_write );
391
+ bch2_write_ref_put (c , BCH_WRITE_REF_dio_write );
391
392
392
393
/* inode->i_dio_count is our ref on inode and thus bch_fs */
393
394
inode_dio_end (& inode -> v );
You can’t perform that action at this time.
0 commit comments