lkml.org 
[lkml]   [2014]   [Sep]   [1]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: [PATCH] fs: replace int param with size_t for seq_open_private()


    On 01/09/14 16:36, Al Viro wrote:
    > On Mon, Sep 01, 2014 at 02:17:08PM +0100, Rob Jones wrote:
    >
    >> void *__seq_open_private(struct file *f, const struct seq_operations *ops,
    >> - int psize)
    >> + size_t psize)
    >
    > <sarcasm>
    > It is a horrible limitation to impose, indeed. Why, a lousy
    > 2 gigabytes per line in procfs file - that's intolerable...
    > </sarcasm>
    >

    <shrug>

    Consistency?

    kmalloc() expects a size_t and I haven't heard anyone whingeing about that.

    Ultimately, this function calls kmalloc().

    >

    --
    Rob Jones
    Codethink Ltd
    mailto:rob.jones@codethink.co.uk
    tel:+44 161 236 5575


    \
     
     \ /
      Last update: 2014-09-01 18:21    [W:3.275 / U:0.300 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site