diff --git a/fs/btrfs/inode.c b/fs/btrfs/inode.c index ec154f95464696cfa7df3cd6ab87ac4a0185ed03..6971bac66d9df597f151b78ade8fc1c6a234e880 100644 --- a/fs/btrfs/inode.c +++ b/fs/btrfs/inode.c @@ -1949,6 +1949,8 @@ static int btrfs_finish_ordered_io(struct btrfs_ordered_extent *ordered_extent) btrfs_abort_transaction(trans, root, ret); goto out_unlock; } + } else { + btrfs_set_inode_last_trans(trans, inode); } ret = 0; out_unlock: