From patchwork Mon Feb 1 11:56:12 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "M. Mohan Kumar" X-Patchwork-Id: 76049 X-Patchwork-Delegate: ericvh@gmail.com Received: from lists.sourceforge.net (lists.sourceforge.net [216.34.181.88]) by demeter.kernel.org (8.14.3/8.14.3) with ESMTP id o11BuZ3W025768 for ; Mon, 1 Feb 2010 11:57:11 GMT Received: from localhost ([127.0.0.1] helo=sfs-ml-4.v29.ch3.sourceforge.com) by sfs-ml-4.v29.ch3.sourceforge.com with esmtp (Exim 4.69) (envelope-from ) id 1NbutG-0002fc-KO; Mon, 01 Feb 2010 11:56:26 +0000 Received: from sfi-mx-1.v28.ch3.sourceforge.com ([172.29.28.121] helo=mx.sourceforge.net) by sfs-ml-4.v29.ch3.sourceforge.com with esmtp (Exim 4.69) (envelope-from ) id 1NbutF-0002fU-ER for v9fs-developer@lists.sourceforge.net; Mon, 01 Feb 2010 11:56:25 +0000 Received-SPF: softfail (sfi-mx-1.v28.ch3.sourceforge.com: transitioning domain of in.ibm.com does not designate 122.248.162.8 as permitted sender) client-ip=122.248.162.8; envelope-from=mohan@in.ibm.com; helo=e28smtp08.in.ibm.com; Received: from e28smtp08.in.ibm.com ([122.248.162.8]) by sfi-mx-1.v28.ch3.sourceforge.com with esmtps (TLSv1:AES256-SHA:256) (Exim 4.69) id 1NbutE-0004Jx-1T for v9fs-developer@lists.sourceforge.net; Mon, 01 Feb 2010 11:56:25 +0000 Received: from d28relay01.in.ibm.com (d28relay01.in.ibm.com [9.184.220.58]) by e28smtp08.in.ibm.com (8.14.3/8.13.1) with ESMTP id o11BJD2X017124 for ; Mon, 1 Feb 2010 16:49:13 +0530 Received: from d28av05.in.ibm.com (d28av05.in.ibm.com [9.184.220.67]) by d28relay01.in.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id o11BuD4Y2535456 for ; Mon, 1 Feb 2010 17:26:13 +0530 Received: from d28av05.in.ibm.com (loopback [127.0.0.1]) by d28av05.in.ibm.com (8.14.3/8.13.1/NCO v10.0 AVout) with ESMTP id o11BuCvD017252 for ; Mon, 1 Feb 2010 22:56:13 +1100 Received: from in.ibm.com ([9.124.35.42]) by d28av05.in.ibm.com (8.14.3/8.13.1/NCO v10.0 AVin) with SMTP id o11BuCTf017249; Mon, 1 Feb 2010 22:56:12 +1100 Date: Mon, 1 Feb 2010 17:26:12 +0530 From: "M. Mohan Kumar" To: v9fs-developer@lists.sourceforge.net Message-ID: <20100201115612.GB13458@in.ibm.com> MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.5.19 (2009-01-05) X-Spam-Score: 0.7 (/) X-Spam-Report: Spam Filtering performed by mx.sourceforge.net. See http://spamassassin.org/tag/ for more details. 0.7 SPF_SOFTFAIL SPF: sender does not match SPF record (softfail) X-Headers-End: 1NbutE-0004Jx-1T Cc: ericvh@gmail.com, aneesh.kumar@linux.vnet.ibm.com Subject: [V9fs-developer] [PATCH] Include fsync support for 9p X-BeenThere: v9fs-developer@lists.sourceforge.net X-Mailman-Version: 2.1.9 Precedence: list Reply-To: mohan@in.ibm.com List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: v9fs-developer-bounces@lists.sourceforge.net X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.3 (demeter.kernel.org [140.211.167.41]); Mon, 01 Feb 2010 11:57:11 +0000 (UTC) diff --git a/fs/9p/vfs_file.c b/fs/9p/vfs_file.c index 3902bf4..223849c 100644 --- a/fs/9p/vfs_file.c +++ b/fs/9p/vfs_file.c @@ -266,6 +266,7 @@ static const struct file_operations v9fs_cached_file_operations = { .release = v9fs_dir_release, .lock = v9fs_file_lock, .mmap = generic_file_readonly_mmap, + .fsync = simple_sync_file, }; const struct file_operations v9fs_file_operations = { @@ -276,4 +277,5 @@ const struct file_operations v9fs_file_operations = { .release = v9fs_dir_release, .lock = v9fs_file_lock, .mmap = generic_file_readonly_mmap, + .fsync = simple_sync_file, };