Below patch fixes the following compilation warning : fs/afs/file.c:292: warning: unused variable 'vnode' Signed-off-by : Manish Katiyar <mkatiyar@xxxxxxxxx> --- 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 -- To unsubscribe from this list: send the line "unsubscribe linux-fsdevel" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html