summaryrefslogtreecommitdiff
path: root/radix-tree.c
AgeCommit message (Collapse)AuthorFilesLines
2016-10-03btrfs-progs: move 3rd party kernel library modules to own directoryDavid Sterba1-849/+0
Signed-off-by: David Sterba <dsterba@suse.com>
2014-12-19btrfs-progs: Remove a unused function root_gtp_mask().Qu Wenruo1-5/+0
Fix the following clang warning when compiling btrfs-progs: radix-tree.c:78:21: warning: unused function 'root_gfp_mask' [-Wunused-function] static inline gfp_t root_gfp_mask(struct radix_tree_root *root) ^ 1 warning generated. Signed-off-by: Qu Wenruo <quwenruo@cn.fujitsu.com> Reviewed-by: Satoru Takeuchi <takeuchi_satoru@jp.fujitsu.com> Signed-off-by: David Sterba <dsterba@suse.cz>
2014-08-22btrfs-progs: Fix undefined behavior in radix-tree.c.Adam Buchbinder1-3/+3
When running with UndefinedBehaviorSanitizer, the tests produce the following error: radix-tree.c:836:30: runtime error: shift exponent 18446744073709551613 is too large for 64-bit type 'unsigned long' (That's a negative shift exponent represented as an unsigned long.) Even though the value is discarded in those cases, it's still undefined behavior; see the C99 standard, section 6.5.7, paragraph three: "If the value of the right operand is negative [...] the behavior is undefined." Signed-off-by: Adam Buchbinder <abuchbinder@google.com> Reviewed-by: Satoru Takeuchi <takeuchi_satoru@jp.fujitsu.com> Signed-off-by: David Sterba <dsterba@suse.cz>
2013-09-03btrfs-progs: make many private symbols staticZach Brown1-1/+1
Signed-off-by: Zach Brown <zab@redhat.com> Signed-off-by: David Sterba <dsterba@suse.cz> Signed-off-by: Chris Mason <chris.mason@fusionio.com>
2007-09-14Make btrfs-progs compile with -fstrict-aliasing (included in -O2) again.Jan Engelhardt1-1/+1
This is done by doing a two-step conversion (rather than a one-step). First, the variable goes from type * to void *, and then to implicitly to void **. (Not sure if this is "good practice", but it shuts up the compiler, so it seems the compiler takes into account that we are actually punning it this way.)
2007-06-12add GPLv2Chris Mason1-0/+18
2007-02-02Add backing store, memory managementChris Mason1-0/+836