mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-06 14:31:46 +00:00
[PATCH] constify pipe_buf_operations
- pipe/splice should use const pipe_buf_operations and file_operations - struct pipe_inode_info has an unused field "start" : get rid of it. Signed-off-by: Eric Dumazet <dada1@cosmosbay.com> Cc: Jens Axboe <jens.axboe@oracle.com> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
This commit is contained in:
parent
426d62e215
commit
d4c3cca941
3 changed files with 11 additions and 12 deletions
|
@ -12,7 +12,7 @@
|
|||
struct pipe_buffer {
|
||||
struct page *page;
|
||||
unsigned int offset, len;
|
||||
struct pipe_buf_operations *ops;
|
||||
const struct pipe_buf_operations *ops;
|
||||
unsigned int flags;
|
||||
};
|
||||
|
||||
|
@ -43,7 +43,6 @@ struct pipe_inode_info {
|
|||
unsigned int nrbufs, curbuf;
|
||||
struct pipe_buffer bufs[PIPE_BUFFERS];
|
||||
struct page *tmp_page;
|
||||
unsigned int start;
|
||||
unsigned int readers;
|
||||
unsigned int writers;
|
||||
unsigned int waiting_writers;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue