diff options
author | Liu Bo <bo.li.liu@oracle.com> | 2015-06-17 16:59:58 +0800 |
---|---|---|
committer | Chris Mason <clm@fb.com> | 2015-07-01 17:17:21 -0700 |
commit | ddba1bfc2369cd0566bcfdab47599834a32d1c19 (patch) | |
tree | 81924f0b14728137202db0732582cfa5f05d6703 /lib/decompress_unlz4.c | |
parent | ad9ee2053f3f2babebc09ebc4970daa66c56c7ee (diff) | |
download | linux-stable-ddba1bfc2369cd0566bcfdab47599834a32d1c19.tar.gz linux-stable-ddba1bfc2369cd0566bcfdab47599834a32d1c19.tar.bz2 linux-stable-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 <bo.li.liu@oracle.com>
Reviewed-by: Filipe Manana <fdmanana@suse.com>
Tested-by: Filipe Manana <fdmanana@suse.com>
Signed-off-by: Chris Mason <clm@fb.com>
Diffstat (limited to 'lib/decompress_unlz4.c')
0 files changed, 0 insertions, 0 deletions