Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 124927
b: refs/heads/master
c: d9424b3
h: refs/heads/master
i:
  124925: 501c5b0
  124923: 974cbfd
  124919: 85eb690
  124911: 36c2bb9
  124895: d773302
  124863: 110aab5
  124799: c3cd5b0
  124671: 7acf6d8
  124415: 14a62d0
  123903: 85b7539
  122879: b3224e7
v: v3
  • Loading branch information
Christoph Hellwig authored and Niv Sardi committed Dec 4, 2008
1 parent 656773c commit b705b13
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 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: 5d765b976c3a41faf9a73718fb8cc5833990a8ef
refs/heads/master: d9424b3c4a1e96f87c6cfd4d8dd2f8d9bbb4dcc5
9 changes: 3 additions & 6 deletions trunk/fs/xfs/linux-2.6/xfs_iops.c
Original file line number Diff line number Diff line change
Expand Up @@ -367,21 +367,18 @@ xfs_vn_link(
struct inode *dir,
struct dentry *dentry)
{
struct inode *inode; /* inode of guy being linked to */
struct inode *inode = old_dentry->d_inode;
struct xfs_name name;
int error;

inode = old_dentry->d_inode;
xfs_dentry_to_name(&name, dentry);

igrab(inode);
error = xfs_link(XFS_I(dir), XFS_I(inode), &name);
if (unlikely(error)) {
iput(inode);
if (unlikely(error))
return -error;
}

xfs_iflags_set(XFS_I(dir), XFS_IMODIFIED);
atomic_inc(&inode->i_count);
d_instantiate(dentry, inode);
return 0;
}
Expand Down

0 comments on commit b705b13

Please sign in to comment.