Hi Jens, This looks really useful. On Wednesday 09 January 2008 00:52, Jens Axboe wrote:Get_block methods are pretty fast and you have caching in the level above you, so you might be able to get away with no cache of physical addresses at all, in which case you just need i_mutex and i_alloc_sem at get_block time. This would save a pile of code and still have the main benefit of avoiding double caching. If you use ->get_block instead of bmap, it will fill in file holes for you, but of course get_block is not exposed, and Al is likely to bark at anyone who exposes it. Instead of exposing get_block you could expose an aops method like ->bio_transfer that would hide the use of *_get_block in a library routine, just as __blockdev_direct_IO does. Chances are, there are other users besides loop that would be interested in a generic way of performing bio transfers to files. I presume you would fall back to the existing approach for any filesystem without get_block. You could handle this transparently with a default library method that does read/write. Regards, Daniel - To unsubscribe from this list: send the line "unsubscribe linux-fsdevel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
| Linus Torvalds | Linux 2.6.27-rc5 |
| Greg Kroah-Hartman | [PATCH 007/196] Chinese: add translation of stable_kernel_rules.txt |
| Kamalesh Babulal | [Build Failure] 2.6.25-rc5-mm1 Build fails with allmodconfig probe_4drives undefined |
| Gabriel C | Re: Linus 2.6.23-rc1 |
| David Woodhouse | Re: [bug?] tg3: Failed to load firmware "tigon/tg3_tso.bin" |
| David Miller | Re: [PATCH] pkt_sched: Destroy gen estimators under rtnl_lock(). |
| David Miller | [GIT]: Networking |
| Gerrit Renker | [PATCH 0/37] dccp: Feature negotiation - last call for comments |
git: | |
