summaryrefslogtreecommitdiffstats
path: root/ipc/mqueue.c
diff options
context:
space:
mode:
Diffstat (limited to 'ipc/mqueue.c')
-rw-r--r--ipc/mqueue.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/ipc/mqueue.c b/ipc/mqueue.c
index 0b13ace266f2..8cbd6e6894d5 100644
--- a/ipc/mqueue.c
+++ b/ipc/mqueue.c
@@ -225,7 +225,7 @@ static struct inode *mqueue_get_inode(struct super_block *sb,
225 inode->i_mode = mode; 225 inode->i_mode = mode;
226 inode->i_uid = current_fsuid(); 226 inode->i_uid = current_fsuid();
227 inode->i_gid = current_fsgid(); 227 inode->i_gid = current_fsgid();
228 inode->i_mtime = inode->i_ctime = inode->i_atime = CURRENT_TIME; 228 inode->i_mtime = inode->i_ctime = inode->i_atime = current_time(inode);
229 229
230 if (S_ISREG(mode)) { 230 if (S_ISREG(mode)) {
231 struct mqueue_inode_info *info; 231 struct mqueue_inode_info *info;
@@ -446,7 +446,7 @@ static int mqueue_create(struct inode *dir, struct dentry *dentry,
446 446
447 put_ipc_ns(ipc_ns); 447 put_ipc_ns(ipc_ns);
448 dir->i_size += DIRENT_SIZE; 448 dir->i_size += DIRENT_SIZE;
449 dir->i_ctime = dir->i_mtime = dir->i_atime = CURRENT_TIME; 449 dir->i_ctime = dir->i_mtime = dir->i_atime = current_time(dir);
450 450
451 d_instantiate(dentry, inode); 451 d_instantiate(dentry, inode);
452 dget(dentry); 452 dget(dentry);
@@ -462,7 +462,7 @@ static int mqueue_unlink(struct inode *dir, struct dentry *dentry)
462{ 462{
463 struct inode *inode = d_inode(dentry); 463 struct inode *inode = d_inode(dentry);
464 464
465 dir->i_ctime = dir->i_mtime = dir->i_atime = CURRENT_TIME; 465 dir->i_ctime = dir->i_mtime = dir->i_atime = current_time(dir);
466 dir->i_size -= DIRENT_SIZE; 466 dir->i_size -= DIRENT_SIZE;
467 drop_nlink(inode); 467 drop_nlink(inode);
468 dput(dentry); 468 dput(dentry);
@@ -500,7 +500,7 @@ static ssize_t mqueue_read_file(struct file *filp, char __user *u_data,
500 if (ret <= 0) 500 if (ret <= 0)
501 return ret; 501 return ret;
502 502
503 file_inode(filp)->i_atime = file_inode(filp)->i_ctime = CURRENT_TIME; 503 file_inode(filp)->i_atime = file_inode(filp)->i_ctime = current_time(file_inode(filp));
504 return ret; 504 return ret;
505} 505}
506 506
@@ -1060,7 +1060,7 @@ SYSCALL_DEFINE5(mq_timedsend, mqd_t, mqdes, const char __user *, u_msg_ptr,
1060 __do_notify(info); 1060 __do_notify(info);
1061 } 1061 }
1062 inode->i_atime = inode->i_mtime = inode->i_ctime = 1062 inode->i_atime = inode->i_mtime = inode->i_ctime =
1063 CURRENT_TIME; 1063 current_time(inode);
1064 } 1064 }
1065out_unlock: 1065out_unlock:
1066 spin_unlock(&info->lock); 1066 spin_unlock(&info->lock);
@@ -1156,7 +1156,7 @@ SYSCALL_DEFINE5(mq_timedreceive, mqd_t, mqdes, char __user *, u_msg_ptr,
1156 msg_ptr = msg_get(info); 1156 msg_ptr = msg_get(info);
1157 1157
1158 inode->i_atime = inode->i_mtime = inode->i_ctime = 1158 inode->i_atime = inode->i_mtime = inode->i_ctime =
1159 CURRENT_TIME; 1159 current_time(inode);
1160 1160
1161 /* There is now free space in queue. */ 1161 /* There is now free space in queue. */
1162 pipelined_receive(&wake_q, info); 1162 pipelined_receive(&wake_q, info);
@@ -1277,7 +1277,7 @@ retry:
1277 if (u_notification == NULL) { 1277 if (u_notification == NULL) {
1278 if (info->notify_owner == task_tgid(current)) { 1278 if (info->notify_owner == task_tgid(current)) {
1279 remove_notification(info); 1279 remove_notification(info);
1280 inode->i_atime = inode->i_ctime = CURRENT_TIME; 1280 inode->i_atime = inode->i_ctime = current_time(inode);
1281 } 1281 }
1282 } else if (info->notify_owner != NULL) { 1282 } else if (info->notify_owner != NULL) {
1283 ret = -EBUSY; 1283 ret = -EBUSY;
@@ -1302,7 +1302,7 @@ retry:
1302 1302
1303 info->notify_owner = get_pid(task_tgid(current)); 1303 info->notify_owner = get_pid(task_tgid(current));
1304 info->notify_user_ns = get_user_ns(current_user_ns()); 1304 info->notify_user_ns = get_user_ns(current_user_ns());
1305 inode->i_atime = inode->i_ctime = CURRENT_TIME; 1305 inode->i_atime = inode->i_ctime = current_time(inode);
1306 } 1306 }
1307 spin_unlock(&info->lock); 1307 spin_unlock(&info->lock);
1308out_fput: 1308out_fput:
@@ -1359,7 +1359,7 @@ SYSCALL_DEFINE3(mq_getsetattr, mqd_t, mqdes,
1359 f.file->f_flags &= ~O_NONBLOCK; 1359 f.file->f_flags &= ~O_NONBLOCK;
1360 spin_unlock(&f.file->f_lock); 1360 spin_unlock(&f.file->f_lock);
1361 1361
1362 inode->i_atime = inode->i_ctime = CURRENT_TIME; 1362 inode->i_atime = inode->i_ctime = current_time(inode);
1363 } 1363 }
1364 1364
1365 spin_unlock(&info->lock); 1365 spin_unlock(&info->lock);