History

btrfs: Make btrfs_ino take a struct btrfs_inode

Currently btrfs_ino takes a struct inode and this causes a lot of internal btrfs functions which consume this ino to take a VFS inode, rather than btrfs' own struct btrfs_inode. In order to fix this "leak" of VFS structs into the internals of btrfs first it's necessary to eliminate all uses of struct inode for the purpose of inode. This patch does that by using BTRFS_I to convert an inode to btrfs_inode. With this problem eliminated subsequent patches will start eliminating the passing of struct inode altogether, eventually resulting in a lot cleaner code.

Nikolay Borisov committed 9 years ago

Commit 4a0cc7c1 parent 823bb2018 files · +151 −151Browse files

Unified · Split

18 files
  1. fs/btrfs/btrfs_inode.h +5 −5
  2. fs/btrfs/compression.c +1 −1
  3. fs/btrfs/delayed-inode.c +7 −7
  4. fs/btrfs/dir-item.c +1 −1
  5. fs/btrfs/export.c +5 −5
  6. fs/btrfs/extent-tree.c +5 −5
  7. fs/btrfs/extent_io.c +5 −5
  8. fs/btrfs/file-item.c +2 −2
  9. fs/btrfs/file.c +6 −6
  10. fs/btrfs/free-space-cache.c +1 −1
  11. fs/btrfs/inode.c +61 −61
  12. fs/btrfs/ioctl.c +13 −13
  13. fs/btrfs/props.c +2 −2
  14. fs/btrfs/relocation.c +8 −8
  15. fs/btrfs/transaction.c +2 −2
  16. fs/btrfs/tree-log.c +21 −21
  17. fs/btrfs/xattr.c +5 −5
  18. include/trace/events/btrfs.h +1 −1
fs/btrfs/btrfs_inode.h+5−5
@@ -224,16 +224,16 @@ static inline void btrfs_insert_inode_hash(struct inode *inode) · 223 unmodified lines
224224 __insert_inode_hash(inode, h);
225225 }
226226
227−static inline u64 btrfs_ino(struct inode *inode)
227+static inline u64 btrfs_ino(struct btrfs_inode *inode)
228228 {
229− u64 ino = BTRFS_I(inode)->location.objectid;
229+ u64 ino = inode->location.objectid;
230230
231231 /*
232232 * !ino: btree_inode
233233 * type == BTRFS_ROOT_ITEM_KEY: subvol dir
234234 */
235− if (!ino || BTRFS_I(inode)->location.type == BTRFS_ROOT_ITEM_KEY)
236− ino = inode->i_ino;
235+ if (!ino || inode->location.type == BTRFS_ROOT_ITEM_KEY)
236+ ino = inode->vfs_inode.i_ino;
237237 return ino;
238238 }
239239
@@ -248,7 +248,7 @@ static inline bool btrfs_is_free_space_inode(struct inode *inode) · 8 unmodified lines
248248 struct btrfs_root *root = BTRFS_I(inode)->root;
249249
250250 if (root == root->fs_info->tree_root &&
251− btrfs_ino(inode) != BTRFS_BTREE_INODE_OBJECTID)
251+ btrfs_ino(BTRFS_I(inode)) != BTRFS_BTREE_INODE_OBJECTID)
252252 return true;
253253 if (BTRFS_I(inode)->location.objectid == BTRFS_FREE_INO_OBJECTID)
254254 return true;
fs/btrfs/compression.c+1−1
@@ -126,7 +126,7 @@ static int check_compressed_csum(struct inode *inode, · 125 unmodified lines
126126 if (csum != *cb_sum) {
127127 btrfs_info(BTRFS_I(inode)->root->fs_info,
128128 "csum failed ino %llu extent %llu csum %u wanted %u mirror %d",
129− btrfs_ino(inode), disk_start, csum, *cb_sum,
129+ btrfs_ino(BTRFS_I(inode)), disk_start, csum, *cb_sum,
130130 cb->mirror_num);
131131 ret = -EIO;
132132 goto fail;
fs/btrfs/delayed-inode.c+7−7
@@ -76,7 +76,7 @@ static struct btrfs_delayed_node *btrfs_get_delayed_node(struct inode *inode) · 75 unmodified lines
7676 {
7777 struct btrfs_inode *btrfs_inode = BTRFS_I(inode);
7878 struct btrfs_root *root = btrfs_inode->root;
79− u64 ino = btrfs_ino(inode);
79+ u64 ino = btrfs_ino(btrfs_inode);
8080 struct btrfs_delayed_node *node;
8181
8282 node = READ_ONCE(btrfs_inode->delayed_node);
@@ -112,7 +112,7 @@ static struct btrfs_delayed_node *btrfs_get_or_create_delayed_node( · 29 unmodified lines
112112 struct btrfs_delayed_node *node;
113113 struct btrfs_inode *btrfs_inode = BTRFS_I(inode);
114114 struct btrfs_root *root = btrfs_inode->root;
115− u64 ino = btrfs_ino(inode);
115+ u64 ino = btrfs_ino(btrfs_inode);
116116 int ret;
117117
118118 again:
@@ -637,7 +637,7 @@ static int btrfs_delayed_inode_reserve_metadata( · 518 unmodified lines
637637 node->bytes_reserved = num_bytes;
638638 trace_btrfs_space_reservation(fs_info,
639639 "delayed_inode",
640− btrfs_ino(inode),
640+ btrfs_ino(BTRFS_I(inode)),
641641 num_bytes, 1);
642642 }
643643 return ret;
@@ -660,13 +660,13 @@ static int btrfs_delayed_inode_reserve_metadata( · 16 unmodified lines
660660 */
661661 if (!ret) {
662662 trace_btrfs_space_reservation(fs_info, "delayed_inode",
663− btrfs_ino(inode), num_bytes, 1);
663+ btrfs_ino(BTRFS_I(inode)), num_bytes, 1);
664664 node->bytes_reserved = num_bytes;
665665 }
666666
667667 if (release) {
668668 trace_btrfs_space_reservation(fs_info, "delalloc",
669− btrfs_ino(inode), num_bytes, 0);
669+ btrfs_ino(BTRFS_I(inode)), num_bytes, 0);
670670 btrfs_block_rsv_release(fs_info, src_rsv, num_bytes);
671671 }
672672
@@ -1453,7 +1453,7 @@ int btrfs_insert_delayed_dir_index(struct btrfs_trans_handle *trans, · 780 unmodified lines
14531453 goto release_node;
14541454 }
14551455
1456− delayed_item->key.objectid = btrfs_ino(dir);
1456+ delayed_item->key.objectid = btrfs_ino(BTRFS_I(dir));
14571457 delayed_item->key.type = BTRFS_DIR_INDEX_KEY;
14581458 delayed_item->key.offset = index;
14591459
@@ -1521,7 +1521,7 @@ int btrfs_delete_delayed_dir_index(struct btrfs_trans_handle *trans, · 61 unmodified lines
15211521 if (IS_ERR(node))
15221522 return PTR_ERR(node);
15231523
1524− item_key.objectid = btrfs_ino(dir);
1524+ item_key.objectid = btrfs_ino(BTRFS_I(dir));
15251525 item_key.type = BTRFS_DIR_INDEX_KEY;
15261526 item_key.offset = index;
15271527
fs/btrfs/dir-item.c+1−1
@@ -133,7 +133,7 @@ int btrfs_insert_dir_item(struct btrfs_trans_handle *trans, struct btrfs_root · 132 unmodified lines
133133 struct btrfs_disk_key disk_key;
134134 u32 data_size;
135135
136− key.objectid = btrfs_ino(dir);
136+ key.objectid = btrfs_ino(BTRFS_I(dir));
137137 key.type = BTRFS_DIR_ITEM_KEY;
138138 key.offset = btrfs_name_hash(name, name_len);
139139
fs/btrfs/export.c+5−5
@@ -30,7 +30,7 @@ static int btrfs_encode_fh(struct inode *inode, u32 *fh, int *max_len, · 29 unmodified lines
3030 len = BTRFS_FID_SIZE_NON_CONNECTABLE;
3131 type = FILEID_BTRFS_WITHOUT_PARENT;
3232
33− fid->objectid = btrfs_ino(inode);
33+ fid->objectid = btrfs_ino(BTRFS_I(inode));
3434 fid->root_objectid = BTRFS_I(inode)->root->objectid;
3535 fid->gen = inode->i_generation;
3636
@@ -166,13 +166,13 @@ static struct dentry *btrfs_get_parent(struct dentry *child) · 129 unmodified lines
166166 if (!path)
167167 return ERR_PTR(-ENOMEM);
168168
169− if (btrfs_ino(dir) == BTRFS_FIRST_FREE_OBJECTID) {
169+ if (btrfs_ino(BTRFS_I(dir)) == BTRFS_FIRST_FREE_OBJECTID) {
170170 key.objectid = root->root_key.objectid;
171171 key.type = BTRFS_ROOT_BACKREF_KEY;
172172 key.offset = (u64)-1;
173173 root = fs_info->tree_root;
174174 } else {
175− key.objectid = btrfs_ino(dir);
175+ key.objectid = btrfs_ino(BTRFS_I(dir));
176176 key.type = BTRFS_INODE_REF_KEY;
177177 key.offset = (u64)-1;
178178 }
@@ -238,7 +238,7 @@ static int btrfs_get_name(struct dentry *parent, char *name, · 59 unmodified lines
238238 if (!S_ISDIR(dir->i_mode))
239239 return -EINVAL;
240240
241− ino = btrfs_ino(inode);
241+ ino = btrfs_ino(BTRFS_I(inode));
242242
243243 path = btrfs_alloc_path();
244244 if (!path)
@@ -252,7 +252,7 @@ static int btrfs_get_name(struct dentry *parent, char *name, · 7 unmodified lines
252252 root = fs_info->tree_root;
253253 } else {
254254 key.objectid = ino;
255− key.offset = btrfs_ino(dir);
255+ key.offset = btrfs_ino(BTRFS_I(dir));
256256 key.type = BTRFS_INODE_REF_KEY;
257257 }
258258
fs/btrfs/extent-tree.c+5−5
@@ -5756,7 +5756,7 @@ int btrfs_orphan_reserve_metadata(struct btrfs_trans_handle *trans, · 5755 unmodified lines
57565756 u64 num_bytes = btrfs_calc_trans_metadata_size(fs_info, 1);
57575757
57585758 trace_btrfs_space_reservation(fs_info, "orphan",
5759− btrfs_ino(inode), num_bytes, 1);
5759+ btrfs_ino(BTRFS_I(inode)), num_bytes, 1);
57605760 return btrfs_block_rsv_migrate(src_rsv, dst_rsv, num_bytes, 1);
57615761 }
57625762
@@ -5767,7 +5767,7 @@ void btrfs_orphan_release_metadata(struct inode *inode) · 4 unmodified lines
57675767 u64 num_bytes = btrfs_calc_trans_metadata_size(fs_info, 1);
57685768
57695769 trace_btrfs_space_reservation(fs_info, "orphan",
5770− btrfs_ino(inode), num_bytes, 0);
5770+ btrfs_ino(BTRFS_I(inode)), num_bytes, 0);
57715771 btrfs_block_rsv_release(fs_info, root->orphan_block_rsv, num_bytes);
57725772 }
57735773
@@ -6001,7 +6001,7 @@ int btrfs_delalloc_reserve_metadata(struct inode *inode, u64 num_bytes) · 227 unmodified lines
60016001
60026002 if (to_reserve)
60036003 trace_btrfs_space_reservation(fs_info, "delalloc",
6004− btrfs_ino(inode), to_reserve, 1);
6004+ btrfs_ino(BTRFS_I(inode)), to_reserve, 1);
60056005 if (release_extra)
60066006 btrfs_block_rsv_release(fs_info, block_rsv,
60076007 btrfs_calc_trans_metadata_size(fs_info, 1));
@@ -6064,7 +6064,7 @@ out_fail: · 56 unmodified lines
60646064 if (to_free) {
60656065 btrfs_block_rsv_release(fs_info, block_rsv, to_free);
60666066 trace_btrfs_space_reservation(fs_info, "delalloc",
6067− btrfs_ino(inode), to_free, 0);
6067+ btrfs_ino(BTRFS_I(inode)), to_free, 0);
60686068 }
60696069 if (delalloc_lock)
60706070 mutex_unlock(&BTRFS_I(inode)->delalloc_mutex);
@@ -6100,7 +6100,7 @@ void btrfs_delalloc_release_metadata(struct inode *inode, u64 num_bytes) · 29 unmodified lines
61006100 return;
61016101
61026102 trace_btrfs_space_reservation(fs_info, "delalloc",
6103− btrfs_ino(inode), to_free, 0);
6103+ btrfs_ino(BTRFS_I(inode)), to_free, 0);
61046104
61056105 btrfs_block_rsv_release(fs_info, &fs_info->delalloc_block_rsv, to_free);
61066106 }
fs/btrfs/extent_io.c+5−5
@@ -98,7 +98,7 @@ static inline void __btrfs_debug_check_extent_io_range(const char *caller, · 97 unmodified lines
9898 if (end >= PAGE_SIZE && (end % 2) == 0 && end != isize - 1) {
9999 btrfs_debug_rl(BTRFS_I(inode)->root->fs_info,
100100 "%s: ino %llu isize %llu odd range [%llu,%llu]",
101− caller, btrfs_ino(inode), isize, start, end);
101+ caller, btrfs_ino(BTRFS_I(inode)), isize, start, end);
102102 }
103103 }
104104 #else
@@ -2065,7 +2065,7 @@ int repair_io_failure(struct inode *inode, u64 start, u64 length, u64 logical, · 1960 unmodified lines
20652065
20662066 btrfs_info_rl_in_rcu(fs_info,
20672067 "read error corrected: ino %llu off %llu (dev %s sector %llu)",
2068− btrfs_ino(inode), start,
2068+ btrfs_ino(BTRFS_I(inode)), start,
20692069 rcu_str_deref(dev->name), sector);
20702070 btrfs_bio_counter_dec(fs_info);
20712071 bio_put(bio);
@@ -4413,7 +4413,7 @@ int extent_fiemap(struct inode *inode, struct fiemap_extent_info *fieinfo, · 2341 unmodified lines
44134413 * lookup the last file extent. We're not using i_size here
44144414 * because there might be preallocation past i_size
44154415 */
4416− ret = btrfs_lookup_file_extent(NULL, root, path, btrfs_ino(inode), -1,
4416+ ret = btrfs_lookup_file_extent(NULL, root, path, btrfs_ino(BTRFS_I(inode)), -1,
44174417 0);
44184418 if (ret < 0) {
44194419 btrfs_free_path(path);
@@ -4429,7 +4429,7 @@ int extent_fiemap(struct inode *inode, struct fiemap_extent_info *fieinfo, · 9 unmodified lines
44294429 found_type = found_key.type;
44304430
44314431 /* No extents, but there might be delalloc bits */
4432− if (found_key.objectid != btrfs_ino(inode) ||
4432+ if (found_key.objectid != btrfs_ino(BTRFS_I(inode)) ||
44334433 found_type != BTRFS_EXTENT_DATA_KEY) {
44344434 /* have to trust i_size as the end */
44354435 last = (u64)-1;
@@ -4539,7 +4539,7 @@ int extent_fiemap(struct inode *inode, struct fiemap_extent_info *fieinfo, · 103 unmodified lines
45394539 */
45404540 ret = btrfs_check_shared(trans, root->fs_info,
45414541 root->objectid,
4542− btrfs_ino(inode), bytenr);
4542+ btrfs_ino(BTRFS_I(inode)), bytenr);
45434543 if (trans)
45444544 btrfs_end_transaction(trans);
45454545 if (ret < 0)
fs/btrfs/file-item.c+2−2
@@ -255,7 +255,7 @@ static int __btrfs_lookup_bio_sums(struct inode *inode, struct bio *bio, · 254 unmodified lines
255255 } else {
256256 btrfs_info_rl(fs_info,
257257 "no csum found for inode %llu start %llu",
258− btrfs_ino(inode), offset);
258+ btrfs_ino(BTRFS_I(inode)), offset);
259259 }
260260 item = NULL;
261261 btrfs_release_path(path);
@@ -977,7 +977,7 @@ void btrfs_extent_item_to_extent_map(struct inode *inode, · 715 unmodified lines
977977 } else {
978978 btrfs_err(fs_info,
979979 "unknown file extent item type %d, inode %llu, offset %llu, root %llu",
980− type, btrfs_ino(inode), extent_start,
980+ type, btrfs_ino(BTRFS_I(inode)), extent_start,
981981 root->root_key.objectid);
982982 }
983983 }
fs/btrfs/file.c+6−6
@@ -168,7 +168,7 @@ int btrfs_add_inode_defrag(struct btrfs_trans_handle *trans, · 167 unmodified lines
168168 if (!defrag)
169169 return -ENOMEM;
170170
171− defrag->ino = btrfs_ino(inode);
171+ defrag->ino = btrfs_ino(BTRFS_I(inode));
172172 defrag->transid = transid;
173173 defrag->root = root->root_key.objectid;
174174
@@ -702,7 +702,7 @@ int __btrfs_drop_extents(struct btrfs_trans_handle *trans, · 527 unmodified lines
702702 struct btrfs_file_extent_item *fi;
703703 struct btrfs_key key;
704704 struct btrfs_key new_key;
705− u64 ino = btrfs_ino(inode);
705+ u64 ino = btrfs_ino(BTRFS_I(inode));
706706 u64 search_start = start;
707707 u64 disk_bytenr = 0;
708708 u64 num_bytes = 0;
@@ -1102,7 +1102,7 @@ int btrfs_mark_extent_written(struct btrfs_trans_handle *trans, · 393 unmodified lines
11021102 int del_slot = 0;
11031103 int recow;
11041104 int ret;
1105− u64 ino = btrfs_ino(inode);
1105+ u64 ino = btrfs_ino(BTRFS_I(inode));
11061106
11071107 path = btrfs_alloc_path();
11081108 if (!path)
@@ -2203,7 +2203,7 @@ static int hole_mergeable(struct inode *inode, struct extent_buffer *leaf, · 1094 unmodified lines
22032203 return 0;
22042204
22052205 btrfs_item_key_to_cpu(leaf, &key, slot);
2206− if (key.objectid != btrfs_ino(inode) ||
2206+ if (key.objectid != btrfs_ino(BTRFS_I(inode)) ||
22072207 key.type != BTRFS_EXTENT_DATA_KEY)
22082208 return 0;
22092209
@@ -2237,7 +2237,7 @@ static int fill_holes(struct btrfs_trans_handle *trans, struct inode *inode, · 27 unmodified lines
22372237 if (btrfs_fs_incompat(fs_info, NO_HOLES))
22382238 goto out;
22392239
2240− key.objectid = btrfs_ino(inode);
2240+ key.objectid = btrfs_ino(BTRFS_I(inode));
22412241 key.type = BTRFS_EXTENT_DATA_KEY;
22422242 key.offset = offset;
22432243
@@ -2285,7 +2285,7 @@ static int fill_holes(struct btrfs_trans_handle *trans, struct inode *inode, · 41 unmodified lines
22852285 }
22862286 btrfs_release_path(path);
22872287
2288− ret = btrfs_insert_file_extent(trans, root, btrfs_ino(inode), offset,
2288+ ret = btrfs_insert_file_extent(trans, root, btrfs_ino(BTRFS_I(inode)), offset,
22892289 0, 0, end - offset, 0, end - offset,
22902290 0, 0, 0);
22912291 if (ret)
fs/btrfs/free-space-cache.c+1−1
@@ -313,7 +313,7 @@ static int io_ctl_init(struct btrfs_io_ctl *io_ctl, struct inode *inode, · 312 unmodified lines
313313
314314 num_pages = DIV_ROUND_UP(i_size_read(inode), PAGE_SIZE);
315315
316− if (btrfs_ino(inode) != BTRFS_FREE_INO_OBJECTID)
316+ if (btrfs_ino(BTRFS_I(inode)) != BTRFS_FREE_INO_OBJECTID)
317317 check_crcs = 1;
318318
319319 /* Make sure we can fit our crcs into the first page */
fs/btrfs/inode.c+61−61
@@ -166,7 +166,7 @@ static int insert_inline_extent(struct btrfs_trans_handle *trans, · 165 unmodified lines
166166 struct btrfs_key key;
167167 size_t datasize;
168168
169− key.objectid = btrfs_ino(inode);
169+ key.objectid = btrfs_ino(BTRFS_I(inode));
170170 key.offset = start;
171171 key.type = BTRFS_EXTENT_DATA_KEY;
172172
@@ -1265,7 +1265,7 @@ static noinline int run_delalloc_nocow(struct inode *inode, · 1092 unmodified lines
12651265 int nocow;
12661266 int check_prev = 1;
12671267 bool nolock;
1268− u64 ino = btrfs_ino(inode);
1268+ u64 ino = btrfs_ino(BTRFS_I(inode));
12691269
12701270 path = btrfs_alloc_path();
12711271 if (!path) {
@@ -2149,7 +2149,7 @@ static int insert_reserved_file_extent(struct btrfs_trans_handle *trans, · 877 unmodified lines
21492149 goto out;
21502150
21512151 if (!extent_inserted) {
2152− ins.objectid = btrfs_ino(inode);
2152+ ins.objectid = btrfs_ino(BTRFS_I(inode));
21532153 ins.offset = file_pos;
21542154 ins.type = BTRFS_EXTENT_DATA_KEY;
21552155
@@ -2182,7 +2182,7 @@ static int insert_reserved_file_extent(struct btrfs_trans_handle *trans, · 26 unmodified lines
21822182 ins.offset = disk_num_bytes;
21832183 ins.type = BTRFS_EXTENT_ITEM_KEY;
21842184 ret = btrfs_alloc_reserved_file_extent(trans, root->root_key.objectid,
2185− btrfs_ino(inode), file_pos,
2185+ btrfs_ino(BTRFS_I(inode)), file_pos,
21862186 ram_bytes, &ins);
21872187 /*
21882188 * Release the reserved range from inode dirty range map, as it is
@@ -2308,7 +2308,7 @@ static noinline int record_one_backref(u64 inum, u64 offset, u64 root_id, · 119 unmodified lines
23082308 u64 num_bytes;
23092309
23102310 if (BTRFS_I(inode)->root->root_key.objectid == root_id &&
2311− inum == btrfs_ino(inode))
2311+ inum == btrfs_ino(BTRFS_I(inode)))
23122312 return 0;
23132313
23142314 key.objectid = root_id;
@@ -2577,7 +2577,7 @@ static noinline int relink_extent_backref(struct btrfs_path *path, · 262 unmodified lines
25772577 if (ret)
25782578 goto out_free_path;
25792579 again:
2580− key.objectid = btrfs_ino(inode);
2580+ key.objectid = btrfs_ino(BTRFS_I(inode));
25812581 key.type = BTRFS_EXTENT_DATA_KEY;
25822582 key.offset = start;
25832583
@@ -2756,7 +2756,7 @@ record_old_file_extents(struct inode *inode, · 172 unmodified lines
27562756 if (!path)
27572757 goto out_kfree;
27582758
2759− key.objectid = btrfs_ino(inode);
2759+ key.objectid = btrfs_ino(BTRFS_I(inode));
27602760 key.type = BTRFS_EXTENT_DATA_KEY;
27612761 key.offset = new->file_pos;
27622762
@@ -2791,7 +2791,7 @@ record_old_file_extents(struct inode *inode, · 28 unmodified lines
27912791
27922792 btrfs_item_key_to_cpu(l, &key, slot);
27932793
2794− if (key.objectid != btrfs_ino(inode))
2794+ if (key.objectid != btrfs_ino(BTRFS_I(inode)))
27952795 break;
27962796 if (key.type != BTRFS_EXTENT_DATA_KEY)
27972797 break;
@@ -3113,7 +3113,7 @@ static int __readpage_endio_check(struct inode *inode, · 315 unmodified lines
31133113 zeroit:
31143114 btrfs_warn_rl(BTRFS_I(inode)->root->fs_info,
31153115 "csum failed ino %llu off %llu csum %u expected csum %u",
3116− btrfs_ino(inode), start, csum, csum_expected);
3116+ btrfs_ino(BTRFS_I(inode)), start, csum, csum_expected);
31173117 memset(kaddr + pgoff, 1, len);
31183118 flush_dcache_page(page);
31193119 kunmap_atomic(kaddr);
@@ -3314,7 +3314,7 @@ int btrfs_orphan_add(struct btrfs_trans_handle *trans, struct inode *inode) · 194 unmodified lines
33143314
33153315 /* insert an orphan item to track this unlinked/truncated file */
33163316 if (insert >= 1) {
3317− ret = btrfs_insert_orphan_item(trans, root, btrfs_ino(inode));
3317+ ret = btrfs_insert_orphan_item(trans, root, btrfs_ino(BTRFS_I(inode)));
33183318 if (ret) {
33193319 atomic_dec(&root->orphan_inodes);
33203320 if (reserve) {
@@ -3370,7 +3370,7 @@ static int btrfs_orphan_del(struct btrfs_trans_handle *trans, · 49 unmodified lines
33703370 atomic_dec(&root->orphan_inodes);
33713371 if (trans)
33723372 ret = btrfs_del_orphan_item(trans, root,
3373− btrfs_ino(inode));
3373+ btrfs_ino(BTRFS_I(inode)));
33743374 }
33753375
33763376 if (release_rsv)
@@ -3777,7 +3777,7 @@ cache_index: · 400 unmodified lines
37773777 goto cache_acl;
37783778
37793779 btrfs_item_key_to_cpu(leaf, &location, path->slots[0]);
3780− if (location.objectid != btrfs_ino(inode))
3780+ if (location.objectid != btrfs_ino(BTRFS_I(inode)))
37813781 goto cache_acl;
37823782
37833783 ptr = btrfs_item_ptr_offset(leaf, path->slots[0]);
@@ -3799,14 +3799,14 @@ cache_acl: · 15 unmodified lines
37993799 * any xattrs or acls
38003800 */
38013801 maybe_acls = acls_after_inode_item(leaf, path->slots[0],
3802− btrfs_ino(inode), &first_xattr_slot);
3802+ btrfs_ino(BTRFS_I(inode)), &first_xattr_slot);
38033803 if (first_xattr_slot != -1) {
38043804 path->slots[0] = first_xattr_slot;
38053805 ret = btrfs_load_inode_props(inode, path);
38063806 if (ret)
38073807 btrfs_err(fs_info,
38083808 "error loading props for ino %llu (root %llu): %d",
3809− btrfs_ino(inode),
3809+ btrfs_ino(BTRFS_I(inode)),
38103810 root->root_key.objectid, ret);
38113811 }
38123812 btrfs_free_path(path);
@@ -3991,8 +3991,8 @@ static int __btrfs_unlink_inode(struct btrfs_trans_handle *trans, · 178 unmodified lines
39913991 struct btrfs_dir_item *di;
39923992 struct btrfs_key key;
39933993 u64 index;
3994− u64 ino = btrfs_ino(inode);
3995− u64 dir_ino = btrfs_ino(dir);
3994+ u64 ino = btrfs_ino(BTRFS_I(inode));
3995+ u64 dir_ino = btrfs_ino(BTRFS_I(dir));
39963996
39973997 path = btrfs_alloc_path();
39983998 if (!path) {
@@ -4158,7 +4158,7 @@ int btrfs_unlink_subvol(struct btrfs_trans_handle *trans, · 159 unmodified lines
41584158 struct btrfs_key key;
41594159 u64 index;
41604160 int ret;
4161− u64 dir_ino = btrfs_ino(dir);
4161+ u64 dir_ino = btrfs_ino(BTRFS_I(dir));
41624162
41634163 path = btrfs_alloc_path();
41644164 if (!path)
@@ -4237,14 +4237,14 @@ static int btrfs_rmdir(struct inode *dir, struct dentry *dentry) · 72 unmodified lines
42374237
42384238 if (inode->i_size > BTRFS_EMPTY_DIR_SIZE)
42394239 return -ENOTEMPTY;
4240− if (btrfs_ino(inode) == BTRFS_FIRST_FREE_OBJECTID)
4240+ if (btrfs_ino(BTRFS_I(inode)) == BTRFS_FIRST_FREE_OBJECTID)
42414241 return -EPERM;
42424242
42434243 trans = __unlink_start_trans(dir);
42444244 if (IS_ERR(trans))
42454245 return PTR_ERR(trans);
42464246
4247− if (unlikely(btrfs_ino(inode) == BTRFS_EMPTY_SUBVOL_DIR_OBJECTID)) {
4247+ if (unlikely(btrfs_ino(BTRFS_I(inode)) == BTRFS_EMPTY_SUBVOL_DIR_OBJECTID)) {
42484248 err = btrfs_unlink_subvol(trans, root, dir,
42494249 BTRFS_I(inode)->location.objectid,
42504250 dentry->d_name.name,
@@ -4386,7 +4386,7 @@ int btrfs_truncate_inode_items(struct btrfs_trans_handle *trans, · 135 unmodified lines
43864386 int extent_type = -1;
43874387 int ret;
43884388 int err = 0;
4389− u64 ino = btrfs_ino(inode);
4389+ u64 ino = btrfs_ino(BTRFS_I(inode));
43904390 u64 bytes_deleted = 0;
43914391 bool be_nice = 0;
43924392 bool should_throttle = 0;
@@ -4858,7 +4858,7 @@ static int maybe_insert_hole(struct btrfs_root *root, struct inode *inode, · 465 unmodified lines
48584858 return ret;
48594859 }
48604860
4861− ret = btrfs_insert_file_extent(trans, root, btrfs_ino(inode), offset,
4861+ ret = btrfs_insert_file_extent(trans, root, btrfs_ino(BTRFS_I(inode)), offset,
48624862 0, 0, len, 0, len, 0, 0, 0);
48634863 if (ret)
48644864 btrfs_abort_transaction(trans, ret);
@@ -5390,7 +5390,7 @@ void btrfs_evict_inode(struct inode *inode) · 525 unmodified lines
53905390 trans->block_rsv = &fs_info->trans_block_rsv;
53915391 if (!(root == fs_info->tree_root ||
53925392 root->root_key.objectid == BTRFS_TREE_RELOC_OBJECTID))
5393− btrfs_return_ino(root, btrfs_ino(inode));
5393+ btrfs_return_ino(root, btrfs_ino(BTRFS_I(inode)));
53945394
53955395 btrfs_end_transaction(trans);
53965396 btrfs_btree_balance_dirty(fs_info);
@@ -5417,7 +5417,7 @@ static int btrfs_inode_by_name(struct inode *dir, struct dentry *dentry, · 20 unmodified lines
54175417 if (!path)
54185418 return -ENOMEM;
54195419
5420− di = btrfs_lookup_dir_item(NULL, root, path, btrfs_ino(dir), name,
5420+ di = btrfs_lookup_dir_item(NULL, root, path, btrfs_ino(BTRFS_I(dir)), name,
54215421 namelen, 0);
54225422 if (IS_ERR(di))
54235423 ret = PTR_ERR(di);
@@ -5473,7 +5473,7 @@ static int fixup_tree_root_location(struct btrfs_fs_info *fs_info, · 49 unmodified lines
54735473
54745474 leaf = path->nodes[0];
54755475 ref = btrfs_item_ptr(leaf, path->slots[0], struct btrfs_root_ref);
5476− if (btrfs_root_ref_dirid(leaf, ref) != btrfs_ino(dir) ||
5476+ if (btrfs_root_ref_dirid(leaf, ref) != btrfs_ino(BTRFS_I(dir)) ||
54775477 btrfs_root_ref_name_len(leaf, ref) != dentry->d_name.len)
54785478 goto out;
54795479
@@ -5508,7 +5508,7 @@ static void inode_tree_add(struct inode *inode) · 28 unmodified lines
55085508 struct rb_node **p;
55095509 struct rb_node *parent;
55105510 struct rb_node *new = &BTRFS_I(inode)->rb_node;
5511− u64 ino = btrfs_ino(inode);
5511+ u64 ino = btrfs_ino(BTRFS_I(inode));
55125512
55135513 if (inode_unhashed(inode))
55145514 return;
@@ -5519,9 +5519,9 @@ static void inode_tree_add(struct inode *inode) · 4 unmodified lines
55195519 parent = *p;
55205520 entry = rb_entry(parent, struct btrfs_inode, rb_node);
55215521
5522− if (ino < btrfs_ino(&entry->vfs_inode))
5522+ if (ino < btrfs_ino(BTRFS_I(&entry->vfs_inode)))
55235523 p = &parent->rb_left;
5524− else if (ino > btrfs_ino(&entry->vfs_inode))
5524+ else if (ino > btrfs_ino(BTRFS_I(&entry->vfs_inode)))
55255525 p = &parent->rb_right;
55265526 else {
55275527 WARN_ON(!(entry->vfs_inode.i_state &
@@ -5581,9 +5581,9 @@ again: · 53 unmodified lines
55815581 prev = node;
55825582 entry = rb_entry(node, struct btrfs_inode, rb_node);
55835583
5584− if (objectid < btrfs_ino(&entry->vfs_inode))
5584+ if (objectid < btrfs_ino(BTRFS_I(&entry->vfs_inode)))
55855585 node = node->rb_left;
5586− else if (objectid > btrfs_ino(&entry->vfs_inode))
5586+ else if (objectid > btrfs_ino(BTRFS_I(&entry->vfs_inode)))
55875587 node = node->rb_right;
55885588 else
55895589 break;
@@ -5591,7 +5591,7 @@ again: · 1 unmodified line
55915591 if (!node) {
55925592 while (prev) {
55935593 entry = rb_entry(prev, struct btrfs_inode, rb_node);
5594− if (objectid <= btrfs_ino(&entry->vfs_inode)) {
5594+ if (objectid <= btrfs_ino(BTRFS_I(&entry->vfs_inode))) {
55955595 node = prev;
55965596 break;
55975597 }
@@ -5600,7 +5600,7 @@ again: · 2 unmodified lines
56005600 }
56015601 while (node) {
56025602 entry = rb_entry(node, struct btrfs_inode, rb_node);
5603− objectid = btrfs_ino(&entry->vfs_inode) + 1;
5603+ objectid = btrfs_ino(BTRFS_I(&entry->vfs_inode)) + 1;
56045604 inode = igrab(&entry->vfs_inode);
56055605 if (inode) {
56065606 spin_unlock(&root->inode_lock);
@@ -5784,7 +5784,7 @@ static int btrfs_dentry_delete(const struct dentry *dentry) · 177 unmodified lines
57845784 if (btrfs_root_refs(&root->root_item) == 0)
57855785 return 1;
57865786
5787− if (btrfs_ino(inode) == BTRFS_EMPTY_SUBVOL_DIR_OBJECTID)
5787+ if (btrfs_ino(BTRFS_I(inode)) == BTRFS_EMPTY_SUBVOL_DIR_OBJECTID)
57885788 return 1;
57895789 }
57905790 return 0;
@@ -5853,7 +5853,7 @@ static int btrfs_real_readdir(struct file *file, struct dir_context *ctx) · 62 unmodified lines
58535853
58545854 key.type = BTRFS_DIR_INDEX_KEY;
58555855 key.offset = ctx->pos;
5856− key.objectid = btrfs_ino(inode);
5856+ key.objectid = btrfs_ino(BTRFS_I(inode));
58575857
58585858 ret = btrfs_search_slot(NULL, root, &key, path, 0, 0);
58595859 if (ret < 0)
@@ -6050,7 +6050,7 @@ static int btrfs_set_inode_index_count(struct inode *inode) · 190 unmodified lines
60506050 struct extent_buffer *leaf;
60516051 int ret;
60526052
6053− key.objectid = btrfs_ino(inode);
6053+ key.objectid = btrfs_ino(BTRFS_I(inode));
60546054 key.type = BTRFS_DIR_INDEX_KEY;
60556055 key.offset = (u64)-1;
60566056
@@ -6082,7 +6082,7 @@ static int btrfs_set_inode_index_count(struct inode *inode) · 25 unmodified lines
60826082 leaf = path->nodes[0];
60836083 btrfs_item_key_to_cpu(leaf, &found_key, path->slots[0]);
60846084
6085− if (found_key.objectid != btrfs_ino(inode) ||
6085+ if (found_key.objectid != btrfs_ino(BTRFS_I(inode)) ||
60866086 found_key.type != BTRFS_DIR_INDEX_KEY) {
60876087 BTRFS_I(inode)->index_cnt = 2;
60886088 goto out;
@@ -6282,7 +6282,7 @@ static struct inode *btrfs_new_inode(struct btrfs_trans_handle *trans, · 193 unmodified lines
62826282 if (ret)
62836283 btrfs_err(fs_info,
62846284 "error inheriting props for ino %llu (root %llu): %d",
6285− btrfs_ino(inode), root->root_key.objectid, ret);
6285+ btrfs_ino(BTRFS_I(inode)), root->root_key.objectid, ret);
62866286
62876287 return inode;
62886288
@@ -6315,8 +6315,8 @@ int btrfs_add_link(struct btrfs_trans_handle *trans, · 26 unmodified lines
63156315 int ret = 0;
63166316 struct btrfs_key key;
63176317 struct btrfs_root *root = BTRFS_I(parent_inode)->root;
6318− u64 ino = btrfs_ino(inode);
6319− u64 parent_ino = btrfs_ino(parent_inode);
6318+ u64 ino = btrfs_ino(BTRFS_I(inode));
6319+ u64 parent_ino = btrfs_ino(BTRFS_I(parent_inode));
63206320
63216321 if (unlikely(ino == BTRFS_FIRST_FREE_OBJECTID)) {
63226322 memcpy(&key, &BTRFS_I(inode)->root->root_key, sizeof(key));
@@ -6415,7 +6415,7 @@ static int btrfs_mknod(struct inode *dir, struct dentry *dentry, · 92 unmodified lines
64156415 goto out_unlock;
64166416
64176417 inode = btrfs_new_inode(trans, root, dir, dentry->d_name.name,
6418− dentry->d_name.len, btrfs_ino(dir), objectid,
6418+ dentry->d_name.len, btrfs_ino(BTRFS_I(dir)), objectid,
64196419 mode, &index);
64206420 if (IS_ERR(inode)) {
64216421 err = PTR_ERR(inode);
@@ -6487,7 +6487,7 @@ static int btrfs_create(struct inode *dir, struct dentry *dentry, · 65 unmodified lines
64876487 goto out_unlock;
64886488
64896489 inode = btrfs_new_inode(trans, root, dir, dentry->d_name.name,
6490− dentry->d_name.len, btrfs_ino(dir), objectid,
6490+ dentry->d_name.len, btrfs_ino(BTRFS_I(dir)), objectid,
64916491 mode, &index);
64926492 if (IS_ERR(inode)) {
64936493 err = PTR_ERR(inode);
@@ -6637,7 +6637,7 @@ static int btrfs_mkdir(struct inode *dir, struct dentry *dentry, umode_t mode) · 143 unmodified lines
66376637 goto out_fail;
66386638
66396639 inode = btrfs_new_inode(trans, root, dir, dentry->d_name.name,
6640− dentry->d_name.len, btrfs_ino(dir), objectid,
6640+ dentry->d_name.len, btrfs_ino(BTRFS_I(dir)), objectid,
66416641 S_IFDIR | mode, &index);
66426642 if (IS_ERR(inode)) {
66436643 err = PTR_ERR(inode);
@@ -6798,7 +6798,7 @@ struct extent_map *btrfs_get_extent(struct inode *inode, struct page *page, · 154 unmodified lines
67986798 int err = 0;
67996799 u64 extent_start = 0;
68006800 u64 extent_end = 0;
6801− u64 objectid = btrfs_ino(inode);
6801+ u64 objectid = btrfs_ino(BTRFS_I(inode));
68026802 u32 found_type;
68036803 struct btrfs_path *path = NULL;
68046804 struct btrfs_root *root = BTRFS_I(inode)->root;
@@ -7056,7 +7056,7 @@ insert: · 251 unmodified lines
70567056 write_unlock(&em_tree->lock);
70577057 out:
70587058
7059− trace_btrfs_get_extent(root, inode, em);
7059+ trace_btrfs_get_extent(root, BTRFS_I(inode), em);
70607060
70617061 btrfs_free_path(path);
70627062 if (trans) {
@@ -7290,7 +7290,7 @@ noinline int can_nocow_extent(struct inode *inode, u64 offset, u64 *len, · 227 unmodified lines
72907290 if (!path)
72917291 return -ENOMEM;
72927292
7293− ret = btrfs_lookup_file_extent(NULL, root, path, btrfs_ino(inode),
7293+ ret = btrfs_lookup_file_extent(NULL, root, path, btrfs_ino(BTRFS_I(inode)),
72947294 offset, 0);
72957295 if (ret < 0)
72967296 goto out;
@@ -7307,7 +7307,7 @@ noinline int can_nocow_extent(struct inode *inode, u64 offset, u64 *len, · 10 unmodified lines
73077307 ret = 0;
73087308 leaf = path->nodes[0];
73097309 btrfs_item_key_to_cpu(leaf, &key, slot);
7310− if (key.objectid != btrfs_ino(inode) ||
7310+ if (key.objectid != btrfs_ino(BTRFS_I(inode)) ||
73117311 key.type != BTRFS_EXTENT_DATA_KEY) {
73127312 /* not our file or wrong item type, must cow */
73137313 goto out;
@@ -7379,7 +7379,7 @@ noinline int can_nocow_extent(struct inode *inode, u64 offset, u64 *len, · 65 unmodified lines
73797379 goto out;
73807380 }
73817381
7382− ret = btrfs_cross_ref_exist(trans, root, btrfs_ino(inode),
7382+ ret = btrfs_cross_ref_exist(trans, root, btrfs_ino(BTRFS_I(inode)),
73837383 key.offset - backref_offset, disk_bytenr);
73847384 btrfs_end_transaction(trans);
73857385 if (ret) {
@@ -8240,7 +8240,7 @@ static void btrfs_end_dio_bio(struct bio *bio) · 854 unmodified lines
82408240 if (err)
82418241 btrfs_warn(BTRFS_I(dip->inode)->root->fs_info,
82428242 "direct IO failed ino %llu rw %d,%u sector %#Lx len %u err no %d",
8243− btrfs_ino(dip->inode), bio_op(bio), bio->bi_opf,
8243+ btrfs_ino(BTRFS_I(dip->inode)), bio_op(bio), bio->bi_opf,
82448244 (unsigned long long)bio->bi_iter.bi_sector,
82458245 bio->bi_iter.bi_size, err);
82468246
@@ -9368,7 +9368,7 @@ void btrfs_destroy_inode(struct inode *inode) · 1121 unmodified lines
93689368 if (test_bit(BTRFS_INODE_HAS_ORPHAN_ITEM,
93699369 &BTRFS_I(inode)->runtime_flags)) {
93709370 btrfs_info(fs_info, "inode %llu still on the orphan list",
9371− btrfs_ino(inode));
9371+ btrfs_ino(BTRFS_I(inode)));
93729372 atomic_dec(&root->orphan_inodes);
93739373 }
93749374
@@ -9497,8 +9497,8 @@ static int btrfs_rename_exchange(struct inode *old_dir, · 122 unmodified lines
94979497 struct inode *old_inode = old_dentry->d_inode;
94989498 struct timespec ctime = current_time(old_inode);
94999499 struct dentry *parent;
9500− u64 old_ino = btrfs_ino(old_inode);
9501− u64 new_ino = btrfs_ino(new_inode);
9500+ u64 old_ino = btrfs_ino(BTRFS_I(old_inode));
9501+ u64 new_ino = btrfs_ino(BTRFS_I(new_inode));
95029502 u64 old_idx = 0;
95039503 u64 new_idx = 0;
95049504 u64 root_objectid;
@@ -9555,7 +9555,7 @@ static int btrfs_rename_exchange(struct inode *old_dir, · 50 unmodified lines
95559555 new_dentry->d_name.name,
95569556 new_dentry->d_name.len,
95579557 old_ino,
9558− btrfs_ino(new_dir), old_idx);
9558+ btrfs_ino(BTRFS_I(new_dir)), old_idx);
95599559 if (ret)
95609560 goto out_fail;
95619561 }
@@ -9571,7 +9571,7 @@ static int btrfs_rename_exchange(struct inode *old_dir, · 9 unmodified lines
95719571 old_dentry->d_name.name,
95729572 old_dentry->d_name.len,
95739573 new_ino,
9574− btrfs_ino(old_dir), new_idx);
9574+ btrfs_ino(BTRFS_I(old_dir)), new_idx);
95759575 if (ret)
95769576 goto out_fail;
95779577 }
@@ -9720,7 +9720,7 @@ static int btrfs_whiteout_for_rename(struct btrfs_trans_handle *trans, · 142 unmodified lines
97209720 inode = btrfs_new_inode(trans, root, dir,
97219721 dentry->d_name.name,
97229722 dentry->d_name.len,
9723− btrfs_ino(dir),
9723+ btrfs_ino(BTRFS_I(dir)),
97249724 objectid,
97259725 S_IFCHR | WHITEOUT_MODE,
97269726 &index);
@@ -9768,10 +9768,10 @@ static int btrfs_rename(struct inode *old_dir, struct dentry *old_dentry, · 41 unmodified lines
97689768 u64 index = 0;
97699769 u64 root_objectid;
97709770 int ret;
9771− u64 old_ino = btrfs_ino(old_inode);
9771+ u64 old_ino = btrfs_ino(BTRFS_I(old_inode));
97729772 bool log_pinned = false;
97739773
9774− if (btrfs_ino(new_dir) == BTRFS_EMPTY_SUBVOL_DIR_OBJECTID)
9774+ if (btrfs_ino(BTRFS_I(new_dir)) == BTRFS_EMPTY_SUBVOL_DIR_OBJECTID)
97759775 return -EPERM;
97769776
97779777 /* we only allow rename subvolume link between subvolumes */
@@ -9779,7 +9779,7 @@ static int btrfs_rename(struct inode *old_dir, struct dentry *old_dentry, · 1 unmodified line
97799779 return -EXDEV;
97809780
97819781 if (old_ino == BTRFS_EMPTY_SUBVOL_DIR_OBJECTID ||
9782− (new_inode && btrfs_ino(new_inode) == BTRFS_FIRST_FREE_OBJECTID))
9782+ (new_inode && btrfs_ino(BTRFS_I(new_inode)) == BTRFS_FIRST_FREE_OBJECTID))
97839783 return -ENOTEMPTY;
97849784
97859785 if (S_ISDIR(old_inode->i_mode) && new_inode &&
@@ -9854,7 +9854,7 @@ static int btrfs_rename(struct inode *old_dir, struct dentry *old_dentry, · 68 unmodified lines
98549854 new_dentry->d_name.name,
98559855 new_dentry->d_name.len,
98569856 old_ino,
9857− btrfs_ino(new_dir), index);
9857+ btrfs_ino(BTRFS_I(new_dir)), index);
98589858 if (ret)
98599859 goto out_fail;
98609860 }
@@ -9890,7 +9890,7 @@ static int btrfs_rename(struct inode *old_dir, struct dentry *old_dentry, · 29 unmodified lines
98909890 if (new_inode) {
98919891 inode_inc_iversion(new_inode);
98929892 new_inode->i_ctime = current_time(new_inode);
9893− if (unlikely(btrfs_ino(new_inode) ==
9893+ if (unlikely(btrfs_ino(BTRFS_I(new_inode)) ==
98949894 BTRFS_EMPTY_SUBVOL_DIR_OBJECTID)) {
98959895 root_objectid = BTRFS_I(new_inode)->location.objectid;
98969896 ret = btrfs_unlink_subvol(trans, dest, new_dir,
@@ -10221,7 +10221,7 @@ static int btrfs_symlink(struct inode *dir, struct dentry *dentry, · 324 unmodified lines
1022110221 goto out_unlock;
1022210222
1022310223 inode = btrfs_new_inode(trans, root, dir, dentry->d_name.name,
10224− dentry->d_name.len, btrfs_ino(dir), objectid,
10224+ dentry->d_name.len, btrfs_ino(BTRFS_I(dir)), objectid,
1022510225 S_IFLNK|S_IRWXUGO, &index);
1022610226 if (IS_ERR(inode)) {
1022710227 err = PTR_ERR(inode);
@@ -10248,7 +10248,7 @@ static int btrfs_symlink(struct inode *dir, struct dentry *dentry, · 20 unmodified lines
1024810248 err = -ENOMEM;
1024910249 goto out_unlock_inode;
1025010250 }
10251− key.objectid = btrfs_ino(inode);
10251+ key.objectid = btrfs_ino(BTRFS_I(inode));
1025210252 key.offset = 0;
1025310253 key.type = BTRFS_EXTENT_DATA_KEY;
1025410254 datasize = btrfs_file_extent_calc_inline_size(name_len);
@@ -10501,7 +10501,7 @@ static int btrfs_tmpfile(struct inode *dir, struct dentry *dentry, umode_t mode) · 246 unmodified lines
1050110501 goto out;
1050210502
1050310503 inode = btrfs_new_inode(trans, root, dir, NULL, 0,
10504− btrfs_ino(dir), objectid, mode, &index);
10504+ btrfs_ino(BTRFS_I(dir)), objectid, mode, &index);
1050510505 if (IS_ERR(inode)) {
1050610506 ret = PTR_ERR(inode);
1050710507 inode = NULL;
fs/btrfs/ioctl.c+13−13
@@ -601,7 +601,7 @@ static noinline int create_subvol(struct inode *dir, · 600 unmodified lines
601601
602602 ret = btrfs_add_root_ref(trans, fs_info,
603603 objectid, root->root_key.objectid,
604− btrfs_ino(dir), index, name, namelen);
604+ btrfs_ino(BTRFS_I(dir)), index, name, namelen);
605605 BUG_ON(ret);
606606
607607 ret = btrfs_uuid_tree_add(trans, fs_info, root_item->uuid,
@@ -941,7 +941,7 @@ static int find_new_extents(struct btrfs_root *root, · 333 unmodified lines
941941 struct btrfs_file_extent_item *extent;
942942 int type;
943943 int ret;
944− u64 ino = btrfs_ino(inode);
944+ u64 ino = btrfs_ino(BTRFS_I(inode));
945945
946946 path = btrfs_alloc_path();
947947 if (!path)
@@ -1780,7 +1780,7 @@ static noinline int btrfs_ioctl_subvol_getflags(struct file *file, · 832 unmodified lines
17801780 int ret = 0;
17811781 u64 flags = 0;
17821782
1783− if (btrfs_ino(inode) != BTRFS_FIRST_FREE_OBJECTID)
1783+ if (btrfs_ino(BTRFS_I(inode)) != BTRFS_FIRST_FREE_OBJECTID)
17841784 return -EINVAL;
17851785
17861786 down_read(&fs_info->subvol_sem);
@@ -1812,7 +1812,7 @@ static noinline int btrfs_ioctl_subvol_setflags(struct file *file, · 25 unmodified lines
18121812 if (ret)
18131813 goto out;
18141814
1815− if (btrfs_ino(inode) != BTRFS_FIRST_FREE_OBJECTID) {
1815+ if (btrfs_ino(BTRFS_I(inode)) != BTRFS_FIRST_FREE_OBJECTID) {
18161816 ret = -EINVAL;
18171817 goto out_drop_write;
18181818 }
@@ -2446,7 +2446,7 @@ static noinline int btrfs_ioctl_snap_destroy(struct file *file, · 627 unmodified lines
24462446 if (err)
24472447 goto out_dput;
24482448
2449− if (btrfs_ino(inode) != BTRFS_FIRST_FREE_OBJECTID) {
2449+ if (btrfs_ino(BTRFS_I(inode)) != BTRFS_FIRST_FREE_OBJECTID) {
24502450 err = -EINVAL;
24512451 goto out_dput;
24522452 }
@@ -3417,7 +3417,7 @@ static int clone_copy_inline_extent(struct inode *src, · 964 unmodified lines
34173417 if (new_key->offset > 0)
34183418 return -EOPNOTSUPP;
34193419
3420− key.objectid = btrfs_ino(dst);
3420+ key.objectid = btrfs_ino(BTRFS_I(dst));
34213421 key.type = BTRFS_EXTENT_DATA_KEY;
34223422 key.offset = 0;
34233423 ret = btrfs_search_slot(NULL, root, &key, path, 0, 0);
@@ -3432,7 +3432,7 @@ static int clone_copy_inline_extent(struct inode *src, · 8 unmodified lines
34323432 goto copy_inline_extent;
34333433 }
34343434 btrfs_item_key_to_cpu(path->nodes[0], &key, path->slots[0]);
3435− if (key.objectid == btrfs_ino(dst) &&
3435+ if (key.objectid == btrfs_ino(BTRFS_I(dst)) &&
34363436 key.type == BTRFS_EXTENT_DATA_KEY) {
34373437 ASSERT(key.offset > 0);
34383438 return -EOPNOTSUPP;
@@ -3466,7 +3466,7 @@ static int clone_copy_inline_extent(struct inode *src, · 27 unmodified lines
34663466 } else if (ret == 0) {
34673467 btrfs_item_key_to_cpu(path->nodes[0], &key,
34683468 path->slots[0]);
3469− if (key.objectid == btrfs_ino(dst) &&
3469+ if (key.objectid == btrfs_ino(BTRFS_I(dst)) &&
34703470 key.type == BTRFS_EXTENT_DATA_KEY)
34713471 return -EOPNOTSUPP;
34723472 }
@@ -3560,7 +3560,7 @@ static int btrfs_clone(struct inode *src, struct inode *inode, · 87 unmodified lines
35603560
35613561 path->reada = READA_FORWARD;
35623562 /* clone data */
3563− key.objectid = btrfs_ino(src);
3563+ key.objectid = btrfs_ino(BTRFS_I(src));
35643564 key.type = BTRFS_EXTENT_DATA_KEY;
35653565 key.offset = off;
35663566
@@ -3603,7 +3603,7 @@ process_slot: · 36 unmodified lines
36033603
36043604 btrfs_item_key_to_cpu(leaf, &key, slot);
36053605 if (key.type > BTRFS_EXTENT_DATA_KEY ||
3606− key.objectid != btrfs_ino(src))
3606+ key.objectid != btrfs_ino(BTRFS_I(src)))
36073607 break;
36083608
36093609 if (key.type == BTRFS_EXTENT_DATA_KEY) {
@@ -3656,7 +3656,7 @@ process_slot: · 46 unmodified lines
36563656 path->leave_spinning = 0;
36573657
36583658 memcpy(&new_key, &key, sizeof(new_key));
3659− new_key.objectid = btrfs_ino(inode);
3659+ new_key.objectid = btrfs_ino(BTRFS_I(inode));
36603660 if (off <= key.offset)
36613661 new_key.offset = key.offset + destoff - off;
36623662 else
@@ -3746,7 +3746,7 @@ process_slot: · 83 unmodified lines
37463746 fs_info,
37473747 disko, diskl, 0,
37483748 root->root_key.objectid,
3749− btrfs_ino(inode),
3749+ btrfs_ino(BTRFS_I(inode)),
37503750 new_key.offset - datao);
37513751 if (ret) {
37523752 btrfs_abort_transaction(trans,
@@ -5126,7 +5126,7 @@ static long _btrfs_ioctl_set_received_subvol(struct file *file, · 1373 unmodified lines
51265126
51275127 down_write(&fs_info->subvol_sem);
51285128
5129− if (btrfs_ino(inode) != BTRFS_FIRST_FREE_OBJECTID) {
5129+ if (btrfs_ino(BTRFS_I(inode)) != BTRFS_FIRST_FREE_OBJECTID) {
51305130 ret = -EINVAL;
51315131 goto out;
51325132 }
fs/btrfs/props.c+2−2
@@ -279,7 +279,7 @@ static void inode_prop_iterator(void *ctx, · 278 unmodified lines
279279 if (unlikely(ret))
280280 btrfs_warn(root->fs_info,
281281 "error applying prop %s to ino %llu (root %llu): %d",
282− handler->xattr_name, btrfs_ino(inode),
282+ handler->xattr_name, btrfs_ino(BTRFS_I(inode)),
283283 root->root_key.objectid, ret);
284284 else
285285 set_bit(BTRFS_INODE_HAS_PROPS, &BTRFS_I(inode)->runtime_flags);
@@ -288,7 +288,7 @@ static void inode_prop_iterator(void *ctx, · 2 unmodified lines
288288 int btrfs_load_inode_props(struct inode *inode, struct btrfs_path *path)
289289 {
290290 struct btrfs_root *root = BTRFS_I(inode)->root;
291− u64 ino = btrfs_ino(inode);
291+ u64 ino = btrfs_ino(BTRFS_I(inode));
292292 int ret;
293293
294294 ret = iterate_object_props(root, path, ino, inode_prop_iterator, inode);
fs/btrfs/relocation.c+8−8
@@ -1548,9 +1548,9 @@ again: · 1547 unmodified lines
15481548 prev = node;
15491549 entry = rb_entry(node, struct btrfs_inode, rb_node);
15501550
1551− if (objectid < btrfs_ino(&entry->vfs_inode))
1551+ if (objectid < btrfs_ino(entry))
15521552 node = node->rb_left;
1553− else if (objectid > btrfs_ino(&entry->vfs_inode))
1553+ else if (objectid > btrfs_ino(entry))
15541554 node = node->rb_right;
15551555 else
15561556 break;
@@ -1558,7 +1558,7 @@ again: · 1 unmodified line
15581558 if (!node) {
15591559 while (prev) {
15601560 entry = rb_entry(prev, struct btrfs_inode, rb_node);
1561− if (objectid <= btrfs_ino(&entry->vfs_inode)) {
1561+ if (objectid <= btrfs_ino(entry)) {
15621562 node = prev;
15631563 break;
15641564 }
@@ -1573,7 +1573,7 @@ again: · 8 unmodified lines
15731573 return inode;
15741574 }
15751575
1576− objectid = btrfs_ino(&entry->vfs_inode) + 1;
1576+ objectid = btrfs_ino(entry) + 1;
15771577 if (cond_resched_lock(&root->inode_lock))
15781578 goto again;
15791579
@@ -1609,7 +1609,7 @@ static int get_new_location(struct inode *reloc_inode, u64 *new_bytenr, · 29 unmodified lines
16091609 return -ENOMEM;
16101610
16111611 bytenr -= BTRFS_I(reloc_inode)->index_cnt;
1612− ret = btrfs_lookup_file_extent(NULL, root, path, btrfs_ino(reloc_inode),
1612+ ret = btrfs_lookup_file_extent(NULL, root, path, btrfs_ino(BTRFS_I(reloc_inode)),
16131613 bytenr, 0);
16141614 if (ret < 0)
16151615 goto out;
@@ -1698,11 +1698,11 @@ int replace_file_extents(struct btrfs_trans_handle *trans, · 82 unmodified lines
16981698 if (first) {
16991699 inode = find_next_inode(root, key.objectid);
17001700 first = 0;
1701− } else if (inode && btrfs_ino(inode) < key.objectid) {
1701+ } else if (inode && btrfs_ino(BTRFS_I(inode)) < key.objectid) {
17021702 btrfs_add_delayed_iput(inode);
17031703 inode = find_next_inode(root, key.objectid);
17041704 }
1705− if (inode && btrfs_ino(inode) == key.objectid) {
1705+ if (inode && btrfs_ino(BTRFS_I(inode)) == key.objectid) {
17061706 end = key.offset +
17071707 btrfs_file_extent_num_bytes(leaf, fi);
17081708 WARN_ON(!IS_ALIGNED(key.offset,
@@ -2088,7 +2088,7 @@ static int invalidate_extent_cache(struct btrfs_root *root, · 379 unmodified lines
20882088 inode = find_next_inode(root, objectid);
20892089 if (!inode)
20902090 break;
2091− ino = btrfs_ino(inode);
2091+ ino = btrfs_ino(BTRFS_I(inode));
20922092
20932093 if (ino > max_key->objectid) {
20942094 iput(inode);
fs/btrfs/transaction.c+2−2
@@ -1504,7 +1504,7 @@ static noinline int create_pending_snapshot(struct btrfs_trans_handle *trans, · 1503 unmodified lines
15041504
15051505 /* check if there is a file/dir which has the same name. */
15061506 dir_item = btrfs_lookup_dir_item(NULL, parent_root, path,
1507− btrfs_ino(parent_inode),
1507+ btrfs_ino(BTRFS_I(parent_inode)),
15081508 dentry->d_name.name,
15091509 dentry->d_name.len, 0);
15101510 if (dir_item != NULL && !IS_ERR(dir_item)) {
@@ -1598,7 +1598,7 @@ static noinline int create_pending_snapshot(struct btrfs_trans_handle *trans, · 87 unmodified lines
15981598 */
15991599 ret = btrfs_add_root_ref(trans, fs_info, objectid,
16001600 parent_root->root_key.objectid,
1601− btrfs_ino(parent_inode), index,
1601+ btrfs_ino(BTRFS_I(parent_inode)), index,
16021602 dentry->d_name.name, dentry->d_name.len);
16031603 if (ret) {
16041604 btrfs_abort_transaction(trans, ret);
fs/btrfs/tree-log.c+21−21
@@ -631,7 +631,7 @@ static noinline int replay_one_extent(struct btrfs_trans_handle *trans, · 630 unmodified lines
631631 * file. This must be done before the btrfs_drop_extents run
632632 * so we don't try to drop this extent.
633633 */
634− ret = btrfs_lookup_file_extent(trans, root, path, btrfs_ino(inode),
634+ ret = btrfs_lookup_file_extent(trans, root, path, btrfs_ino(BTRFS_I(inode)),
635635 start, 0);
636636
637637 if (ret == 0 &&
@@ -1148,7 +1148,7 @@ next: · 510 unmodified lines
11481148 btrfs_release_path(path);
11491149
11501150 /* look for a conflicting sequence number */
1151− di = btrfs_lookup_dir_index_item(trans, root, path, btrfs_ino(dir),
1151+ di = btrfs_lookup_dir_index_item(trans, root, path, btrfs_ino(BTRFS_I(dir)),
11521152 ref_index, name, namelen, 0);
11531153 if (di && !IS_ERR(di)) {
11541154 ret = drop_one_dir_item(trans, root, path, dir, di);
@@ -1158,7 +1158,7 @@ next: · 3 unmodified lines
11581158 btrfs_release_path(path);
11591159
11601160 /* look for a conflicing name */
1161− di = btrfs_lookup_dir_item(trans, root, path, btrfs_ino(dir),
1161+ di = btrfs_lookup_dir_item(trans, root, path, btrfs_ino(BTRFS_I(dir)),
11621162 name, namelen, 0);
11631163 if (di && !IS_ERR(di)) {
11641164 ret = drop_one_dir_item(trans, root, path, dir, di);
@@ -1295,7 +1295,7 @@ static noinline int add_inode_ref(struct btrfs_trans_handle *trans, · 130 unmodified lines
12951295 goto out;
12961296
12971297 /* if we already have a perfect match, we're done */
1298− if (!inode_in_dir(root, path, btrfs_ino(dir), btrfs_ino(inode),
1298+ if (!inode_in_dir(root, path, btrfs_ino(BTRFS_I(dir)), btrfs_ino(BTRFS_I(inode)),
12991299 ref_index, name, namelen)) {
13001300 /*
13011301 * look for a conflicting back reference in the
@@ -1367,7 +1367,7 @@ static int count_inode_extrefs(struct btrfs_root *root, · 65 unmodified lines
13671367 unsigned int nlink = 0;
13681368 u32 item_size;
13691369 u32 cur_offset = 0;
1370− u64 inode_objectid = btrfs_ino(inode);
1370+ u64 inode_objectid = btrfs_ino(BTRFS_I(inode));
13711371 u64 offset = 0;
13721372 unsigned long ptr;
13731373 struct btrfs_inode_extref *extref;
@@ -1412,7 +1412,7 @@ static int count_inode_refs(struct btrfs_root *root, · 38 unmodified lines
14121412 unsigned long ptr;
14131413 unsigned long ptr_end;
14141414 int name_len;
1415− u64 ino = btrfs_ino(inode);
1415+ u64 ino = btrfs_ino(BTRFS_I(inode));
14161416
14171417 key.objectid = ino;
14181418 key.type = BTRFS_INODE_REF_KEY;
@@ -1477,7 +1477,7 @@ static noinline int fixup_inode_link_count(struct btrfs_trans_handle *trans, · 58 unmodified lines
14771477 struct btrfs_path *path;
14781478 int ret;
14791479 u64 nlink = 0;
1480− u64 ino = btrfs_ino(inode);
1480+ u64 ino = btrfs_ino(BTRFS_I(inode));
14811481
14821482 path = btrfs_alloc_path();
14831483 if (!path)
@@ -3092,7 +3092,7 @@ int btrfs_del_dir_entries_in_log(struct btrfs_trans_handle *trans, · 1608 unmodified lines
30923092 int ret;
30933093 int err = 0;
30943094 int bytes_del = 0;
3095− u64 dir_ino = btrfs_ino(dir);
3095+ u64 dir_ino = btrfs_ino(BTRFS_I(dir));
30963096
30973097 if (BTRFS_I(dir)->logged_trans < trans->transid)
30983098 return 0;
@@ -3208,7 +3208,7 @@ int btrfs_del_inode_ref_in_log(struct btrfs_trans_handle *trans, · 109 unmodified lines
32083208 log = root->log_root;
32093209 mutex_lock(&BTRFS_I(inode)->log_mutex);
32103210
3211− ret = btrfs_del_inode_ref(trans, log, name, name_len, btrfs_ino(inode),
3211+ ret = btrfs_del_inode_ref(trans, log, name, name_len, btrfs_ino(BTRFS_I(inode)),
32123212 dirid, &index);
32133213 mutex_unlock(&BTRFS_I(inode)->log_mutex);
32143214 if (ret == -ENOSPC) {
@@ -3275,7 +3275,7 @@ static noinline int log_dir_items(struct btrfs_trans_handle *trans, · 60 unmodified lines
32753275 int nritems;
32763276 u64 first_offset = min_offset;
32773277 u64 last_offset = (u64)-1;
3278− u64 ino = btrfs_ino(inode);
3278+ u64 ino = btrfs_ino(BTRFS_I(inode));
32793279
32803280 log = root->log_root;
32813281
@@ -3792,7 +3792,7 @@ static noinline int copy_items(struct btrfs_trans_handle *trans, · 510 unmodified lines
37923792 src_path->slots[0]--;
37933793 src = src_path->nodes[0];
37943794 btrfs_item_key_to_cpu(src, &key, src_path->slots[0]);
3795− if (key.objectid != btrfs_ino(inode) ||
3795+ if (key.objectid != btrfs_ino(BTRFS_I(inode)) ||
37963796 key.type != BTRFS_EXTENT_DATA_KEY)
37973797 goto fill_holes;
37983798 extent = btrfs_item_ptr(src, src_path->slots[0],
@@ -3857,7 +3857,7 @@ fill_holes: · 58 unmodified lines
38573857 btrfs_item_key_to_cpu(src, &key, i);
38583858 if (!btrfs_comp_cpu_keys(&key, &last_key))
38593859 done = true;
3860− if (key.objectid != btrfs_ino(inode) ||
3860+ if (key.objectid != btrfs_ino(BTRFS_I(inode)) ||
38613861 key.type != BTRFS_EXTENT_DATA_KEY) {
38623862 i++;
38633863 continue;
@@ -3880,7 +3880,7 @@ fill_holes: · 16 unmodified lines
38803880 }
38813881 offset = *last_extent;
38823882 len = key.offset - *last_extent;
3883− ret = btrfs_insert_file_extent(trans, log, btrfs_ino(inode),
3883+ ret = btrfs_insert_file_extent(trans, log, btrfs_ino(BTRFS_I(inode)),
38843884 offset, 0, 0, len, 0, len, 0,
38853885 0, 0);
38863886 if (ret)
@@ -4091,7 +4091,7 @@ static int log_one_extent(struct btrfs_trans_handle *trans, · 204 unmodified lines
40914091 return ret;
40924092
40934093 if (!extent_inserted) {
4094− key.objectid = btrfs_ino(inode);
4094+ key.objectid = btrfs_ino(BTRFS_I(inode));
40954095 key.type = BTRFS_EXTENT_DATA_KEY;
40964096 key.offset = em->start;
40974097
@@ -4247,7 +4247,7 @@ static int logged_inode_size(struct btrfs_root *log, struct inode *inode, · 149 unmodified lines
42474247 struct btrfs_key key;
42484248 int ret;
42494249
4250− key.objectid = btrfs_ino(inode);
4250+ key.objectid = btrfs_ino(BTRFS_I(inode));
42514251 key.type = BTRFS_INODE_ITEM_KEY;
42524252 key.offset = 0;
42534253
@@ -4285,7 +4285,7 @@ static int btrfs_log_all_xattrs(struct btrfs_trans_handle *trans, · 31 unmodified lines
42854285 {
42864286 int ret;
42874287 struct btrfs_key key;
4288− const u64 ino = btrfs_ino(inode);
4288+ const u64 ino = btrfs_ino(BTRFS_I(inode));
42894289 int ins_nr = 0;
42904290 int start_slot = 0;
42914291
@@ -4384,7 +4384,7 @@ static int btrfs_log_trailing_hole(struct btrfs_trans_handle *trans, · 92 unmodified lines
43844384 u64 hole_size;
43854385 struct extent_buffer *leaf;
43864386 struct btrfs_root *log = root->log_root;
4387− const u64 ino = btrfs_ino(inode);
4387+ const u64 ino = btrfs_ino(BTRFS_I(inode));
43884388 const u64 i_size = i_size_read(inode);
43894389
43904390 if (!btrfs_fs_incompat(fs_info, NO_HOLES))
@@ -4617,7 +4617,7 @@ static int btrfs_log_inode(struct btrfs_trans_handle *trans, · 226 unmodified lines
46174617 int ins_start_slot = 0;
46184618 int ins_nr;
46194619 bool fast_search = false;
4620− u64 ino = btrfs_ino(inode);
4620+ u64 ino = btrfs_ino(BTRFS_I(inode));
46214621 struct extent_map_tree *em_tree = &BTRFS_I(inode)->extent_tree;
46224622 u64 logged_isize = 0;
46234623 bool need_log_inode_item = true;
@@ -4775,7 +4775,7 @@ again: · 151 unmodified lines
47754775 err = ret;
47764776 goto out_unlock;
47774777 } else if (ret > 0 && ctx &&
4778− other_ino != btrfs_ino(ctx->inode)) {
4778+ other_ino != btrfs_ino(BTRFS_I(ctx->inode))) {
47794779 struct btrfs_key inode_key;
47804780 struct inode *other_inode;
47814781
@@ -5178,7 +5178,7 @@ static int log_new_dir_dentries(struct btrfs_trans_handle *trans, · 396 unmodified lines
51785178 btrfs_free_path(path);
51795179 return -ENOMEM;
51805180 }
5181− dir_elem->ino = btrfs_ino(start_inode);
5181+ dir_elem->ino = btrfs_ino(BTRFS_I(start_inode));
51825182 list_add_tail(&dir_elem->list, &dir_list);
51835183
51845184 while (!list_empty(&dir_list)) {
@@ -5297,7 +5297,7 @@ static int btrfs_log_all_parents(struct btrfs_trans_handle *trans, · 112 unmodified lines
52975297 struct btrfs_path *path;
52985298 struct btrfs_key key;
52995299 struct btrfs_root *root = BTRFS_I(inode)->root;
5300− const u64 ino = btrfs_ino(inode);
5300+ const u64 ino = btrfs_ino(BTRFS_I(inode));
53015301
53025302 path = btrfs_alloc_path();
53035303 if (!path)
fs/btrfs/xattr.c+5−5
@@ -47,7 +47,7 @@ ssize_t __btrfs_getxattr(struct inode *inode, const char *name, · 46 unmodified lines
4747 return -ENOMEM;
4848
4949 /* lookup the xattr by name */
50− di = btrfs_lookup_xattr(NULL, root, path, btrfs_ino(inode), name,
50+ di = btrfs_lookup_xattr(NULL, root, path, btrfs_ino(BTRFS_I(inode)), name,
5151 strlen(name), 0);
5252 if (!di) {
5353 ret = -ENODATA;
@@ -108,7 +108,7 @@ static int do_setxattr(struct btrfs_trans_handle *trans, · 54 unmodified lines
108108 path->skip_release_on_error = 1;
109109
110110 if (!value) {
111− di = btrfs_lookup_xattr(trans, root, path, btrfs_ino(inode),
111+ di = btrfs_lookup_xattr(trans, root, path, btrfs_ino(BTRFS_I(inode)),
112112 name, name_len, -1);
113113 if (!di && (flags & XATTR_REPLACE))
114114 ret = -ENODATA;
@@ -128,7 +128,7 @@ static int do_setxattr(struct btrfs_trans_handle *trans, · 13 unmodified lines
128128 */
129129 if (flags & XATTR_REPLACE) {
130130 ASSERT(inode_is_locked(inode));
131− di = btrfs_lookup_xattr(NULL, root, path, btrfs_ino(inode),
131+ di = btrfs_lookup_xattr(NULL, root, path, btrfs_ino(BTRFS_I(inode)),
132132 name, name_len, 0);
133133 if (!di)
134134 ret = -ENODATA;
@@ -140,7 +140,7 @@ static int do_setxattr(struct btrfs_trans_handle *trans, · 5 unmodified lines
140140 di = NULL;
141141 }
142142
143− ret = btrfs_insert_xattr_item(trans, root, path, btrfs_ino(inode),
143+ ret = btrfs_insert_xattr_item(trans, root, path, btrfs_ino(BTRFS_I(inode)),
144144 name, name_len, value, size);
145145 if (ret == -EOVERFLOW) {
146146 /*
@@ -278,7 +278,7 @@ ssize_t btrfs_listxattr(struct dentry *dentry, char *buffer, size_t size) · 131 unmodified lines
278278 * NOTE: we set key.offset = 0; because we want to start with the
279279 * first xattr that we find and walk forward
280280 */
281− key.objectid = btrfs_ino(inode);
281+ key.objectid = btrfs_ino(BTRFS_I(inode));
282282 key.type = BTRFS_XATTR_ITEM_KEY;
283283 key.offset = 0;
284284
include/trace/events/btrfs.h+1−1
@@ -184,7 +184,7 @@ DEFINE_EVENT(btrfs__inode, btrfs_inode_evict, · 183 unmodified lines
184184
185185 TRACE_EVENT_CONDITION(btrfs_get_extent,
186186
187− TP_PROTO(struct btrfs_root *root, struct inode *inode,
187+ TP_PROTO(struct btrfs_root *root, struct btrfs_inode *inode,
188188 struct extent_map *map),
189189
190190 TP_ARGS(root, inode, map),

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t