From: Anna Schumaker Date: Mon, 13 Jul 2015 18:01:32 +0000 (-0400) Subject: NFS: Rename nfs_commit_unstable_pages() to nfs_write_inode() X-Git-Tag: v4.3-rc1~64^2~63 X-Git-Url: https://asedeno.scripts.mit.edu/gitweb/?a=commitdiff_plain;h=ae09c31f66cc673bb8c64a5dbfdc04ab67f66d7e;p=linux.git NFS: Rename nfs_commit_unstable_pages() to nfs_write_inode() All nfs_write_inode() does is pass its arguments to nfs_commit_unstable_pages(). Let's cut out the middle man and have nfs_write_pages() do the work directly. Signed-off-by: Anna Schumaker Signed-off-by: Trond Myklebust --- diff --git a/fs/nfs/write.c b/fs/nfs/write.c index fdee9270ca15..388f48079c43 100644 --- a/fs/nfs/write.c +++ b/fs/nfs/write.c @@ -1812,7 +1812,7 @@ int nfs_commit_inode(struct inode *inode, int how) return res; } -static int nfs_commit_unstable_pages(struct inode *inode, struct writeback_control *wbc) +int nfs_write_inode(struct inode *inode, struct writeback_control *wbc) { struct nfs_inode *nfsi = NFS_I(inode); int flags = FLUSH_SYNC; @@ -1847,11 +1847,6 @@ static int nfs_commit_unstable_pages(struct inode *inode, struct writeback_contr __mark_inode_dirty(inode, I_DIRTY_DATASYNC); return ret; } - -int nfs_write_inode(struct inode *inode, struct writeback_control *wbc) -{ - return nfs_commit_unstable_pages(inode, wbc); -} EXPORT_SYMBOL_GPL(nfs_write_inode); /*