Re: [PATCH 23/49] Add buffer head related helper functions

2008-01-24 Thread Andrew Morton
> On Thu, 24 Jan 2008 10:52:27 +0530 "Aneesh Kumar K.V" <[EMAIL PROTECTED]> > 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)) > +

Re: [PATCH 23/49] Add buffer head related helper functions

2008-01-24 Thread Andrew Morton
On Thu, 24 Jan 2008 10:52:27 +0530 Aneesh Kumar K.V [EMAIL PROTECTED] 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

Re: [PATCH 23/49] Add buffer head related helper functions

2008-01-23 Thread Aneesh Kumar K.V
On Wed, Jan 23, 2008 at 02:06:48PM -0800, Andrew Morton wrote: > > On Mon, 21 Jan 2008 22:02:02 -0500 "Theodore Ts'o" <[EMAIL PROTECTED]> > > wrote: > > +} > > +EXPORT_SYMBOL(bh_uptodate_or_lock); > > +/** > > Missing newline. > > > + * bh_submit_read: Submit a locked buffer for reading > > + *

Re: [PATCH 23/49] Add buffer head related helper functions

2008-01-23 Thread Andrew Morton
> On Mon, 21 Jan 2008 22:02:02 -0500 "Theodore Ts'o" <[EMAIL PROTECTED]> wrote: > +} > +EXPORT_SYMBOL(bh_uptodate_or_lock); > +/** Missing newline. > + * bh_submit_read: Submit a locked buffer for reading > + * @bh: struct buffer_head > + * > + * Returns a negative error > + */ > +int

Re: [PATCH 23/49] Add buffer head related helper functions

2008-01-23 Thread Andrew Morton
On Mon, 21 Jan 2008 22:02:02 -0500 Theodore Ts'o [EMAIL PROTECTED] wrote: +} +EXPORT_SYMBOL(bh_uptodate_or_lock); +/** Missing newline. + * bh_submit_read: Submit a locked buffer for reading + * @bh: struct buffer_head + * + * Returns a negative error + */ +int bh_submit_read(struct

Re: [PATCH 23/49] Add buffer head related helper functions

2008-01-23 Thread Aneesh Kumar K.V
On Wed, Jan 23, 2008 at 02:06:48PM -0800, Andrew Morton wrote: On Mon, 21 Jan 2008 22:02:02 -0500 Theodore Ts'o [EMAIL PROTECTED] wrote: +} +EXPORT_SYMBOL(bh_uptodate_or_lock); +/** Missing newline. + * bh_submit_read: Submit a locked buffer for reading + * @bh: struct

[PATCH 23/49] Add buffer head related helper functions

2008-01-21 Thread Theodore Ts'o
From: Aneesh Kumar K.V <[EMAIL PROTECTED]> Add buffer head related helper function bh_uptodate_or_lock and bh_submit_read which can be used by file system Signed-off-by: Aneesh Kumar K.V <[EMAIL PROTECTED]> --- fs/buffer.c | 41 +

[PATCH 23/49] Add buffer head related helper functions

2008-01-21 Thread Theodore Ts'o
From: Aneesh Kumar K.V [EMAIL PROTECTED] Add buffer head related helper function bh_uptodate_or_lock and bh_submit_read which can be used by file system Signed-off-by: Aneesh Kumar K.V [EMAIL PROTECTED] --- fs/buffer.c | 41 +