|
@@ -2214,7 +2214,7 @@ int btrfs_sync_file(struct file *file, loff_t start, loff_t end, int datasync)
|
|
|
}
|
|
|
trans->sync = true;
|
|
|
|
|
|
- ret = btrfs_log_dentry_safe(trans, root, dentry, start, end, &ctx);
|
|
|
+ ret = btrfs_log_dentry_safe(trans, dentry, start, end, &ctx);
|
|
|
if (ret < 0) {
|
|
|
/* Fallthrough and commit/free transaction. */
|
|
|
ret = 1;
|