Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757984AbXFNWR7 (ORCPT ); Thu, 14 Jun 2007 18:17:59 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1757723AbXFNWPz (ORCPT ); Thu, 14 Jun 2007 18:15:55 -0400 Received: from mailout.stusta.mhn.de ([141.84.69.5]:35395 "EHLO mailhub.stusta.mhn.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1757644AbXFNWPy (ORCPT ); Thu, 14 Jun 2007 18:15:54 -0400 Date: Fri, 15 Jun 2007 00:16:07 +0200 From: Adrian Bunk To: Andrew Morton , Nick Piggin Cc: linux-kernel@vger.kernel.org Subject: [-mm patch] make fs/libfs.c:simple_commit_write() static Message-ID: <20070614221607.GA3588@stusta.de> References: <20070606220313.8f7c1fab.akpm@linux-foundation.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20070606220313.8f7c1fab.akpm@linux-foundation.org> User-Agent: Mutt/1.5.15+20070412 (2007-04-11) Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1907 Lines: 48 simple_commit_write() can now become static. Signed-off-by: Adrian Bunk --- fs/libfs.c | 5 ++--- include/linux/fs.h | 2 -- 2 files changed, 2 insertions(+), 5 deletions(-) --- linux-2.6.22-rc4-mm2/include/linux/fs.h.old 2007-06-14 02:05:36.000000000 +0200 +++ linux-2.6.22-rc4-mm2/include/linux/fs.h 2007-06-14 02:05:43.000000000 +0200 @@ -1973,8 +1973,6 @@ extern int simple_readpage(struct file *file, struct page *page); extern int simple_prepare_write(struct file *file, struct page *page, unsigned offset, unsigned to); -extern int simple_commit_write(struct file *file, struct page *page, - unsigned offset, unsigned to); extern int simple_write_begin(struct file *file, struct address_space *mapping, loff_t pos, unsigned len, unsigned flags, struct page **pagep, void **fsdata); --- linux-2.6.22-rc4-mm2/fs/libfs.c.old 2007-06-14 02:05:50.000000000 +0200 +++ linux-2.6.22-rc4-mm2/fs/libfs.c 2007-06-14 02:06:16.000000000 +0200 @@ -371,8 +371,8 @@ return simple_prepare_write(file, page, from, from+len); } -int simple_commit_write(struct file *file, struct page *page, - unsigned from, unsigned to) +static int simple_commit_write(struct file *file, struct page *page, + unsigned from, unsigned to) { struct inode *inode = page->mapping->host; loff_t pos = ((loff_t)page->index << PAGE_CACHE_SHIFT) + to; @@ -686,7 +686,6 @@ EXPORT_SYMBOL(get_sb_pseudo); EXPORT_SYMBOL(simple_write_begin); EXPORT_SYMBOL(simple_write_end); -EXPORT_SYMBOL(simple_commit_write); EXPORT_SYMBOL(simple_dir_inode_operations); EXPORT_SYMBOL(simple_dir_operations); EXPORT_SYMBOL(simple_empty); - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/