diff options
| author | Elena Reshetova <[email protected]> | 2017-03-03 08:55:12 +0000 |
|---|---|---|
| committer | David Sterba <[email protected]> | 2017-04-18 12:07:23 +0000 |
| commit | 490b54d6fb75f6ffd0471ec58bb38a992e2b40cd (patch) | |
| tree | a7f431ea6a0f4369ba43be8736090efd54d6998b /fs/btrfs/ordered-data.c | |
| parent | btrfs: convert btrfs_transaction.use_count from atomic_t to refcount_t (diff) | |
| download | kernel-490b54d6fb75f6ffd0471ec58bb38a992e2b40cd.tar.gz kernel-490b54d6fb75f6ffd0471ec58bb38a992e2b40cd.zip | |
btrfs: convert extent_map.refs from atomic_t to refcount_t
refcount_t type and corresponding API should be
used instead of atomic_t when the variable is used as
a reference counter. This allows to avoid accidental
refcounter overflows that might lead to use-after-free
situations.
Signed-off-by: Elena Reshetova <[email protected]>
Signed-off-by: Hans Liljestrand <[email protected]>
Signed-off-by: Kees Cook <[email protected]>
Signed-off-by: David Windsor <[email protected]>
Signed-off-by: David Sterba <[email protected]>
Diffstat (limited to 'fs/btrfs/ordered-data.c')
0 files changed, 0 insertions, 0 deletions
