A question on block_prepare_write()

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

 



Hello,

I see block_prepare_write() has local variable wait[2] to keep track of
buffer_heads which are not up-to-date. But I'm wondering how it could be
guaranteed there will be no more than 2 such buffer_heads? Is there any
restriction on the usage of the function? Using MAX_BUF_PER_PAGE instead
of the magic number 2 is just useless? I couldn't find any comments or
documentation on this.

Any of your comments would be greatly appreciated. TIA. :-)

-- 
Regards,
Namhyung Kim


--
To unsubscribe from this list: send the line "unsubscribe linux-fsdevel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Ext4 Filesystem]     [Union Filesystem]     [Filesystem Testing]     [Ceph Users]     [Ecryptfs]     [AutoFS]     [Kernel Newbies]     [Share Photos]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux Cachefs]     [Reiser Filesystem]     [Linux RAID]     [Samba]     [Device Mapper]     [CEPH Development]
  Powered by Linux