Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 263782
b: refs/heads/master
c: 2d2422a
h: refs/heads/master
v: v3
  • Loading branch information
Christoph Hellwig authored and Alex Elder committed Sep 14, 2011
1 parent 8df686c commit 041ba10
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 6 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: 1d2ef5901483004d74947bbf78d5146c24038fe7
refs/heads/master: 2d2422aebc037095f77551119f795449d29befed
4 changes: 0 additions & 4 deletions trunk/fs/namei.c
Original file line number Diff line number Diff line change
Expand Up @@ -2616,7 +2616,6 @@ int vfs_rmdir(struct inode *dir, struct dentry *dentry)
if (!dir->i_op->rmdir)
return -EPERM;

dget(dentry);
mutex_lock(&dentry->d_inode->i_mutex);

error = -EBUSY;
Expand All @@ -2637,7 +2636,6 @@ int vfs_rmdir(struct inode *dir, struct dentry *dentry)

out:
mutex_unlock(&dentry->d_inode->i_mutex);
dput(dentry);
if (!error)
d_delete(dentry);
return error;
Expand Down Expand Up @@ -3027,7 +3025,6 @@ static int vfs_rename_dir(struct inode *old_dir, struct dentry *old_dentry,
if (error)
return error;

dget(new_dentry);
if (target)
mutex_lock(&target->i_mutex);

Expand All @@ -3048,7 +3045,6 @@ static int vfs_rename_dir(struct inode *old_dir, struct dentry *old_dentry,
out:
if (target)
mutex_unlock(&target->i_mutex);
dput(new_dentry);
if (!error)
if (!(old_dir->i_sb->s_type->fs_flags & FS_RENAME_DOES_D_MOVE))
d_move(old_dentry,new_dentry);
Expand Down
3 changes: 2 additions & 1 deletion trunk/fs/xfs/xfs_aops.c
Original file line number Diff line number Diff line change
Expand Up @@ -1300,6 +1300,7 @@ xfs_end_io_direct_write(
bool is_async)
{
struct xfs_ioend *ioend = iocb->private;
struct inode *inode = ioend->io_inode;

/*
* blockdev_direct_IO can return an error even after the I/O
Expand Down Expand Up @@ -1331,7 +1332,7 @@ xfs_end_io_direct_write(
}

/* XXX: probably should move into the real I/O completion handler */
inode_dio_done(ioend->io_inode);
inode_dio_done(inode);
}

STATIC ssize_t
Expand Down

0 comments on commit 041ba10

Please sign in to comment.