ordered-data.c (a292241cccb7e20e8b997a9a44177e7c98141859) ordered-data.c (351fd3532159441e810d458a5b681090ff8449fd)
1/*
2 * Copyright (C) 2007 Oracle. All rights reserved.
3 *
4 * This program is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU General Public
6 * License v2 as published by the Free Software Foundation.
7 *
8 * This program is distributed in the hope that it will be useful,

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

62 return NULL;
63}
64
65static void ordered_data_tree_panic(struct inode *inode, int errno,
66 u64 offset)
67{
68 struct btrfs_fs_info *fs_info = btrfs_sb(inode->i_sb);
69 btrfs_panic(fs_info, errno, "Inconsistency in ordered tree at offset "
1/*
2 * Copyright (C) 2007 Oracle. All rights reserved.
3 *
4 * This program is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU General Public
6 * License v2 as published by the Free Software Foundation.
7 *
8 * This program is distributed in the hope that it will be useful,

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

62 return NULL;
63}
64
65static void ordered_data_tree_panic(struct inode *inode, int errno,
66 u64 offset)
67{
68 struct btrfs_fs_info *fs_info = btrfs_sb(inode->i_sb);
69 btrfs_panic(fs_info, errno, "Inconsistency in ordered tree at offset "
70 "%llu\n", offset);
70 "%llu", offset);
71}
72
73/*
74 * look for a given offset in the tree, and if it can't be found return the
75 * first lesser offset
76 */
77static struct rb_node *__tree_search(struct rb_root *root, u64 file_offset,
78 struct rb_node **prev_ret)

--- 1086 unchanged lines hidden ---
71}
72
73/*
74 * look for a given offset in the tree, and if it can't be found return the
75 * first lesser offset
76 */
77static struct rb_node *__tree_search(struct rb_root *root, u64 file_offset,
78 struct rb_node **prev_ret)

--- 1086 unchanged lines hidden ---