lkml.org 
[lkml]   [2010]   [May]   [13]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCHSET] libata: implement ->set_capacity()
Hello,

On 05/13/2010 07:40 PM, Jens Axboe wrote:
> Is there a valid case for setting the capacity less than the unlocked
> capacity? I would think the unlock/lock bool api is saner.

IDE currently is the only user (and probably has been that way the
whole time), so it is a binary thing. I have no idea why the original
interface was designed that way. Looks like it tried to be too
generic. Anyways, for the task at hand, the following should be
enough.

void (*unlock_native_capacity)(void);

This simple signalling is how the current interface is being used
anyway. If nobody objects, I'll replace ->set_capacity() with the
above.

Thanks.

--
tejun


\
 
 \ /
  Last update: 2010-05-13 20:29    [W:0.058 / U:0.104 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site