aboutsummaryrefslogtreecommitdiff
path: root/lib/test_fortify/write_overflow-strcpy.c
diff options
context:
space:
mode:
authorDavid Sterba <[email protected]>2020-04-29 19:29:04 +0200
committerDavid Sterba <[email protected]>2020-05-25 11:25:32 +0200
commit870b388db02cac33eebe40a1cbeb056cf13e9f40 (patch)
tree92610e2454cfc6c76928cbaa02a678e0ec1a0227 /lib/test_fortify/write_overflow-strcpy.c
parenta31356b9e263b723d4991383efc87b71c6e87991 (diff)
btrfs: preset set/get token with first page and drop condition
All the set/get helpers first check if the token contains a cached address. After first use the address is always valid, but the extra check is done for each call. The token initialization can optimistically set it to the first extent buffer page, that we know always exists. Then the condition in all btrfs_token_*/btrfs_set_token_* can be simplified by removing the address check from the condition, but for development the assertion still makes sure it's valid. Reviewed-by: Johannes Thumshirn <[email protected]> Signed-off-by: David Sterba <[email protected]>
Diffstat (limited to 'lib/test_fortify/write_overflow-strcpy.c')
0 files changed, 0 insertions, 0 deletions