diff options
author | Ralf Baechle <ralf@linux-mips.org> | 2000-04-28 01:09:25 +0000 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2000-04-28 01:09:25 +0000 |
commit | b9ba7aeb165cffecdffb60aec8c3fa8d590d9ca9 (patch) | |
tree | 42d07b0c7246ae2536a702e7c5de9e2732341116 /fs/sysv | |
parent | 7406b0a326f2d70ade2671c37d1beef62249db97 (diff) |
Merge with 2.3.99-pre6.
Diffstat (limited to 'fs/sysv')
-rw-r--r-- | fs/sysv/inode.c | 5 | ||||
-rw-r--r-- | fs/sysv/namei.c | 7 |
2 files changed, 2 insertions, 10 deletions
diff --git a/fs/sysv/inode.c b/fs/sysv/inode.c index b6396ff04..bdb65a005 100644 --- a/fs/sysv/inode.c +++ b/fs/sysv/inode.c @@ -516,7 +516,6 @@ static struct super_block *sysv_read_super(struct super_block *sb, /* This is only called on sync() and umount(), when s_dirt=1. */ static void sysv_write_super(struct super_block *sb) { - lock_super(sb); if (buffer_dirty(sb->sv_bh1) || buffer_dirty(sb->sv_bh2)) { /* If we are going to write out the super block, then attach current time stamp. @@ -534,7 +533,6 @@ static void sysv_write_super(struct super_block *sb) mark_buffer_dirty(sb->sv_bh2, 1); } sb->s_dirt = 0; - unlock_super(sb); } static void sysv_put_super(struct super_block *sb) @@ -941,7 +939,7 @@ struct buffer_head *sysv_file_bread(struct inode *inode, int block, int create) return NULL; } -static int sysv_writepage(struct dentry *dentry, struct page *page) +static int sysv_writepage(struct file *file, struct dentry *dentry, struct page *page) { return block_write_full_page(page,sysv_get_block); } @@ -960,6 +958,7 @@ static int sysv_bmap(struct address_space *mapping, long block) struct address_space_operations sysv_aops = { readpage: sysv_readpage, writepage: sysv_writepage, + sync_page: block_sync_page, prepare_write: sysv_prepare_write, commit_write: generic_commit_write, bmap: sysv_bmap diff --git a/fs/sysv/namei.c b/fs/sysv/namei.c index 6a7fbf34b..0abffaac6 100644 --- a/fs/sysv/namei.c +++ b/fs/sysv/namei.c @@ -389,10 +389,6 @@ static int sysv_rmdir(struct inode * dir, struct dentry * dentry) retval = -ENOTEMPTY; goto end_rmdir; } - if (!d_unhashed(dentry)) { - retval = -EBUSY; - goto end_rmdir; - } if (inode->i_nlink != 2) printk("empty directory has nlink!=2 (%d)\n", inode->i_nlink); de->inode = 0; @@ -552,9 +548,6 @@ static int sysv_rename(struct inode * old_dir, struct dentry * old_dentry, } if (S_ISDIR(old_inode->i_mode)) { if (new_inode) { - retval = -EBUSY; - if (!d_unhashed(new_dentry)) - goto end_rename; retval = -ENOTEMPTY; if (!empty_dir(new_inode)) goto end_rename; |