Commit 3eafd8a0 authored by Linus Torvalds's avatar Linus Torvalds

Merge bk://bcrlbits.bkbits.net/linux-2.5

into penguin.transmeta.com:/home/penguin/torvalds/repositories/kernel/linux
parents 9b3af176 80f48a53
...@@ -63,7 +63,6 @@ extern void ext2_set_link(struct inode *, struct ext2_dir_entry_2 *, struct page ...@@ -63,7 +63,6 @@ extern void ext2_set_link(struct inode *, struct ext2_dir_entry_2 *, struct page
/* fsync.c */ /* fsync.c */
extern int ext2_sync_file (struct file *, struct dentry *, int); extern int ext2_sync_file (struct file *, struct dentry *, int);
extern int ext2_fsync_inode (struct inode *, int);
/* ialloc.c */ /* ialloc.c */
extern struct inode * ext2_new_inode (struct inode *, int); extern struct inode * ext2_new_inode (struct inode *, int);
......
...@@ -35,11 +35,6 @@ ...@@ -35,11 +35,6 @@
int ext2_sync_file(struct file * file, struct dentry *dentry, int datasync) int ext2_sync_file(struct file * file, struct dentry *dentry, int datasync)
{ {
struct inode *inode = dentry->d_inode; struct inode *inode = dentry->d_inode;
return ext2_fsync_inode(inode, datasync);
}
int ext2_fsync_inode(struct inode *inode, int datasync)
{
int err; int err;
err = fsync_inode_buffers(inode); err = fsync_inode_buffers(inode);
......
...@@ -291,15 +291,15 @@ static inline void __sync_one(struct inode *inode, int sync) ...@@ -291,15 +291,15 @@ static inline void __sync_one(struct inode *inode, int sync)
static inline void sync_one(struct inode *inode, int sync) static inline void sync_one(struct inode *inode, int sync)
{ {
if (inode->i_state & I_LOCK) { while (inode->i_state & I_LOCK) {
__iget(inode); __iget(inode);
spin_unlock(&inode_lock); spin_unlock(&inode_lock);
__wait_on_inode(inode); __wait_on_inode(inode);
iput(inode); iput(inode);
spin_lock(&inode_lock); spin_lock(&inode_lock);
} else {
__sync_one(inode, sync);
} }
__sync_one(inode, sync);
} }
static inline void sync_list(struct list_head *head) static inline void sync_list(struct list_head *head)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment