[Ocfs2-devel] [PATCH 2/8] Provide ocfs2_cached_inode_extend_allocation()

Joel Becker Joel.Becker at oracle.com
Tue Jul 28 14:47:44 PDT 2009


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
assuming you want to work on cached inodes later.

Joel

-- 

Life's Little Instruction Book #313

	"Never underestimate the power of love."

Joel Becker
Principal Software Developer
Oracle
E-mail: joel.becker at oracle.com
Phone: (650) 506-8127



More information about the Ocfs2-devel mailing list