ctree.c (67439dadb03ad9da45bfccb4cdb6ef6b1a7f8da9) ctree.c (3951e7f050ac6a38bbc859fc3cd6093890c31d1c)
1// SPDX-License-Identifier: GPL-2.0
2/*
3 * Copyright (C) 2007,2008 Oracle. All rights reserved.
4 */
5
6#include <linux/sched.h>
7#include <linux/slab.h>
8#include <linux/rbtree.h>

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

29static void del_ptr(struct btrfs_root *root, struct btrfs_path *path,
30 int level, int slot);
31
32static const struct btrfs_csums {
33 u16 size;
34 const char *name;
35} btrfs_csums[] = {
36 [BTRFS_CSUM_TYPE_CRC32] = { .size = 4, .name = "crc32c" },
1// SPDX-License-Identifier: GPL-2.0
2/*
3 * Copyright (C) 2007,2008 Oracle. All rights reserved.
4 */
5
6#include <linux/sched.h>
7#include <linux/slab.h>
8#include <linux/rbtree.h>

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

29static void del_ptr(struct btrfs_root *root, struct btrfs_path *path,
30 int level, int slot);
31
32static const struct btrfs_csums {
33 u16 size;
34 const char *name;
35} btrfs_csums[] = {
36 [BTRFS_CSUM_TYPE_CRC32] = { .size = 4, .name = "crc32c" },
37 [BTRFS_CSUM_TYPE_XXHASH] = { .size = 8, .name = "xxhash64" },
37};
38
39int btrfs_super_csum_size(const struct btrfs_super_block *s)
40{
41 u16 t = btrfs_super_csum_type(s);
42 /*
43 * csum type is validated at mount time
44 */

--- 5500 unchanged lines hidden ---
38};
39
40int btrfs_super_csum_size(const struct btrfs_super_block *s)
41{
42 u16 t = btrfs_super_csum_type(s);
43 /*
44 * csum type is validated at mount time
45 */

--- 5500 unchanged lines hidden ---