Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 147867
b: refs/heads/master
c: e1740a4
h: refs/heads/master
i:
  147865: 1788f36
  147863: b8ec2e1
v: v3
  • Loading branch information
Al Viro committed Jun 12, 2009
1 parent ba668b6 commit 0ad4391
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 67 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: b522412aeabadbb302fd4338eaabf09d10e2d29c
refs/heads/master: e1740a462ecb2eae213be15857b577cc6f6bb8b4
2 changes: 1 addition & 1 deletion trunk/fs/ext2/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

obj-$(CONFIG_EXT2_FS) += ext2.o

ext2-y := balloc.o dir.o file.o fsync.o ialloc.o inode.o \
ext2-y := balloc.o dir.o file.o ialloc.o inode.o \
ioctl.o namei.o super.o symlink.o

ext2-$(CONFIG_EXT2_FS_XATTR) += xattr.o xattr_user.o xattr_trusted.o
Expand Down
2 changes: 1 addition & 1 deletion trunk/fs/ext2/dir.c
Original file line number Diff line number Diff line change
Expand Up @@ -720,5 +720,5 @@ const struct file_operations ext2_dir_operations = {
#ifdef CONFIG_COMPAT
.compat_ioctl = ext2_compat_ioctl,
#endif
.fsync = ext2_sync_file,
.fsync = simple_fsync,
};
3 changes: 0 additions & 3 deletions trunk/fs/ext2/ext2.h
Original file line number Diff line number Diff line change
Expand Up @@ -113,9 +113,6 @@ extern int ext2_empty_dir (struct inode *);
extern struct ext2_dir_entry_2 * ext2_dotdot (struct inode *, struct page **);
extern void ext2_set_link(struct inode *, struct ext2_dir_entry_2 *, struct page *, struct inode *);

/* fsync.c */
extern int ext2_sync_file (struct file *, struct dentry *, int);

/* ialloc.c */
extern struct inode * ext2_new_inode (struct inode *, int);
extern void ext2_free_inode (struct inode *);
Expand Down
4 changes: 2 additions & 2 deletions trunk/fs/ext2/file.c
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ const struct file_operations ext2_file_operations = {
.mmap = generic_file_mmap,
.open = generic_file_open,
.release = ext2_release_file,
.fsync = ext2_sync_file,
.fsync = simple_fsync,
.splice_read = generic_file_splice_read,
.splice_write = generic_file_splice_write,
};
Expand All @@ -72,7 +72,7 @@ const struct file_operations ext2_xip_file_operations = {
.mmap = xip_file_mmap,
.open = generic_file_open,
.release = ext2_release_file,
.fsync = ext2_sync_file,
.fsync = simple_fsync,
};
#endif

Expand Down
50 changes: 0 additions & 50 deletions trunk/fs/ext2/fsync.c

This file was deleted.

11 changes: 2 additions & 9 deletions trunk/fs/ext2/inode.c
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,6 @@ MODULE_AUTHOR("Remy Card and others");
MODULE_DESCRIPTION("Second Extended Filesystem");
MODULE_LICENSE("GPL");

static int ext2_update_inode(struct inode * inode, int do_sync);

/*
* Test whether an inode is a fast symlink.
*/
Expand All @@ -66,7 +64,7 @@ void ext2_delete_inode (struct inode * inode)
goto no_delete;
EXT2_I(inode)->i_dtime = get_seconds();
mark_inode_dirty(inode);
ext2_update_inode(inode, inode_needs_sync(inode));
ext2_write_inode(inode, inode_needs_sync(inode));

inode->i_size = 0;
if (inode->i_blocks)
Expand Down Expand Up @@ -1337,7 +1335,7 @@ struct inode *ext2_iget (struct super_block *sb, unsigned long ino)
return ERR_PTR(ret);
}

static int ext2_update_inode(struct inode * inode, int do_sync)
int ext2_write_inode(struct inode *inode, int do_sync)
{
struct ext2_inode_info *ei = EXT2_I(inode);
struct super_block *sb = inode->i_sb;
Expand Down Expand Up @@ -1442,11 +1440,6 @@ static int ext2_update_inode(struct inode * inode, int do_sync)
return err;
}

int ext2_write_inode(struct inode *inode, int wait)
{
return ext2_update_inode(inode, wait);
}

int ext2_sync_inode(struct inode *inode)
{
struct writeback_control wbc = {
Expand Down

0 comments on commit 0ad4391

Please sign in to comment.