aboutsummaryrefslogtreecommitdiffstats
path: root/fs/btrfs/tree-log.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/btrfs/tree-log.c')
-rw-r--r--fs/btrfs/tree-log.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/fs/btrfs/tree-log.c b/fs/btrfs/tree-log.c
index a7705173150e..20718cfebf89 100644
--- a/fs/btrfs/tree-log.c
+++ b/fs/btrfs/tree-log.c
@@ -4241,13 +4241,13 @@ process:
4241 return ret; 4241 return ret;
4242} 4242}
4243 4243
4244static int logged_inode_size(struct btrfs_root *log, struct inode *inode, 4244static int logged_inode_size(struct btrfs_root *log, struct btrfs_inode *inode,
4245 struct btrfs_path *path, u64 *size_ret) 4245 struct btrfs_path *path, u64 *size_ret)
4246{ 4246{
4247 struct btrfs_key key; 4247 struct btrfs_key key;
4248 int ret; 4248 int ret;
4249 4249
4250 key.objectid = btrfs_ino(BTRFS_I(inode)); 4250 key.objectid = btrfs_ino(inode);
4251 key.type = BTRFS_INODE_ITEM_KEY; 4251 key.type = BTRFS_INODE_ITEM_KEY;
4252 key.offset = 0; 4252 key.offset = 0;
4253 4253
@@ -4699,7 +4699,7 @@ static int btrfs_log_inode(struct btrfs_trans_handle *trans,
4699 * (zeroes), as if an expanding truncate happened, 4699 * (zeroes), as if an expanding truncate happened,
4700 * instead of getting a file of 4Kb only. 4700 * instead of getting a file of 4Kb only.
4701 */ 4701 */
4702 err = logged_inode_size(log, inode, path, 4702 err = logged_inode_size(log, BTRFS_I(inode), path,
4703 &logged_isize); 4703 &logged_isize);
4704 if (err) 4704 if (err)
4705 goto out_unlock; 4705 goto out_unlock;