diff options
Diffstat (limited to 'ipc')
-rw-r--r-- | ipc/mqueue.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ipc/mqueue.c b/ipc/mqueue.c index 840f8a6fb85f..d75d0ba83360 100644 --- a/ipc/mqueue.c +++ b/ipc/mqueue.c | |||
@@ -168,7 +168,7 @@ static struct inode *mqueue_get_inode(struct super_block *sb, int mode, | |||
168 | /* all is ok */ | 168 | /* all is ok */ |
169 | info->user = get_uid(u); | 169 | info->user = get_uid(u); |
170 | } else if (S_ISDIR(mode)) { | 170 | } else if (S_ISDIR(mode)) { |
171 | inode->i_nlink++; | 171 | inc_nlink(inode); |
172 | /* Some things misbehave if size == 0 on a directory */ | 172 | /* Some things misbehave if size == 0 on a directory */ |
173 | inode->i_size = 2 * DIRENT_SIZE; | 173 | inode->i_size = 2 * DIRENT_SIZE; |
174 | inode->i_op = &mqueue_dir_inode_operations; | 174 | inode->i_op = &mqueue_dir_inode_operations; |
@@ -307,7 +307,7 @@ static int mqueue_unlink(struct inode *dir, struct dentry *dentry) | |||
307 | 307 | ||
308 | dir->i_ctime = dir->i_mtime = dir->i_atime = CURRENT_TIME; | 308 | dir->i_ctime = dir->i_mtime = dir->i_atime = CURRENT_TIME; |
309 | dir->i_size -= DIRENT_SIZE; | 309 | dir->i_size -= DIRENT_SIZE; |
310 | inode->i_nlink--; | 310 | drop_nlink(inode); |
311 | dput(dentry); | 311 | dput(dentry); |
312 | return 0; | 312 | return 0; |
313 | } | 313 | } |