inode.c (0addfb1c2281b5ca2ac02e7dbf6f5a7dbfbc71b9) inode.c (c20bc9c6d8eb13ab1c3f8e5f8ad91466ae717d7f)
1// SPDX-License-Identifier: GPL-2.0
2/*
3 *
4 * Copyright (C) 2019-2021 Paragon Software GmbH, All rights reserved.
5 *
6 */
7
8#include <linux/buffer_head.h>

--- 634 unchanged lines hidden (view full) ---

643 bytes = block_size;
644
645 if (page) {
646 u32 voff = valid - vbo;
647
648 bh->b_size = block_size;
649 off = vbo & (PAGE_SIZE - 1);
650 set_bh_page(bh, page, off);
1// SPDX-License-Identifier: GPL-2.0
2/*
3 *
4 * Copyright (C) 2019-2021 Paragon Software GmbH, All rights reserved.
5 *
6 */
7
8#include <linux/buffer_head.h>

--- 634 unchanged lines hidden (view full) ---

643 bytes = block_size;
644
645 if (page) {
646 u32 voff = valid - vbo;
647
648 bh->b_size = block_size;
649 off = vbo & (PAGE_SIZE - 1);
650 set_bh_page(bh, page, off);
651
651 err = bh_read(bh, 0);
652 if (err < 0)
653 goto out;
654 zero_user_segment(page, off + voff, off + block_size);
655 }
656 }
657
658 if (bh->b_size > bytes)

--- 1434 unchanged lines hidden ---
652 err = bh_read(bh, 0);
653 if (err < 0)
654 goto out;
655 zero_user_segment(page, off + voff, off + block_size);
656 }
657 }
658
659 if (bh->b_size > bytes)

--- 1434 unchanged lines hidden ---