@@ -232,9 +232,8 @@ static void ovl_file_accessed(struct file *file)
232
232
touch_atime (& file -> f_path );
233
233
}
234
234
235
- static rwf_t ovl_iocb_to_rwf (struct kiocb * iocb )
235
+ static rwf_t ovl_iocb_to_rwf (int ifl )
236
236
{
237
- int ifl = iocb -> ki_flags ;
238
237
rwf_t flags = 0 ;
239
238
240
239
if (ifl & IOCB_NOWAIT )
@@ -296,7 +295,7 @@ static ssize_t ovl_read_iter(struct kiocb *iocb, struct iov_iter *iter)
296
295
old_cred = ovl_override_creds (file_inode (file )-> i_sb );
297
296
if (is_sync_kiocb (iocb )) {
298
297
ret = vfs_iter_read (real .file , iter , & iocb -> ki_pos ,
299
- ovl_iocb_to_rwf (iocb ));
298
+ ovl_iocb_to_rwf (iocb -> ki_flags ));
300
299
} else {
301
300
struct ovl_aio_req * aio_req ;
302
301
@@ -349,7 +348,7 @@ static ssize_t ovl_write_iter(struct kiocb *iocb, struct iov_iter *iter)
349
348
if (is_sync_kiocb (iocb )) {
350
349
file_start_write (real .file );
351
350
ret = vfs_iter_write (real .file , iter , & iocb -> ki_pos ,
352
- ovl_iocb_to_rwf (iocb ));
351
+ ovl_iocb_to_rwf (iocb -> ki_flags ));
353
352
file_end_write (real .file );
354
353
/* Update size */
355
354
ovl_copyattr (ovl_inode_real (inode ), inode );
0 commit comments