Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 273153
b: refs/heads/master
c: 909a4cf
h: refs/heads/master
i:
  273151: 0c2669f
v: v3
  • Loading branch information
Andreas Dilger authored and Theodore Ts'o committed Oct 26, 2011
1 parent 707a4f2 commit 8cccbf9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 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: cf8039036a6e9c5f7144841925f212a957faf1aa
refs/heads/master: 909a4cf1ffe4b875c87abf38239a9bfd25167e0c
5 changes: 2 additions & 3 deletions trunk/fs/ext4/namei.c
Original file line number Diff line number Diff line change
Expand Up @@ -1706,9 +1706,8 @@ static void ext4_inc_count(handle_t *handle, struct inode *inode)
*/
static void ext4_dec_count(handle_t *handle, struct inode *inode)
{
drop_nlink(inode);
if (S_ISDIR(inode->i_mode) && inode->i_nlink == 0)
inc_nlink(inode);
if (!S_ISDIR(inode->i_mode) || inode->i_nlink > 2)
drop_nlink(inode);
}


Expand Down

0 comments on commit 8cccbf9

Please sign in to comment.