Skip to content

Commit 8abc712

Browse files
riteshharjanijankara
authored andcommitted
ext2: Fix ki_pos update for DIO buffered-io fallback case
Commit "filemap: update ki_pos in generic_perform_write", made updating of ki_pos into common code in generic_perform_write() function. This also causes generic/091 to fail. This happened due to an in-flight collision with: fb5de43 ("ext2: Move direct-io to use iomap"). I have chosen fixes tag based on which commit got landed later to upstream kernel. Fixes: 182c25e ("filemap: update ki_pos in generic_perform_write") Cc: [email protected] Reviewed-by: Christoph Hellwig <[email protected]> Signed-off-by: Ritesh Harjani (IBM) <[email protected]> Signed-off-by: Jan Kara <[email protected]> Message-Id: <d595bee9f2475ed0e8a2e7fb94f7afc2c6ffc36a.1700643443.git.ritesh.list@gmail.com>
1 parent c2d5304 commit 8abc712

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

fs/ext2/file.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -258,7 +258,6 @@ static ssize_t ext2_dio_write_iter(struct kiocb *iocb, struct iov_iter *from)
258258
goto out_unlock;
259259
}
260260

261-
iocb->ki_pos += status;
262261
ret += status;
263262
endbyte = pos + status - 1;
264263
ret2 = filemap_write_and_wait_range(inode->i_mapping, pos,

0 commit comments

Comments
 (0)