Commit 481b01c0 authored by Nikolay Borisov's avatar Nikolay Borisov Committed by David Sterba

btrfs: Make logged_inode_size take btrfs_inode

Signed-off-by: default avatarNikolay Borisov <n.borisov.lkml@gmail.com>
Signed-off-by: default avatarDavid Sterba <dsterba@suse.com>
parent a491abb2
...@@ -4241,13 +4241,13 @@ static int btrfs_log_changed_extents(struct btrfs_trans_handle *trans, ...@@ -4241,13 +4241,13 @@ static int btrfs_log_changed_extents(struct btrfs_trans_handle *trans,
return ret; return ret;
} }
static int logged_inode_size(struct btrfs_root *log, struct inode *inode, static int logged_inode_size(struct btrfs_root *log, struct btrfs_inode *inode,
struct btrfs_path *path, u64 *size_ret) struct btrfs_path *path, u64 *size_ret)
{ {
struct btrfs_key key; struct btrfs_key key;
int ret; int ret;
key.objectid = btrfs_ino(BTRFS_I(inode)); key.objectid = btrfs_ino(inode);
key.type = BTRFS_INODE_ITEM_KEY; key.type = BTRFS_INODE_ITEM_KEY;
key.offset = 0; key.offset = 0;
...@@ -4699,7 +4699,7 @@ static int btrfs_log_inode(struct btrfs_trans_handle *trans, ...@@ -4699,7 +4699,7 @@ static int btrfs_log_inode(struct btrfs_trans_handle *trans,
* (zeroes), as if an expanding truncate happened, * (zeroes), as if an expanding truncate happened,
* instead of getting a file of 4Kb only. * instead of getting a file of 4Kb only.
*/ */
err = logged_inode_size(log, inode, path, err = logged_inode_size(log, BTRFS_I(inode), path,
&logged_isize); &logged_isize);
if (err) if (err)
goto out_unlock; goto out_unlock;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment