diff options
Diffstat (limited to 'fs/btrfs/tree-log.c')
-rw-r--r-- | fs/btrfs/tree-log.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/fs/btrfs/tree-log.c b/fs/btrfs/tree-log.c index e293ae0e18d7..8d7197a0eceb 100644 --- a/fs/btrfs/tree-log.c +++ b/fs/btrfs/tree-log.c | |||
@@ -3260,7 +3260,7 @@ static noinline int insert_dir_log_key(struct btrfs_trans_handle *trans, | |||
3260 | * to replay anything deleted before the fsync | 3260 | * to replay anything deleted before the fsync |
3261 | */ | 3261 | */ |
3262 | static noinline int log_dir_items(struct btrfs_trans_handle *trans, | 3262 | static noinline int log_dir_items(struct btrfs_trans_handle *trans, |
3263 | struct btrfs_root *root, struct inode *inode, | 3263 | struct btrfs_root *root, struct btrfs_inode *inode, |
3264 | struct btrfs_path *path, | 3264 | struct btrfs_path *path, |
3265 | struct btrfs_path *dst_path, int key_type, | 3265 | struct btrfs_path *dst_path, int key_type, |
3266 | struct btrfs_log_ctx *ctx, | 3266 | struct btrfs_log_ctx *ctx, |
@@ -3275,7 +3275,7 @@ static noinline int log_dir_items(struct btrfs_trans_handle *trans, | |||
3275 | int nritems; | 3275 | int nritems; |
3276 | u64 first_offset = min_offset; | 3276 | u64 first_offset = min_offset; |
3277 | u64 last_offset = (u64)-1; | 3277 | u64 last_offset = (u64)-1; |
3278 | u64 ino = btrfs_ino(BTRFS_I(inode)); | 3278 | u64 ino = btrfs_ino(inode); |
3279 | 3279 | ||
3280 | log = root->log_root; | 3280 | log = root->log_root; |
3281 | 3281 | ||
@@ -3464,7 +3464,7 @@ again: | |||
3464 | min_key = 0; | 3464 | min_key = 0; |
3465 | max_key = 0; | 3465 | max_key = 0; |
3466 | while (1) { | 3466 | while (1) { |
3467 | ret = log_dir_items(trans, root, inode, path, | 3467 | ret = log_dir_items(trans, root, BTRFS_I(inode), path, |
3468 | dst_path, key_type, ctx, min_key, | 3468 | dst_path, key_type, ctx, min_key, |
3469 | &max_key); | 3469 | &max_key); |
3470 | if (ret) | 3470 | if (ret) |