[zfs-code] A question about zfs code - dbuf related

2008-02-07 Thread jinshan.xiong
It's our Chinese New Year today, best wishes to you. Jay Matthew Ahrens wrote: > jay xiong wrote: >> I have two questions for zfs code: >> >> In dbuf_hold_imple(): >> In this piece of code, it will copy the data to the extra buffer if >> the current one is syncing into disks. My question is tha

[zfs-code] A question about zfs code - dbuf related

2008-02-05 Thread Matthew Ahrens
jay xiong wrote: > I have two questions for zfs code: > > In dbuf_hold_imple(): > In this piece of code, it will copy the data to the extra buffer if the > current one is syncing into disks. My question is that why not deferring this > data copy to dbuf_dirty, where we check the db_data_pending

[zfs-code] A question about zfs code - dbuf related

2008-02-03 Thread jay xiong
I have two questions for zfs code: In dbuf_hold_imple(): /* * If this buffer is currently syncing out, and we are are * still referencing it from db_data, we need to make a copy * of it in case we decide we want to dirty it again in this txg