Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Merge tag 'iomap-6.5-fixes-1' of git://git.kernel.org/pub/scm/fs/xfs/xfs-linux

Pull iomap fix from Darrick Wong:
"Fix partial write regression.

It turns out that fstests doesn't have any test coverage for short
writes, but LTP does. Fortunately, this was caught right after -rc1
was tagged.

Summary:

- Fix a bug wherein a failed write could clobber short write status"

* tag 'iomap-6.5-fixes-1' of git://git.kernel.org/pub/scm/fs/xfs/xfs-linux:
iomap: micro optimize the ki_pos assignment in iomap_file_buffered_write
iomap: fix a regression for partial write errors

+2 -2
+2 -2
fs/iomap/buffered-io.c
··· 872 872 while ((ret = iomap_iter(&iter, ops)) > 0) 873 873 iter.processed = iomap_write_iter(&iter, i); 874 874 875 - if (unlikely(ret < 0)) 875 + if (unlikely(iter.pos == iocb->ki_pos)) 876 876 return ret; 877 877 ret = iter.pos - iocb->ki_pos; 878 - iocb->ki_pos += ret; 878 + iocb->ki_pos = iter.pos; 879 879 return ret; 880 880 } 881 881 EXPORT_SYMBOL_GPL(iomap_file_buffered_write);