任何人都可以解释为什么Linux内核的ext2的功能 int ext2_statfs (struct dentry * dentry, struct kstatfs * buf)
内存屏障()
问题smp_rmb()
和 else if (sbi->s_blocks_last != le32_to_cpu(es->s_blocks_count)) {
情况下smp_wmb()
?
这是在上游内核提交2235219b7721b8e74de6841e79240936561a2b63中添加的,它省略了对.statfs的不必要计算,但无法理解为什么添加了内存屏障。
谢谢,添加到kernel.org的链接。 – qwerty 2014-08-31 09:52:25