On Tue, Aug 12, 2008 at 10:18:49AM -0700, Linus Torvalds wrote:Doesn't work well for readdir(2)... you've just lost e.g. -EIO for getdents(). And if you bail out on non-zero return value from vfs_readdir(), you are back to -EINVAL on full buffer. Frankly, I'd rather keep ->readdir() instances simpler. There are far more of those, for one thing. As it is, we only have "stop"/"continue" ->readdir() has to care about... There's one more thing in that mess: a bunch of vfs_readdir() callers end up playing very sick games to make sure they get the entire directory. The trick is to find whether the damn thing has reached the end; as it is, there are instances of ->readdir() that do _not_ (e.g. call filldir only once and let the caller repeat). I'm certainly not too fond of buf->error. If you see a better interface I'd love to hear about it, but I don't think that "just return anything non-zero we'd got from callback" is going to be good. And if we go for flagday changes in ->readdir(), we'd better get it right... --
| Andrew Morton | -mm merge plans for 2.6.23 |
| Greg KH | [GIT PATCH] driver core patches against 2.6.24 |
| Bart Van Assche | Integration of SCST in the mainstream Linux kernel |
| david | Re: Dual-Licensing Linux Kernel with GPL V2 and GPL V3 |
| Jarek Poplawski | [PATCH] pkt_sched: Destroy gen estimators under rtnl_lock(). |
| Gerrit Renker | [PATCH 03/37] dccp: List management for new feature negotiation |
| Arjan van de Ven | Re: [GIT]: Networking |
| Auke Kok | [PATCH] e1000e: test MSI interrupts |
git: | |
