lkml.org 
[lkml]   [2008]   [Jan]   [24]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: [PATCH 23/49] Add buffer head related helper functions
    > On Thu, 24 Jan 2008 10:52:27 +0530 "Aneesh Kumar K.V" <aneesh.kumar@linux.vnet.ibm.com> wrote:
    > + * Returns zero on success and -EIO on error.If the input
    > + * buffer is not locked returns -EINVAL
    > + *
    > + */
    > +int bh_submit_read(struct buffer_head *bh)
    > +{
    > + if (!buffer_locked(bh))
    > + return -EINVAL;

    Is this case just catching a programming bug?

    If so, a plain old BUG_ON would be better.


    \
     
     \ /
      Last update: 2008-01-24 09:57    [W:4.023 / U:0.184 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site