diff options
author | Chris Mason <clm@fb.com> | 2017-02-28 17:35:09 -0500 |
---|---|---|
committer | Chris Mason <clm@fb.com> | 2017-02-28 17:35:09 -0500 |
commit | e9f467d028cd7d8bee2a4d6c4fb806caf8cd580b (patch) | |
tree | e0a2b8e21ed58952c13e6d1dc3646eecd1ea211e /fs/btrfs/file-item.c | |
parent | ef6ebf324216eaea95ff30da5a8e78e2a4311eba (diff) | |
parent | 20a7db8ab3f2057a518448b1728d504ffadef65e (diff) |
Merge branch 'for-chris-4.11-part2' of git://git.kernel.org/pub/scm/linux/kernel/git/kdave/linux into for-linus-4.11
Diffstat (limited to 'fs/btrfs/file-item.c')
-rw-r--r-- | fs/btrfs/file-item.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/fs/btrfs/file-item.c b/fs/btrfs/file-item.c index e35df48b4383..64fcb31d7163 100644 --- a/fs/btrfs/file-item.c +++ b/fs/btrfs/file-item.c | |||
@@ -214,7 +214,7 @@ static int __btrfs_lookup_bio_sums(struct inode *inode, struct bio *bio, | |||
214 | * read from the commit root and sidestep a nasty deadlock | 214 | * read from the commit root and sidestep a nasty deadlock |
215 | * between reading the free space cache and updating the csum tree. | 215 | * between reading the free space cache and updating the csum tree. |
216 | */ | 216 | */ |
217 | if (btrfs_is_free_space_inode(inode)) { | 217 | if (btrfs_is_free_space_inode(BTRFS_I(inode))) { |
218 | path->search_commit_root = 1; | 218 | path->search_commit_root = 1; |
219 | path->skip_locking = 1; | 219 | path->skip_locking = 1; |
220 | } | 220 | } |
@@ -930,14 +930,14 @@ fail_unlock: | |||
930 | goto out; | 930 | goto out; |
931 | } | 931 | } |
932 | 932 | ||
933 | void btrfs_extent_item_to_extent_map(struct inode *inode, | 933 | void btrfs_extent_item_to_extent_map(struct btrfs_inode *inode, |
934 | const struct btrfs_path *path, | 934 | const struct btrfs_path *path, |
935 | struct btrfs_file_extent_item *fi, | 935 | struct btrfs_file_extent_item *fi, |
936 | const bool new_inline, | 936 | const bool new_inline, |
937 | struct extent_map *em) | 937 | struct extent_map *em) |
938 | { | 938 | { |
939 | struct btrfs_fs_info *fs_info = btrfs_sb(inode->i_sb); | 939 | struct btrfs_fs_info *fs_info = btrfs_sb(inode->vfs_inode.i_sb); |
940 | struct btrfs_root *root = BTRFS_I(inode)->root; | 940 | struct btrfs_root *root = inode->root; |
941 | struct extent_buffer *leaf = path->nodes[0]; | 941 | struct extent_buffer *leaf = path->nodes[0]; |
942 | const int slot = path->slots[0]; | 942 | const int slot = path->slots[0]; |
943 | struct btrfs_key key; | 943 | struct btrfs_key key; |
@@ -1002,8 +1002,8 @@ void btrfs_extent_item_to_extent_map(struct inode *inode, | |||
1002 | } | 1002 | } |
1003 | } else { | 1003 | } else { |
1004 | btrfs_err(fs_info, | 1004 | btrfs_err(fs_info, |
1005 | "unknown file extent item type %d, inode %llu, offset %llu, root %llu", | 1005 | "unknown file extent item type %d, inode %llu, offset %llu, " |
1006 | type, btrfs_ino(BTRFS_I(inode)), extent_start, | 1006 | "root %llu", type, btrfs_ino(inode), extent_start, |
1007 | root->root_key.objectid); | 1007 | root->root_key.objectid); |
1008 | } | 1008 | } |
1009 | } | 1009 | } |