[PATCH 01/21] fs: Remove unused function in afs/write.c

Rashika Kheria rashika.kheria at gmail.com
Sun Feb 9 07:46:33 EST 2014


Remove unused function in afs/write.c.

This eliminates the following warning in afs/write.c:
fs/afs/write.c:749:5: warning: no previous prototype for ‘afs_page_mkwrite’ [-Wmissing-prototypes]

Signed-off-by: Rashika Kheria <rashika.kheria at gmail.com>
Reviewed-by: Josh Triplett <josh at joshtriplett.org>
---
 fs/afs/write.c |   21 ---------------------
 1 file changed, 21 deletions(-)

diff --git a/fs/afs/write.c b/fs/afs/write.c
index a890db4..2dd54b9 100644
--- a/fs/afs/write.c
+++ b/fs/afs/write.c
@@ -741,24 +741,3 @@ out:
 	mutex_unlock(&inode->i_mutex);
 	return ret;
 }
-
-/*
- * notification that a previously read-only page is about to become writable
- * - if it returns an error, the caller will deliver a bus error signal
- */
-int afs_page_mkwrite(struct vm_area_struct *vma, struct page *page)
-{
-	struct afs_vnode *vnode = AFS_FS_I(vma->vm_file->f_mapping->host);
-
-	_enter("{{%x:%u}},{%lx}",
-	       vnode->fid.vid, vnode->fid.vnode, page->index);
-
-	/* wait for the page to be written to the cache before we allow it to
-	 * be modified */
-#ifdef CONFIG_AFS_FSCACHE
-	fscache_wait_on_page_write(vnode->cache, page);
-#endif
-
-	_leave(" = 0");
-	return 0;
-}
-- 
1.7.9.5




More information about the linux-afs mailing list