diff options
author | Steven Whitehouse <swhiteho@redhat.com> | 2006-10-02 08:45:08 -0400 |
---|---|---|
committer | Steven Whitehouse <swhiteho@redhat.com> | 2006-10-02 08:45:08 -0400 |
commit | 59458f40e25915a355d8b1d701425fe9f4f9ea23 (patch) | |
tree | f1c9a2934df686e36d75f759ab7313b6f0e0e5f9 /ipc | |
parent | 825f9075d74028d11d7f5932f04e1b5db3022b51 (diff) | |
parent | d834c16516d1ebec4766fc58c059bf01311e6045 (diff) |
Merge branch 'master' into gfs2
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 | } |