• Z
    btrfs: fix min csum item size warnings in 32bit · 221b8318
    Zach Brown 提交于
    commit 7ca4be45 limited csum items to
    PAGE_CACHE_SIZE.  It used min() with incompatible types in 32bit which
    generates warnings:
    
    fs/btrfs/file-item.c: In function ‘btrfs_csum_file_blocks’:
    fs/btrfs/file-item.c:717: warning: comparison of distinct pointer types lacks a cast
    
    This uses min_t(u32,) to fix the warnings.  u32 seemed reasonable
    because btrfs_root->leafsize is u32 and PAGE_CACHE_SIZE is unsigned
    long.
    Signed-off-by: NZach Brown <zab@zabbo.net>
    221b8318
file-item.c 22.8 KB