You've already forked linux-apfs
mirror of
https://github.com/linux-apfs/linux-apfs.git
synced 2026-05-01 15:00:59 -07:00
Merge branch 'for-linus' of git://git.kernel.dk/linux-2.6-block
* 'for-linus' of git://git.kernel.dk/linux-2.6-block: writeback: simplify the write back thread queue writeback: split writeback_inodes_wb writeback: remove writeback_inodes_wbc fs-writeback: fix kernel-doc warnings splice: check f_mode for seekable file splice: direct_splice_actor() should not use pos in sd
This commit is contained in:
@@ -680,7 +680,6 @@ int afs_writeback_all(struct afs_vnode *vnode)
|
||||
{
|
||||
struct address_space *mapping = vnode->vfs_inode.i_mapping;
|
||||
struct writeback_control wbc = {
|
||||
.bdi = mapping->backing_dev_info,
|
||||
.sync_mode = WB_SYNC_ALL,
|
||||
.nr_to_write = LONG_MAX,
|
||||
.range_cyclic = 1,
|
||||
|
||||
@@ -2594,7 +2594,6 @@ int extent_write_full_page(struct extent_io_tree *tree, struct page *page,
|
||||
.sync_io = wbc->sync_mode == WB_SYNC_ALL,
|
||||
};
|
||||
struct writeback_control wbc_writepages = {
|
||||
.bdi = wbc->bdi,
|
||||
.sync_mode = wbc->sync_mode,
|
||||
.older_than_this = NULL,
|
||||
.nr_to_write = 64,
|
||||
@@ -2628,7 +2627,6 @@ int extent_write_locked_range(struct extent_io_tree *tree, struct inode *inode,
|
||||
.sync_io = mode == WB_SYNC_ALL,
|
||||
};
|
||||
struct writeback_control wbc_writepages = {
|
||||
.bdi = inode->i_mapping->backing_dev_info,
|
||||
.sync_mode = mode,
|
||||
.older_than_this = NULL,
|
||||
.nr_to_write = nr_pages * 2,
|
||||
|
||||
+112
-225
File diff suppressed because it is too large
Load Diff
+4
-5
@@ -1282,7 +1282,8 @@ static int direct_splice_actor(struct pipe_inode_info *pipe,
|
||||
{
|
||||
struct file *file = sd->u.file;
|
||||
|
||||
return do_splice_from(pipe, file, &sd->pos, sd->total_len, sd->flags);
|
||||
return do_splice_from(pipe, file, &file->f_pos, sd->total_len,
|
||||
sd->flags);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -1371,8 +1372,7 @@ static long do_splice(struct file *in, loff_t __user *off_in,
|
||||
if (off_in)
|
||||
return -ESPIPE;
|
||||
if (off_out) {
|
||||
if (!out->f_op || !out->f_op->llseek ||
|
||||
out->f_op->llseek == no_llseek)
|
||||
if (!(out->f_mode & FMODE_PWRITE))
|
||||
return -EINVAL;
|
||||
if (copy_from_user(&offset, off_out, sizeof(loff_t)))
|
||||
return -EFAULT;
|
||||
@@ -1392,8 +1392,7 @@ static long do_splice(struct file *in, loff_t __user *off_in,
|
||||
if (off_out)
|
||||
return -ESPIPE;
|
||||
if (off_in) {
|
||||
if (!in->f_op || !in->f_op->llseek ||
|
||||
in->f_op->llseek == no_llseek)
|
||||
if (!(in->f_mode & FMODE_PREAD))
|
||||
return -EINVAL;
|
||||
if (copy_from_user(&offset, off_in, sizeof(loff_t)))
|
||||
return -EFAULT;
|
||||
|
||||
Reference in New Issue
Block a user