summaryrefslogtreecommitdiffstats
path: root/fs/btrfs/misc.h
Commit message (Collapse)AuthorAgeFilesLines
* btrfs: add 64bit safe helper for power of two checksDavid Sterba2019-11-181-0/+11
| | | | | | | | | As is_power_of_two takes unsigned long, it's not safe on 32bit architectures, but we could pass any u64 value in seveal places. Add a separate helper and also an alias that better expresses the purpose for which the helper is used. Signed-off-by: David Sterba <dsterba@suse.com>
* btrfs: move math functions to misc.hDavid Sterba2019-09-091-0/+17
| | | | | Reviewed-by: Johannes Thumshirn <jthumshirn@suse.de> Signed-off-by: David Sterba <dsterba@suse.com>
* btrfs: move cond_wake_up functions out of ctreeDavid Sterba2019-09-091-0/+33
The file ctree.h serves as a header for everything and has become quite bloated. Split some helpers that are generic and create a new file that should be the catch-all for code that's not btrfs-specific. Reviewed-by: Johannes Thumshirn <jthumshirn@suse.de> Signed-off-by: David Sterba <dsterba@suse.com>
OpenPOWER on IntegriCloud