Merge branch 'work.set_fs' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs
Pull more set_fs removal from Al Viro: "Christoph's 'use kernel_read and friends rather than open-coding set_fs()' series" * 'work.set_fs' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs: fs: unexport vfs_readv and vfs_writev fs: unexport vfs_read and vfs_write fs: unexport __vfs_read/__vfs_write lustre: switch to kernel_write gadget/f_mass_storage: stop messing with the address limit mconsole: switch to kernel_read btrfs: switch write_buf to kernel_write net/9p: switch p9_fd_read to kernel_write mm/nommu: switch do_mmap_private to kernel_read serial2002: switch serial2002_tty_write to kernel_{read/write} fs: make the buf argument to __kernel_write a void pointer fs: fix kernel_write prototype fs: fix kernel_read prototype fs: move kernel_read to fs/read_write.c fs: move kernel_write to fs/read_write.c autofs4: switch autofs4_write to __kernel_write ashmem: switch to ->read_iter
This commit is contained in:
@@ -1356,7 +1356,7 @@ static ssize_t read_file(struct nandsim *ns, struct file *file, void *buf, size_
|
||||
if (err)
|
||||
return err;
|
||||
noreclaim_flag = memalloc_noreclaim_save();
|
||||
tx = kernel_read(file, pos, buf, count);
|
||||
tx = kernel_read(file, buf, count, &pos);
|
||||
memalloc_noreclaim_restore(noreclaim_flag);
|
||||
put_pages(ns);
|
||||
return tx;
|
||||
@@ -1372,7 +1372,7 @@ static ssize_t write_file(struct nandsim *ns, struct file *file, void *buf, size
|
||||
if (err)
|
||||
return err;
|
||||
noreclaim_flag = memalloc_noreclaim_save();
|
||||
tx = kernel_write(file, buf, count, pos);
|
||||
tx = kernel_write(file, buf, count, &pos);
|
||||
memalloc_noreclaim_restore(noreclaim_flag);
|
||||
put_pages(ns);
|
||||
return tx;
|
||||
|
Reference in New Issue
Block a user