Messages in this thread Patch in this message | | | Date | Sun, 9 Feb 2014 18:16:33 +0530 | From | Rashika Kheria <> | Subject | [PATCH 01/21] fs: Remove unused function in afs/write.c |
| |
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@gmail.com> Reviewed-by: Josh Triplett <josh@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 -- 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/
| |