Skip to content

Commit d4ff3b2

Browse files
Matthew Wilcox (Oracle)djwong
authored andcommitted
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) <[email protected]> Reviewed-by: Christoph Hellwig <[email protected]> Reviewed-by: Darrick J. Wong <[email protected]> Signed-off-by: Darrick J. Wong <[email protected]>
1 parent 0e698df commit d4ff3b2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fs/iomap/buffered-io.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -909,7 +909,7 @@ iomap_unshare_actor(struct inode *inode, loff_t pos, loff_t length, void *data,
909909
struct iomap *iomap, struct iomap *srcmap)
910910
{
911911
long status = 0;
912-
ssize_t written = 0;
912+
loff_t written = 0;
913913

914914
/* don't bother with blocks that are not shared to start with */
915915
if (!(iomap->flags & IOMAP_F_SHARED))

0 commit comments

Comments
 (0)