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 12:14:10 -0400 |
commit | c928f642c29a5ffb02e16f2430b42b876dde69de (patch) | |
tree | c3ccd9480d24d86420f191d5ea51281c99ba2de0 /fs/fuse/dev.c | |
parent | b8d9e7f2411b0744df2ec33e80d7698180fef21a (diff) | |
download | linux-c928f642c29a5ffb02e16f2430b42b876dde69de.tar.bz2 |
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 'fs/fuse/dev.c')
-rw-r--r-- | fs/fuse/dev.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/fuse/dev.c b/fs/fuse/dev.c index 97eec7522bf2..7a2b2de87b1f 100644 --- a/fs/fuse/dev.c +++ b/fs/fuse/dev.c @@ -805,7 +805,7 @@ static int fuse_try_move_page(struct fuse_copy_state *cs, struct page **pagep) if (cs->len != PAGE_SIZE) goto out_fallback; - if (pipe_buf_steal(cs->pipe, buf) != 0) + if (!pipe_buf_try_steal(cs->pipe, buf)) goto out_fallback; newpage = buf->page; |