aboutsummaryrefslogtreecommitdiffstats
path: root/fs/btrfs/dev-replace.c
diff options
context:
space:
mode:
authorLiu Bo <[email protected]>2015-06-17 08:59:58 +0000
committerChris Mason <[email protected]>2015-07-02 00:17:21 +0000
commitddba1bfc2369cd0566bcfdab47599834a32d1c19 (patch)
tree81924f0b14728137202db0732582cfa5f05d6703 /fs/btrfs/dev-replace.c
parentBtrfs: fix hang when failing to submit bio of directIO (diff)
downloadkernel-ddba1bfc2369cd0566bcfdab47599834a32d1c19.tar.gz
kernel-ddba1bfc2369cd0566bcfdab47599834a32d1c19.zip
Btrfs: fix warning of bytes_may_use
While running generic/019, dmesg got several warnings from btrfs_free_reserved_data_space(). Test generic/019 produces some disk failures so sumbit dio will get errors, in which case, btrfs_direct_IO() goes to the error handling and free bytes_may_use, but the problem is that bytes_may_use has been free'd during get_block(). This adds a runtime flag to show if we've gone through get_block(), if so, don't do the cleanup work. Signed-off-by: Liu Bo <[email protected]> Reviewed-by: Filipe Manana <[email protected]> Tested-by: Filipe Manana <[email protected]> Signed-off-by: Chris Mason <[email protected]>
Diffstat (limited to 'fs/btrfs/dev-replace.c')
0 files changed, 0 insertions, 0 deletions