aboutsummaryrefslogtreecommitdiff
path: root/drivers/usb/cdns3/cdns3-debug.h
diff options
context:
space:
mode:
authorEric Biggers <[email protected]>2019-12-31 12:04:38 -0600
committerTheodore Ts'o <[email protected]>2020-01-17 16:24:54 -0500
commit9b02e4987ab092caed8f3bccdacaef9acf9015dd (patch)
tree7b28f65ccfc3d875ff086079e13370332c6120d8 /drivers/usb/cdns3/cdns3-debug.h
parentdd6683e6efad2339894575da46bc519646e37c24 (diff)
ext4: clean up len and offset checks in ext4_fallocate()
- Fix some comments. - Consistently access i_size directly rather than using i_size_read(), since in all relevant cases we're under inode_lock(). - Simplify the alignment checks by using the IS_ALIGNED() macro. - In ext4_insert_range(), do the check against s_maxbytes in a way that is safe against signed overflow. (This doesn't currently matter for ext4 due to ext4's limited max file size, but this is something other filesystems have gotten wrong. We might as well do it safely.) Signed-off-by: Eric Biggers <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Theodore Ts'o <[email protected]> Reviewed-by: Ritesh Harjani <[email protected]> Reviewed-by: Jan Kara <[email protected]>
Diffstat (limited to 'drivers/usb/cdns3/cdns3-debug.h')
0 files changed, 0 insertions, 0 deletions