diff options
author | Nikolay Borisov <n.borisov.lkml@gmail.com> | 2017-01-17 17:31:37 -0500 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2017-02-14 09:50:55 -0500 |
commit | 1a93c36acdef62ef1f5dccf058328d4d5d6c0e70 (patch) | |
tree | a28a983390d0eb13f92bdc6ab210925cf43689be /fs/btrfs/tree-log.c | |
parent | 44d70e194fb2678e458964168c041d390b341fa5 (diff) |
btrfs: Make btrfs_log_all_xattrs take btrfs_inode
Signed-off-by: Nikolay Borisov <n.borisov.lkml@gmail.com>
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/btrfs/tree-log.c')
-rw-r--r-- | fs/btrfs/tree-log.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/fs/btrfs/tree-log.c b/fs/btrfs/tree-log.c index 12872bf492bd..1301c517c2f0 100644 --- a/fs/btrfs/tree-log.c +++ b/fs/btrfs/tree-log.c | |||
@@ -4277,13 +4277,13 @@ static int logged_inode_size(struct btrfs_root *log, struct btrfs_inode *inode, | |||
4277 | */ | 4277 | */ |
4278 | static int btrfs_log_all_xattrs(struct btrfs_trans_handle *trans, | 4278 | static int btrfs_log_all_xattrs(struct btrfs_trans_handle *trans, |
4279 | struct btrfs_root *root, | 4279 | struct btrfs_root *root, |
4280 | struct inode *inode, | 4280 | struct btrfs_inode *inode, |
4281 | struct btrfs_path *path, | 4281 | struct btrfs_path *path, |
4282 | struct btrfs_path *dst_path) | 4282 | struct btrfs_path *dst_path) |
4283 | { | 4283 | { |
4284 | int ret; | 4284 | int ret; |
4285 | struct btrfs_key key; | 4285 | struct btrfs_key key; |
4286 | const u64 ino = btrfs_ino(BTRFS_I(inode)); | 4286 | const u64 ino = btrfs_ino(inode); |
4287 | int ins_nr = 0; | 4287 | int ins_nr = 0; |
4288 | int start_slot = 0; | 4288 | int start_slot = 0; |
4289 | 4289 | ||
@@ -4304,7 +4304,7 @@ static int btrfs_log_all_xattrs(struct btrfs_trans_handle *trans, | |||
4304 | if (ins_nr > 0) { | 4304 | if (ins_nr > 0) { |
4305 | u64 last_extent = 0; | 4305 | u64 last_extent = 0; |
4306 | 4306 | ||
4307 | ret = copy_items(trans, BTRFS_I(inode), dst_path, path, | 4307 | ret = copy_items(trans, inode, dst_path, path, |
4308 | &last_extent, start_slot, | 4308 | &last_extent, start_slot, |
4309 | ins_nr, 1, 0); | 4309 | ins_nr, 1, 0); |
4310 | /* can't be 1, extent items aren't processed */ | 4310 | /* can't be 1, extent items aren't processed */ |
@@ -4334,7 +4334,7 @@ static int btrfs_log_all_xattrs(struct btrfs_trans_handle *trans, | |||
4334 | if (ins_nr > 0) { | 4334 | if (ins_nr > 0) { |
4335 | u64 last_extent = 0; | 4335 | u64 last_extent = 0; |
4336 | 4336 | ||
4337 | ret = copy_items(trans, BTRFS_I(inode), dst_path, path, | 4337 | ret = copy_items(trans, inode, dst_path, path, |
4338 | &last_extent, start_slot, | 4338 | &last_extent, start_slot, |
4339 | ins_nr, 1, 0); | 4339 | ins_nr, 1, 0); |
4340 | /* can't be 1, extent items aren't processed */ | 4340 | /* can't be 1, extent items aren't processed */ |
@@ -4919,7 +4919,7 @@ next_key: | |||
4919 | 4919 | ||
4920 | btrfs_release_path(path); | 4920 | btrfs_release_path(path); |
4921 | btrfs_release_path(dst_path); | 4921 | btrfs_release_path(dst_path); |
4922 | err = btrfs_log_all_xattrs(trans, root, inode, path, dst_path); | 4922 | err = btrfs_log_all_xattrs(trans, root, BTRFS_I(inode), path, dst_path); |
4923 | if (err) | 4923 | if (err) |
4924 | goto out_unlock; | 4924 | goto out_unlock; |
4925 | if (max_key.type >= BTRFS_EXTENT_DATA_KEY && !fast_search) { | 4925 | if (max_key.type >= BTRFS_EXTENT_DATA_KEY && !fast_search) { |