Re: [PATCH] [CIFS]: Add clamp_length support

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi David,

Do you mean the clamp handler in netfs should return the size of data
to be allocated instead of allocating itself ?

Regards,
Rohith

On Thu, Feb 17, 2022 at 2:56 AM David Howells <dhowells@xxxxxxxxxx> wrote:
>
> Rohith Surabattula <rohiths.msft@xxxxxxxxx> wrote:
>
> > +     credits = kmalloc(sizeof(struct cifs_credits), GFP_KERNEL);
> > ...
> > +     subreq->subreq_priv = credits;
>
> Would it be better if I made it so that the netfs could specify the size of
> the netfs_read_subrequest struct to be allocated, thereby allowing it to tag
> extra data on the end?
>
> David
>



[Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux