Message ID | 20220321144438.201685-1-yebin10@huawei.com |
---|---|
State | Awaiting Upstream |
Headers | show |
Series | [-next,v2] ext4: Fix symlink file size not match to file content | expand |
On Mon, 21 Mar 2022 22:44:38 +0800, Ye Bin wrote: > We got issue as follows: > [home]# fsck.ext4 -fn ram0yb > e2fsck 1.45.6 (20-Mar-2020) > Pass 1: Checking inodes, blocks, and sizes > Pass 2: Checking directory structure > Symlink /p3/d14/d1a/l3d (inode #3494) is invalid. > Clear? no > Entry 'l3d' in /p3/d14/d1a (3383) has an incorrect filetype (was 7, should be 0). > Fix? no > > [...] Applied, thanks! [1/1] ext4: Fix symlink file size not match to file content commit: 0f0b8dbeb99a74259062597fd669208e3500792c Best regards,
diff --git a/fs/ext4/page-io.c b/fs/ext4/page-io.c index 495ce59fb4ad..14695e2b5042 100644 --- a/fs/ext4/page-io.c +++ b/fs/ext4/page-io.c @@ -134,8 +134,10 @@ static void ext4_finish_bio(struct bio *bio) continue; } clear_buffer_async_write(bh); - if (bio->bi_status) + if (bio->bi_status) { + set_buffer_write_io_error(bh); buffer_io_error(bh); + } } while ((bh = bh->b_this_page) != head); spin_unlock_irqrestore(&head->b_uptodate_lock, flags); if (!under_io) {