disk-io.c (4273eaff9b8d5e141113a5bdf9628c02acf3afe5) disk-io.c (3951e7f050ac6a38bbc859fc3cd6093890c31d1c)
1// SPDX-License-Identifier: GPL-2.0
2/*
3 * Copyright (C) 2007 Oracle. All rights reserved.
4 */
5
6#include <linux/fs.h>
7#include <linux/blkdev.h>
8#include <linux/radix-tree.h>

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

347 btrfs_tree_read_unlock_blocking(eb);
348 return ret;
349}
350
351static bool btrfs_supported_super_csum(u16 csum_type)
352{
353 switch (csum_type) {
354 case BTRFS_CSUM_TYPE_CRC32:
1// SPDX-License-Identifier: GPL-2.0
2/*
3 * Copyright (C) 2007 Oracle. All rights reserved.
4 */
5
6#include <linux/fs.h>
7#include <linux/blkdev.h>
8#include <linux/radix-tree.h>

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

347 btrfs_tree_read_unlock_blocking(eb);
348 return ret;
349}
350
351static bool btrfs_supported_super_csum(u16 csum_type)
352{
353 switch (csum_type) {
354 case BTRFS_CSUM_TYPE_CRC32:
355 case BTRFS_CSUM_TYPE_XXHASH:
355 return true;
356 default:
357 return false;
358 }
359}
360
361/*
362 * Return 0 if the superblock checksum type matches the checksum value of that

--- 4216 unchanged lines hidden ---
356 return true;
357 default:
358 return false;
359 }
360}
361
362/*
363 * Return 0 if the superblock checksum type matches the checksum value of that

--- 4216 unchanged lines hidden ---