Skip to content

Commit 593bd5e

Browse files
committed
Merge tag 'iomap-5.8-merge-1' of git://git.kernel.org/pub/scm/fs/xfs/xfs-linux
Pull iomap fix from Darrick Wong: "A single iomap bug fix for a variable type mistake on 32-bit architectures, fixing an integer overflow problem in the unshare actor" * tag 'iomap-5.8-merge-1' of git://git.kernel.org/pub/scm/fs/xfs/xfs-linux: iomap: Fix unsharing of an extent >2GB on a 32-bit machine
2 parents c555722 + d4ff3b2 commit 593bd5e

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
@@ -870,7 +870,7 @@ iomap_unshare_actor(struct inode *inode, loff_t pos, loff_t length, void *data,
870870
struct iomap *iomap, struct iomap *srcmap)
871871
{
872872
long status = 0;
873-
ssize_t written = 0;
873+
loff_t written = 0;
874874

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

0 commit comments

Comments
 (0)