Home Home > GIT Browse
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenjamin LaHaise <bcrl@toomuch.toronto.redhat.com>2002-03-07 05:13:16 -0500
committerBenjamin LaHaise <bcrl@toomuch.toronto.redhat.com>2002-03-07 05:13:16 -0500
commit3a6578ca745093ff7394f136fc2619c47c491a19 (patch)
tree3d1a4a5329d1565f2761b39479bc44939682998f
parenta925c40f775a179a971bfd77de8e3035c0afc1ac (diff)
ext2 minor cleanup: ext2_fsync_inode is only used from ext2_fsync_file, so merge it
-rw-r--r--fs/ext2/ext2.h1
-rw-r--r--fs/ext2/fsync.c5
2 files changed, 0 insertions, 6 deletions
diff --git a/fs/ext2/ext2.h b/fs/ext2/ext2.h
index 3c8fd2be7ec3..54e6dfe20b02 100644
--- a/fs/ext2/ext2.h
+++ b/fs/ext2/ext2.h
@@ -63,7 +63,6 @@ extern void ext2_set_link(struct inode *, struct ext2_dir_entry_2 *, struct page
/* fsync.c */
extern int ext2_sync_file (struct file *, struct dentry *, int);
-extern int ext2_fsync_inode (struct inode *, int);
/* ialloc.c */
extern struct inode * ext2_new_inode (struct inode *, int);
diff --git a/fs/ext2/fsync.c b/fs/ext2/fsync.c
index 14c5db0d8cff..17caa2fee050 100644
--- a/fs/ext2/fsync.c
+++ b/fs/ext2/fsync.c
@@ -35,11 +35,6 @@
int ext2_sync_file(struct file * file, struct dentry *dentry, int datasync)
{
struct inode *inode = dentry->d_inode;
- return ext2_fsync_inode(inode, datasync);
-}
-
-int ext2_fsync_inode(struct inode *inode, int datasync)
-{
int err;
err = fsync_inode_buffers(inode);