Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 243182
b: refs/heads/master
c: c055e99
h: refs/heads/master
v: v3
  • Loading branch information
Al Viro authored and root committed Mar 28, 2011
1 parent df48691 commit ba81e7b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 92986796d84ef939e304099dece32572a755b280
refs/heads/master: c055e99eea6e4f614267632fac546e7896c0227b
3 changes: 3 additions & 0 deletions trunk/fs/btrfs/inode.c
Original file line number Diff line number Diff line change
Expand Up @@ -4837,6 +4837,9 @@ static int btrfs_link(struct dentry *old_dentry, struct inode *dir,
if (root->objectid != BTRFS_I(inode)->root->objectid)
return -EXDEV;

if (inode->i_nlink == ~0U)
return -EMLINK;

btrfs_inc_nlink(inode);
inode->i_ctime = CURRENT_TIME;

Expand Down

0 comments on commit ba81e7b

Please sign in to comment.