aboutsummaryrefslogtreecommitdiffstats
path: root/fs/btrfs/tree-log.c
diff options
context:
space:
mode:
authorNikolay Borisov <n.borisov.lkml@gmail.com>2017-01-17 17:31:34 -0500
committerDavid Sterba <dsterba@suse.com>2017-02-14 09:50:54 -0500
commit481b01c0d3cbbca7a97f140286738a3e02ac9d4c (patch)
treee4b98cadae08c0dc988f03fadcd7964957bd91b3 /fs/btrfs/tree-log.c
parenta491abb2e730955df1620165a193678fd775c2d6 (diff)
btrfs: Make logged_inode_size 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.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;