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

Showing the changes to include/trace (1 of 18 files). Show all

Unified · Split

include/trace/events/btrfs.h+1−1
@@ -184,7 +184,7 @@ DEFINE_EVENT(btrfs__inode, btrfs_inode_evict, · 183 unmodified lines
184 184
185TRACE_EVENT_CONDITION(btrfs_get_extent,185TRACE_EVENT_CONDITION(btrfs_get_extent,
186 186
187 TP_PROTO(struct btrfs_root *root, struct inode *inode,187 TP_PROTO(struct btrfs_root *root, struct btrfs_inode *inode,
188 struct extent_map *map),188 struct extent_map *map),
189 189
190 TP_ARGS(root, inode, map),190 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