unnecessary "memset(n, 0, block_size); " in dm_btree_empty ?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

Sorry to trouble you.

I'm reading the code of persistent data, and noticed:

dm_btree_empty() -> new_block() -> dm_tm_new_block() to get a new block allocated.
And the new block is zeroed with write lock held.

"memset(n, 0, block_size);" in dm_btree_empty() seems unnecessary. Right?

Thanks,
shenghui

--
dm-devel mailing list
dm-devel@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/dm-devel



[Index of Archives]     [DM Crypt]     [Fedora Desktop]     [ATA RAID]     [Fedora Marketing]     [Fedora Packaging]     [Fedora SELinux]     [Yosemite Discussion]     [KDE Users]     [Fedora Docs]

  Powered by Linux