[Ocfs2-tools-devel] [PATCH 2/8] Provide ocfs2_cached_inode_extend_allocation()
Jan Kara
jack at suse.cz
Wed Jul 29 02:47:02 PDT 2009
On Tue 28-07-09 14:47:44, Joel Becker wrote:
> On Mon, Jul 27, 2009 at 07:53:30PM +0200, Jan Kara wrote:
> > So far we had only ocfs2_extend_allocation() which read the inode from
> > disk. Provide also the cached variant.
> >
> > Signed-off-by: Jan Kara <jack at suse.cz>
> > ---
> > include/ocfs2/ocfs2.h | 2 +
> > libocfs2/extend_file.c | 51 ++++++++++++++++++++++++++---------------------
> > 2 files changed, 30 insertions(+), 23 deletions(-)
> >
> > diff --git a/include/ocfs2/ocfs2.h b/include/ocfs2/ocfs2.h
> > index 4dbbf43..ac16823 100644
> > --- a/include/ocfs2/ocfs2.h
> > +++ b/include/ocfs2/ocfs2.h
> > @@ -505,6 +505,8 @@ errcode_t ocfs2_delete_extent_block(ocfs2_filesys *fs, uint64_t blkno);
> > */
> > errcode_t ocfs2_extend_allocation(ocfs2_filesys *fs, uint64_t ino,
> > uint32_t new_clusters);
> > +/* Ditto for cached inode */
> > +errcode_t ocfs2_cached_inode_extend_allocation(ocfs2_cached_inode *ci, uint32_t new_clusters);
>
> Break the long line, but otherwise this patch looks good. I'm
Fixed.
> assuming you want to work on cached inodes later.
Yes.
Honza
--
Jan Kara <jack at suse.cz>
SUSE Labs, CR
More information about the Ocfs2-tools-devel
mailing list