summaryrefslogtreecommitdiff
path: root/fs/iomap.c
diff options
context:
space:
mode:
authorAndreas Gruenbacher <agruenba@redhat.com>2019-04-30 18:45:33 +0300
committerDarrick J. Wong <darrick.wong@oracle.com>2019-05-01 17:47:37 +0300
commit26ddb1f4fd884258eeb8a8d7f2d40b163f00fedd (patch)
treefe02031f84a64797de534ef0dbe957e6b9b3bc4b /fs/iomap.c
parentdbc582b6fb6ad6461085adfaae0106ae78721107 (diff)
downloadlinux-26ddb1f4fd884258eeb8a8d7f2d40b163f00fedd.tar.xz
fs: Turn __generic_write_end into a void function
The VFS-internal __generic_write_end helper always returns the value of its @copied argument. This can be confusing, and it isn't very useful anyway, so turn __generic_write_end into a function returning void instead. Signed-off-by: Andreas Gruenbacher <agruenba@redhat.com> Reviewed-by: Christoph Hellwig <hch@lst.de> Reviewed-by: Darrick J. Wong <darrick.wong@oracle.com> Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Diffstat (limited to 'fs/iomap.c')
-rw-r--r--fs/iomap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/iomap.c b/fs/iomap.c
index 9f159c39fbdc..4380d2c412f4 100644
--- a/fs/iomap.c
+++ b/fs/iomap.c
@@ -769,7 +769,7 @@ iomap_write_end(struct inode *inode, loff_t pos, unsigned len,
ret = __iomap_write_end(inode, pos, len, copied, page, iomap);
}
- ret = __generic_write_end(inode, pos, ret, page);
+ __generic_write_end(inode, pos, ret, page);
if (iomap->page_done)
iomap->page_done(inode, pos, copied, page, iomap);