Messages in this thread | | | Subject | Re: [PATCH] Add notification of page becoming writable to VMA ops [try #3] | From | Miklos Szeredi <> | Date | Wed, 30 Nov 2005 15:40:46 +0100 |
| |
> The attached patch adds a new VMA operation to notify a filesystem or other > driver about the MMU generating a fault because userspace attempted to write > to a page mapped through a read-only PTE. > > This facility permits the filesystem or driver to: > > (*) Implement storage allocation/reservation on attempted write, and so to > deal with problems such as ENOSPC more gracefully (perhaps by generating > SIGBUS). > > (*) Delay making the page writable until the contents have been written to a > backing cache. This is useful for NFS/AFS when using FS-Cache/CacheFS. > It permits the filesystem to have some guarantee about the state of the > cache.
(*) account and limit number of dirty pages
This is one piece of the puzze needed to make shared writable mapping work safely in FUSE.
> Updated to 2.6.14-git14.
But doesn't apply against 2.6.15-rc3 or -rc3-mm1.
Miklos - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |