• Joel Becker's avatar
    configfs: consistent attribute size · b23cdde4
    Joel Becker authored
    The attribute store/show code currently limits attributes at PAGE_SIZE.
    This code comes from sysfs, where it still works that way.
    
    However, PAGE_SIZE is not constant.  A 16k attribute string works on
    ia64 but not on x86.  Really a subsystem shouldn't allow different
    attribute sizes based on platform.
    
    As such, limit all simple attributes to 4k.  This works on all
    platforms, and is consistent with all current code.
    Signed-off-by: default avatarJoel Becker <joel.becker@oracle.com>
    Signed-off-by: default avatarMark Fasheh <mark.fasheh@oracle.com>
    b23cdde4
file.c 9.33 KB