]> Git Repo - linux.git/commitdiff
iomap: Fix unsharing of an extent >2GB on a 32-bit machine
authorMatthew Wilcox (Oracle) <[email protected]>
Tue, 9 Jun 2020 03:58:29 +0000 (20:58 -0700)
committerDarrick J. Wong <[email protected]>
Tue, 9 Jun 2020 03:58:29 +0000 (20:58 -0700)
Widen the type used for counting the number of bytes unshared.

Signed-off-by: Matthew Wilcox (Oracle) <[email protected]>
Reviewed-by: Christoph Hellwig <[email protected]>
Reviewed-by: Darrick J. Wong <[email protected]>
Signed-off-by: Darrick J. Wong <[email protected]>
fs/iomap/buffered-io.c

index 89e21961d1adf9f7c6d4fe730e6a822b74c5b206..17ed7bb92c6c747ab40e9fe7288688699187bab4 100644 (file)
@@ -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))
This page took 0.057675 seconds and 4 git commands to generate.