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