From mboxrd@z Thu Jan 1 00:00:00 1970 From: Boaz Harrosh Subject: Re: [PATCH 2/2] pass writeback_control to ->write_inode Date: Tue, 12 Jan 2010 14:54:58 +0200 Message-ID: <4B4C7122.6050409@panasas.com> References: <20100111173100.GB6852@lst.de> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Cc: viro@zeniv.linux.org.uk, akpm@linux-foundation.org, linux-fsdevel@vger.kernel.org, Trond.Myklebust@netapp.com To: Christoph Hellwig Return-path: Received: from daytona.panasas.com ([67.152.220.89]:55574 "EHLO daytona.int.panasas.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751243Ab0ALMzF (ORCPT ); Tue, 12 Jan 2010 07:55:05 -0500 In-Reply-To: <20100111173100.GB6852@lst.de> Sender: linux-fsdevel-owner@vger.kernel.org List-ID: On 01/11/2010 07:31 PM, Christoph Hellwig wrote: > Index: linux-2.6/fs/exofs/exofs.h > =================================================================== > --- linux-2.6.orig/fs/exofs/exofs.h 2010-01-11 15:53:03.000000000 +0100 > +++ linux-2.6/fs/exofs/exofs.h 2010-01-11 16:12:12.278005468 +0100 > @@ -226,7 +226,7 @@ int exofs_write_begin(struct file *file, > struct page **pagep, void **fsdata); > extern struct inode *exofs_iget(struct super_block *, unsigned long); > struct inode *exofs_new_inode(struct inode *, int); > -extern int exofs_write_inode(struct inode *, int); > +extern int exofs_write_inode(struct inode *, struct writeback_control *wbc); > extern void exofs_delete_inode(struct inode *); > > /* dir.c: */ > Index: linux-2.6/fs/exofs/inode.c > =================================================================== > --- linux-2.6.orig/fs/exofs/inode.c 2010-01-11 15:53:03.000000000 +0100 > +++ linux-2.6/fs/exofs/inode.c 2010-01-11 16:12:12.280004047 +0100 > @@ -1238,9 +1238,9 @@ out: > return ret; > } > > -int exofs_write_inode(struct inode *inode, int wait) > +int exofs_write_inode(struct inode *inode, struct writeback_control *wbc) > { > - return exofs_update_inode(inode, wait); > + return exofs_update_inode(inode, wbc->sync_mode == WB_SYNC_ALL); > } > > /* ACK-by: Boaz Harrosh