diff options
Diffstat (limited to 'fs/reiserfs')
-rw-r--r-- | fs/reiserfs/namei.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/fs/reiserfs/namei.c b/fs/reiserfs/namei.c index c61710e49c62..c76d427e027b 100644 --- a/fs/reiserfs/namei.c +++ b/fs/reiserfs/namei.c | |||
@@ -20,7 +20,7 @@ | |||
20 | #include <linux/quotaops.h> | 20 | #include <linux/quotaops.h> |
21 | 21 | ||
22 | #define INC_DIR_INODE_NLINK(i) if (i->i_nlink != 1) { i->i_nlink++; if (i->i_nlink >= REISERFS_LINK_MAX) i->i_nlink=1; } | 22 | #define INC_DIR_INODE_NLINK(i) if (i->i_nlink != 1) { i->i_nlink++; if (i->i_nlink >= REISERFS_LINK_MAX) i->i_nlink=1; } |
23 | #define DEC_DIR_INODE_NLINK(i) if (i->i_nlink != 1) i->i_nlink--; | 23 | #define DEC_DIR_INODE_NLINK(i) if (i->i_nlink != 1) drop_nlink(i); |
24 | 24 | ||
25 | // directory item contains array of entry headers. This performs | 25 | // directory item contains array of entry headers. This performs |
26 | // binary search through that array | 26 | // binary search through that array |
@@ -994,7 +994,7 @@ static int reiserfs_unlink(struct inode *dir, struct dentry *dentry) | |||
994 | inode->i_nlink = 1; | 994 | inode->i_nlink = 1; |
995 | } | 995 | } |
996 | 996 | ||
997 | inode->i_nlink--; | 997 | drop_nlink(inode); |
998 | 998 | ||
999 | /* | 999 | /* |
1000 | * we schedule before doing the add_save_link call, save the link | 1000 | * we schedule before doing the add_save_link call, save the link |
@@ -1475,7 +1475,7 @@ static int reiserfs_rename(struct inode *old_dir, struct dentry *old_dentry, | |||
1475 | if (S_ISDIR(new_dentry_inode->i_mode)) { | 1475 | if (S_ISDIR(new_dentry_inode->i_mode)) { |
1476 | new_dentry_inode->i_nlink = 0; | 1476 | new_dentry_inode->i_nlink = 0; |
1477 | } else { | 1477 | } else { |
1478 | new_dentry_inode->i_nlink--; | 1478 | drop_nlink(new_dentry_inode); |
1479 | } | 1479 | } |
1480 | new_dentry_inode->i_ctime = ctime; | 1480 | new_dentry_inode->i_ctime = ctime; |
1481 | savelink = new_dentry_inode->i_nlink; | 1481 | savelink = new_dentry_inode->i_nlink; |