[sheepdog] [PATCH] sheep/http: merge the calls of sd_inode_write_vid() in oalloc

Liu Yuan namei.unix at gmail.com
Mon Dec 16 11:04:51 CET 2013


On Mon, Dec 16, 2013 at 04:18:59PM +0800, Robin Dong wrote:
> From: Robin Dong <sanbai at taobao.com>
> 
> Function sd_inode_write_vid() will write all meta-data of sd_inode to disk even
> its name is 'write_vid', to fix this confusion, we add a new function
> sd_inode_write() to do this job and just let sd_inode_write_vid() call it if the
> type of sd_inode is B-tree.
> 
> Then, we don't need to call sd_inode_write_vid() many time when alloc blocks
> in oalloc_new_finish() but just call sd_inode_write() one time after set all
> vids.
> 

Applied, thanks

Yuan



More information about the sheepdog mailing list