mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 19:21:31 -04:00
get rid of pipe->inode
it's used only as a flag to distinguish normal pipes/FIFOs from the internal per-task one used by file-to-file splice. And pipe->files would work just as well for that purpose... Signed-off-by: Al Viro <[email protected]>
This commit is contained in:
parent
ebec73f475
commit
6447a3cf19
4 changed files with 5 additions and 8 deletions
|
|
@ -218,7 +218,7 @@ ssize_t splice_to_pipe(struct pipe_inode_info *pipe,
|
|||
page_nr++;
|
||||
ret += buf->len;
|
||||
|
||||
if (pipe->inode)
|
||||
if (pipe->files)
|
||||
do_wakeup = 1;
|
||||
|
||||
if (!--spd->nr_pages)
|
||||
|
|
@ -828,7 +828,7 @@ int splice_from_pipe_feed(struct pipe_inode_info *pipe, struct splice_desc *sd,
|
|||
ops->release(pipe, buf);
|
||||
pipe->curbuf = (pipe->curbuf + 1) & (pipe->buffers - 1);
|
||||
pipe->nrbufs--;
|
||||
if (pipe->inode)
|
||||
if (pipe->files)
|
||||
sd->need_wakeup = true;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue