mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-15 16:24:13 +08:00
ocfs2_file_aio_write(): switch to generic_perform_write()
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
This commit is contained in:
parent
aec605f429
commit
58bfab395b
@ -2381,9 +2381,12 @@ relock:
|
||||
goto out_dio;
|
||||
}
|
||||
} else {
|
||||
struct iov_iter from;
|
||||
iov_iter_init(&from, iov, nr_segs, count, 0);
|
||||
current->backing_dev_info = file->f_mapping->backing_dev_info;
|
||||
written = generic_file_buffered_write(iocb, iov, nr_segs, *ppos,
|
||||
count, 0);
|
||||
written = generic_perform_write(file, &from, *ppos);
|
||||
if (likely(written >= 0))
|
||||
iocb->ki_pos = *ppos + written;
|
||||
current->backing_dev_info = NULL;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user