fslog.c (a98a62e456e25048e8d64ec452a1c713169d3517) | fslog.c (926034353d3c67db1ffeab47dcb7f6bdac02a263) |
---|---|
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/blkdev.h> --- 5043 unchanged lines hidden (view full) --- 5052 * If the mapping isn't already the table or the mapping 5053 * corresponds to a hole the mapping, we need to make sure 5054 * there is no partial page already memory. 5055 */ 5056 if (is_mapped && lcn != SPARSE_LCN && clen >= t16) 5057 goto add_allocated_vcns; 5058 5059 vcn = le64_to_cpu(lrh->target_vcn); | 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/blkdev.h> --- 5043 unchanged lines hidden (view full) --- 5052 * If the mapping isn't already the table or the mapping 5053 * corresponds to a hole the mapping, we need to make sure 5054 * there is no partial page already memory. 5055 */ 5056 if (is_mapped && lcn != SPARSE_LCN && clen >= t16) 5057 goto add_allocated_vcns; 5058 5059 vcn = le64_to_cpu(lrh->target_vcn); |
5060 vcn &= ~(log->clst_per_page - 1); | 5060 vcn &= ~(u64)(log->clst_per_page - 1); |
5061 5062add_allocated_vcns: 5063 for (i = 0, vcn = le64_to_cpu(lrh->target_vcn), 5064 size = (vcn + 1) << sbi->cluster_bits; 5065 i < t16; i++, vcn += 1, size += sbi->cluster_size) { 5066 attr = oa->attr; 5067 if (!attr->non_res) { 5068 if (size > le32_to_cpu(attr->res.data_size)) --- 147 unchanged lines hidden --- | 5061 5062add_allocated_vcns: 5063 for (i = 0, vcn = le64_to_cpu(lrh->target_vcn), 5064 size = (vcn + 1) << sbi->cluster_bits; 5065 i < t16; i++, vcn += 1, size += sbi->cluster_size) { 5066 attr = oa->attr; 5067 if (!attr->non_res) { 5068 if (size > le32_to_cpu(attr->res.data_size)) --- 147 unchanged lines hidden --- |