File tree Expand file tree Collapse file tree 1 file changed +2
-8
lines changed Expand file tree Collapse file tree 1 file changed +2
-8
lines changed Original file line number Diff line number Diff line change @@ -290,10 +290,7 @@ static void ovl_aio_cleanup_handler(struct ovl_aio_req *aio_req)
290
290
if (iocb -> ki_flags & IOCB_WRITE ) {
291
291
struct inode * inode = file_inode (orig_iocb -> ki_filp );
292
292
293
- /* Actually acquired in ovl_write_iter() */
294
- __sb_writers_acquired (file_inode (iocb -> ki_filp )-> i_sb ,
295
- SB_FREEZE_WRITE );
296
- file_end_write (iocb -> ki_filp );
293
+ kiocb_end_write (iocb );
297
294
ovl_copyattr (inode );
298
295
}
299
296
@@ -409,17 +406,14 @@ static ssize_t ovl_write_iter(struct kiocb *iocb, struct iov_iter *iter)
409
406
if (!aio_req )
410
407
goto out ;
411
408
412
- file_start_write (real .file );
413
- /* Pacify lockdep, same trick as done in aio_write() */
414
- __sb_writers_release (file_inode (real .file )-> i_sb ,
415
- SB_FREEZE_WRITE );
416
409
aio_req -> fd = real ;
417
410
real .flags = 0 ;
418
411
aio_req -> orig_iocb = iocb ;
419
412
kiocb_clone (& aio_req -> iocb , iocb , real .file );
420
413
aio_req -> iocb .ki_flags = ifl ;
421
414
aio_req -> iocb .ki_complete = ovl_aio_rw_complete ;
422
415
refcount_set (& aio_req -> ref , 2 );
416
+ kiocb_start_write (& aio_req -> iocb );
423
417
ret = vfs_iocb_iter_write (real .file , & aio_req -> iocb , iter );
424
418
ovl_aio_put (aio_req );
425
419
if (ret != - EIOCBQUEUED )
You can’t perform that action at this time.
0 commit comments