disk-io.h (dfe8aec4520bff8e69c8704421ef7f47c65ca778) | disk-io.h (29cbcf401793f4e2c871c846edc2191731df2c41) |
---|---|
1/* SPDX-License-Identifier: GPL-2.0 */ 2/* 3 * Copyright (C) 2007 Oracle. All rights reserved. 4 */ 5 6#ifndef BTRFS_DISK_IO_H 7#define BTRFS_DISK_IO_H 8 --- 89 unchanged lines hidden (view full) --- 98{ 99 if (!root) 100 return NULL; 101 if (refcount_inc_not_zero(&root->refs)) 102 return root; 103 return NULL; 104} 105 | 1/* SPDX-License-Identifier: GPL-2.0 */ 2/* 3 * Copyright (C) 2007 Oracle. All rights reserved. 4 */ 5 6#ifndef BTRFS_DISK_IO_H 7#define BTRFS_DISK_IO_H 8 --- 89 unchanged lines hidden (view full) --- 98{ 99 if (!root) 100 return NULL; 101 if (refcount_inc_not_zero(&root->refs)) 102 return root; 103 return NULL; 104} 105 |
106static inline struct btrfs_root *btrfs_extent_root(struct btrfs_fs_info *fs_info, 107 u64 bytenr) 108{ 109 return fs_info->_extent_root; 110} 111 |
|
106static inline struct btrfs_root *btrfs_block_group_root(struct btrfs_fs_info *fs_info) 107{ | 112static inline struct btrfs_root *btrfs_block_group_root(struct btrfs_fs_info *fs_info) 113{ |
108 return fs_info->extent_root; | 114 return btrfs_extent_root(fs_info, 0); |
109} 110 111void btrfs_put_root(struct btrfs_root *root); 112void btrfs_mark_buffer_dirty(struct extent_buffer *buf); 113int btrfs_buffer_uptodate(struct extent_buffer *buf, u64 parent_transid, 114 int atomic); 115int btrfs_read_buffer(struct extent_buffer *buf, u64 parent_transid, int level, 116 struct btrfs_key *first_key); --- 39 unchanged lines hidden --- | 115} 116 117void btrfs_put_root(struct btrfs_root *root); 118void btrfs_mark_buffer_dirty(struct extent_buffer *buf); 119int btrfs_buffer_uptodate(struct extent_buffer *buf, u64 parent_transid, 120 int atomic); 121int btrfs_read_buffer(struct extent_buffer *buf, u64 parent_transid, int level, 122 struct btrfs_key *first_key); --- 39 unchanged lines hidden --- |