diff options
author | Christoph Hellwig <hch@lst.de> | 2020-05-20 17:58:16 +0200 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2020-05-20 18:14:10 +0200 |
commit | c928f642c29a5ffb02e16f2430b42b876dde69de (patch) | |
tree | c3ccd9480d24d86420f191d5ea51281c99ba2de0 /drivers/char | |
parent | fs: make the pipe_buf_operations ->confirm operation optional (diff) | |
download | linux-c928f642c29a5ffb02e16f2430b42b876dde69de.tar.xz linux-c928f642c29a5ffb02e16f2430b42b876dde69de.zip |
fs: rename pipe_buf ->steal to ->try_steal
And replace the arcane return value convention with a simple bool
where true means success and false means failure.
[AV: braino fix folded in]
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'drivers/char')
-rw-r--r-- | drivers/char/virtio_console.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/char/virtio_console.c b/drivers/char/virtio_console.c index 3cbaec925606..00c5e3acee46 100644 --- a/drivers/char/virtio_console.c +++ b/drivers/char/virtio_console.c @@ -871,7 +871,7 @@ static int pipe_to_sg(struct pipe_inode_info *pipe, struct pipe_buffer *buf, return 0; /* Try lock this page */ - if (pipe_buf_steal(pipe, buf) == 0) { + if (pipe_buf_try_steal(pipe, buf)) { /* Get reference and unlock page for moving */ get_page(buf->page); unlock_page(buf->page); |