Skip to content

Commit

Permalink
btrfs: fix btrfs_transaction_in_commit() delaying execution method
Browse files Browse the repository at this point in the history
Signed-off-by: Alexandre Frade <kernel@xanmod.org>
  • Loading branch information
xanmod committed Sep 12, 2021
1 parent 6b245a1 commit a9e39c8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fs/btrfs/delalloc-space.c
Expand Up @@ -311,7 +311,7 @@ int btrfs_delalloc_reserve_metadata(struct btrfs_inode *inode, u64 num_bytes)
flush = BTRFS_RESERVE_FLUSH_LIMIT;

if (btrfs_transaction_in_commit(fs_info))
schedule_min_hrtimeout();
schedule_timeout(1);
}

num_bytes = ALIGN(num_bytes, fs_info->sectorsize);
Expand Down

0 comments on commit a9e39c8

Please sign in to comment.