From: Manish Katiyar Subject: [PATCH] : Remove unused variable vnode from fs/afs/file.c Date: Tue, 27 Jan 2009 15:36:57 +0530 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: mkatiyar@gmail.com To: dhowells@redhat.com, linux-fsdevel@vger.kernel.org, linux-afs@lists.infradead.org Return-path: Received: from ti-out-0910.google.com ([209.85.142.184]:41760 "EHLO ti-out-0910.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752056AbZA0KG7 (ORCPT ); Tue, 27 Jan 2009 05:06:59 -0500 Received: by ti-out-0910.google.com with SMTP id b6so3386226tic.23 for ; Tue, 27 Jan 2009 02:06:57 -0800 (PST) Sender: linux-fsdevel-owner@vger.kernel.org List-ID: Below patch fixes the following compilation warning : fs/afs/file.c:292: warning: unused variable 'vnode' Signed-off-by : Manish Katiyar --- fs/afs/file.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/fs/afs/file.c b/fs/afs/file.c index ad12c24..aeb6cdd 100644 --- a/fs/afs/file.c +++ b/fs/afs/file.c @@ -289,7 +289,6 @@ static int afs_launder_page(struct page *page) static void afs_invalidatepage(struct page *page, unsigned long offset) { struct afs_writeback *wb = (struct afs_writeback *) page_private(page); - struct afs_vnode *vnode = AFS_FS_I(page->mapping->host); _enter("{%lu},%lu", page->index, offset); @@ -299,6 +298,7 @@ static void afs_invalidatepage(struct page *page, unsigned long offset) if (offset == 0) { #ifdef CONFIG_AFS_FSCACHE if (PageFsCache(page)) { + struct afs_vnode *vnode = AFS_FS_I(page->mapping->host); wait_on_page_fscache_write(page); fscache_uncache_page(vnode->cache, page); ClearPageFsCache(page); -- 1.5.4.3 Thanks - Manish