aboutsummaryrefslogtreecommitdiffstats
path: root/fs/btrfs/dev-replace.c
diff options
context:
space:
mode:
authorHarry Wentland <[email protected]>2016-01-22 22:07:25 +0000
committerDave Airlie <[email protected]>2016-02-05 05:23:48 +0000
commit64566b5e767f9bc3161055ca1b443a51afb52aad (patch)
tree2c4c64d03f401f0f826f5abec33161155b8bb1cc /fs/btrfs/dev-replace.c
parentdrm/mst: Add range check for max_payloads during init (diff)
downloadkernel-64566b5e767f9bc3161055ca1b443a51afb52aad.tar.gz
kernel-64566b5e767f9bc3161055ca1b443a51afb52aad.zip
drm: Add drm_fixp_from_fraction and drm_fixp2int_ceil
drm_fixp_from_fraction allows us to create a fixed point directly from a fraction, rather than creating fixed point values and dividing later. This avoids overflow of our 64 bit value for large numbers. drm_fixp2int_ceil allows us to return the ceiling of our fixed point value. [airlied: squash Jordan's fix] 32-bit-build-fix: Jordan Lazare <[email protected]> Signed-off-by: Harry Wentland <[email protected]> Cc: [email protected] Reviewed-by: Alex Deucher <[email protected]> Signed-off-by: Dave Airlie <[email protected]>
Diffstat (limited to 'fs/btrfs/dev-replace.c')
0 files changed, 0 insertions, 0 deletions