Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 102343
b: refs/heads/master
c: e752065
h: refs/heads/master
i:
  102341: 77bc278
  102339: a86cfb3
  102335: f98d4f8
v: v3
  • Loading branch information
Louis Rilling authored and Mark Fasheh committed Jul 14, 2008
1 parent 426e66c commit 80d3c4d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 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: 11c3b79218390a139f2d474ee1e983a672d5839a
refs/heads/master: e75206517504461778c283b942440ef312e437d5
6 changes: 5 additions & 1 deletion trunk/fs/configfs/symlink.c
Original file line number Diff line number Diff line change
Expand Up @@ -140,8 +140,12 @@ int configfs_symlink(struct inode *dir, struct dentry *dentry, const char *symna
goto out_put;

ret = type->ct_item_ops->allow_link(parent_item, target_item);
if (!ret)
if (!ret) {
ret = create_link(parent_item, target_item, dentry);
if (ret && type->ct_item_ops->drop_link)
type->ct_item_ops->drop_link(parent_item,
target_item);
}

config_item_put(target_item);
path_put(&nd.path);
Expand Down

0 comments on commit 80d3c4d

Please sign in to comment.