summaryrefslogtreecommitdiff
path: root/fs/iomap/buffered-io.c
diff options
context:
space:
mode:
authorMatthew Wilcox (Oracle) <willy@infradead.org>2020-06-08 20:58:29 -0700
committerDarrick J. Wong <darrick.wong@oracle.com>2020-06-08 20:58:29 -0700
commitd4ff3b2ef901cd451fb8a9ff4623d060a79502cd (patch)
treee9b82dcb519940e65e0801e316754e6b59f01ab6 /fs/iomap/buffered-io.c
parent0e698dfa282211e414076f9dc7e83c1c288314fd (diff)
downloadlwn-d4ff3b2ef901cd451fb8a9ff4623d060a79502cd.tar.gz
lwn-d4ff3b2ef901cd451fb8a9ff4623d060a79502cd.zip
iomap: Fix unsharing of an extent >2GB on a 32-bit machine
Widen the type used for counting the number of bytes unshared. Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org> 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/buffered-io.c')
-rw-r--r--fs/iomap/buffered-io.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/iomap/buffered-io.c b/fs/iomap/buffered-io.c
index 89e21961d1ad..17ed7bb92c6c 100644
--- a/fs/iomap/buffered-io.c
+++ b/fs/iomap/buffered-io.c
@@ -909,7 +909,7 @@ iomap_unshare_actor(struct inode *inode, loff_t pos, loff_t length, void *data,
struct iomap *iomap, struct iomap *srcmap)
{
long status = 0;
- ssize_t written = 0;
+ loff_t written = 0;
/* don't bother with blocks that are not shared to start with */
if (!(iomap->flags & IOMAP_F_SHARED))