Re: [PATCH] 9p: add write-cache support to loose cache mode (take 4)

2007-02-16 Thread Eric Van Hensbergen
On 2/16/07, Andrew Morton <[EMAIL PROTECTED]> wrote: On Fri, 16 Feb 2007 18:46:59 -0600 Eric Van Hensbergen <[EMAIL PROTECTED]> wrote: > + if(!PageUptodate(page)) { > + if (to - from != PAGE_CACHE_SIZE) { > + void *kaddr = kmap_atomic(page, KM_USER0); > +

Re: [PATCH] 9p: add write-cache support to loose cache mode (take 4)

2007-02-16 Thread Andrew Morton
On Fri, 16 Feb 2007 18:46:59 -0600 Eric Van Hensbergen <[EMAIL PROTECTED]> wrote: > Loose cache mode was added primarily to asssist exclusive, read-only > mounts (like venti) -- however, there is also a case for using loose > write cacheing in support of read/write exclusive mounts. This feature

[PATCH] 9p: add write-cache support to loose cache mode (take 4)

2007-02-16 Thread Eric Van Hensbergen
Loose cache mode was added primarily to asssist exclusive, read-only mounts (like venti) -- however, there is also a case for using loose write cacheing in support of read/write exclusive mounts. This feature is linked to the loose cache option and is disabled by default. This code adds the

[PATCH] 9p: add write-cache support to loose cache mode (take 4)

2007-02-16 Thread Eric Van Hensbergen
Loose cache mode was added primarily to asssist exclusive, read-only mounts (like venti) -- however, there is also a case for using loose write cacheing in support of read/write exclusive mounts. This feature is linked to the loose cache option and is disabled by default. This code adds the

Re: [PATCH] 9p: add write-cache support to loose cache mode (take 4)

2007-02-16 Thread Andrew Morton
On Fri, 16 Feb 2007 18:46:59 -0600 Eric Van Hensbergen [EMAIL PROTECTED] wrote: Loose cache mode was added primarily to asssist exclusive, read-only mounts (like venti) -- however, there is also a case for using loose write cacheing in support of read/write exclusive mounts. This feature is

Re: [PATCH] 9p: add write-cache support to loose cache mode (take 4)

2007-02-16 Thread Eric Van Hensbergen
On 2/16/07, Andrew Morton [EMAIL PROTECTED] wrote: On Fri, 16 Feb 2007 18:46:59 -0600 Eric Van Hensbergen [EMAIL PROTECTED] wrote: + if(!PageUptodate(page)) { + if (to - from != PAGE_CACHE_SIZE) { + void *kaddr = kmap_atomic(page, KM_USER0); +