lkml.org 
[lkml]   [2005]   [Nov]   [30]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [PATCH] Add notification of page becoming writable to VMA ops [try #3]
From
Date
> 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/

\
 
 \ /
  Last update: 2005-11-30 15:45    [W:0.101 / U:0.024 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site