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 neces

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

2007-02-16 Thread Eric Van Hensbergen
On 2/16/07, Andrew Morton <[EMAIL PROTECTED]> wrote: On Fri, 16 Feb 2007 09:37:01 -0600 Eric Van Hensbergen <[EMAIL PROTECTED]> wrote: > +static int v9fs_vfs_writepage(struct page *page, struct writeback_control *wbc) > +{ > + char *buffer = NULL; > + struct address_space *mapping = pa

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

2007-02-16 Thread Andrew Morton
On Fri, 16 Feb 2007 09:37:01 -0600 Eric Van Hensbergen <[EMAIL PROTECTED]> wrote: > +static int v9fs_vfs_writepage(struct page *page, struct writeback_control > *wbc) > +{ > + char *buffer = NULL; > + struct address_space *mapping = page->mapping; > + int retval = -EIO; > + loff_

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

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 neces

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

2007-02-15 Thread Josef Sipek
On Thu, Feb 15, 2007 at 08:44:19AM -0600, Eric Van Hensbergen wrote: ... > diff --git a/fs/9p/vfs_addr.c b/fs/9p/vfs_addr.c > index bed48fa..d43d6fb 100644 > --- a/fs/9p/vfs_addr.c > +++ b/fs/9p/vfs_addr.c > @@ -6,6 +6,9 @@ > * Copyright (C) 2005 by Eric Van Hensbergen <[EMAIL PROTECTED]> > *

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

2007-02-15 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 neces

Re: [RESEND][PATCH] 9p: add write-cache support to loose cache mode

2007-02-13 Thread Andrew Morton
> On Wed, 14 Feb 2007 14:05:44 +1100 Nick Piggin <[EMAIL PROTECTED]> wrote: > > libfs.c is wrong. Nick has fixes, but they got tangled up in other stuff. > > Yeah. 1/9 in that series should be applied on its own and sent upstream. > > Need me to resend? Yes please. - To unsubscribe from this li

Re: [RESEND][PATCH] 9p: add write-cache support to loose cache mode

2007-02-13 Thread Nick Piggin
Andrew Morton wrote: On Tue, 13 Feb 2007 20:07:44 -0600 "Eric Van Hensbergen" <[EMAIL PROTECTED]> wrote: On 2/13/07, Andrew Morton <[EMAIL PROTECTED]> wrote: On Tue, 13 Feb 2007 17:55:31 -0600 Eric Van Hensbergen <[EMAIL PROTECTED]> wrote: +int v9fs_prepare_write(struct file *file, struct pag

Re: [RESEND][PATCH] 9p: add write-cache support to loose cache mode

2007-02-13 Thread Andrew Morton
> On Tue, 13 Feb 2007 20:07:44 -0600 "Eric Van Hensbergen" <[EMAIL PROTECTED]> > wrote: > On 2/13/07, Andrew Morton <[EMAIL PROTECTED]> wrote: > > > On Tue, 13 Feb 2007 17:55:31 -0600 Eric Van Hensbergen <[EMAIL > > > PROTECTED]> wrote: > > > +int v9fs_prepare_write(struct file *file, struct page

Re: [RESEND][PATCH] 9p: add write-cache support to loose cache mode

2007-02-13 Thread Eric Van Hensbergen
On 2/13/07, Andrew Morton <[EMAIL PROTECTED]> wrote: > On Tue, 13 Feb 2007 17:55:31 -0600 Eric Van Hensbergen <[EMAIL PROTECTED]> wrote: > +int v9fs_prepare_write(struct file *file, struct page *page, > +unsigned from, unsigned to) > +{ > + if (!PageUptodate(page)) { > +

Re: [RESEND][PATCH] 9p: add write-cache support to loose cache mode

2007-02-13 Thread Andrew Morton
> On Tue, 13 Feb 2007 17:55:31 -0600 Eric Van Hensbergen <[EMAIL PROTECTED]> > wrote: > +static ssize_t > +v9fs_file_write(struct file *filp, const char __user * data, > + size_t count, loff_t * offset) > +{ > + struct inode *inode = filp->f_path.dentry->d_inode; > + > + ssize_

Re: [RESEND][PATCH] 9p: add write-cache support to loose cache mode

2007-02-13 Thread Andrew Morton
> On Tue, 13 Feb 2007 17:55:31 -0600 Eric Van Hensbergen <[EMAIL PROTECTED]> > wrote: > +static int v9fs_vfs_writepage(struct page *page, struct writeback_control > *wbc) > +{ > + char *buffer = NULL; > + struct address_space *mapping = page->mapping; > + int retval = -EIO; > + lo

Re: [RESEND][PATCH] 9p: add write-cache support to loose cache mode

2007-02-13 Thread Andrew Morton
> On Tue, 13 Feb 2007 17:55:31 -0600 Eric Van Hensbergen <[EMAIL PROTECTED]> > wrote: > +int v9fs_prepare_write(struct file *file, struct page *page, > +unsigned from, unsigned to) > +{ > + if (!PageUptodate(page)) { > + if (to - from != PAGE_CACHE_SIZE) { > +

[RESEND][PATCH] 9p: add write-cache support to loose cache mode

2007-02-13 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 neces

[PATCH] 9p: add write-cache support to loose cache mode

2007-02-13 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 neces