diff options
Diffstat (limited to 'ipc/mqueue.c')
| -rw-r--r-- | ipc/mqueue.c | 32 | 
1 files changed, 16 insertions, 16 deletions
diff --git a/ipc/mqueue.c b/ipc/mqueue.c index ae1996d3c53..4fcf39af177 100644 --- a/ipc/mqueue.c +++ b/ipc/mqueue.c @@ -6,7 +6,7 @@   *   * Spinlocks:               Mohamed Abbas           (abbas.mohamed@intel.com)   * Lockless receive & send, fd based notify: - * 			    Manfred Spraul	    (manfred@colorfullife.com) + *			    Manfred Spraul	    (manfred@colorfullife.com)   *   * Audit:                   George Wilson           (ltcgcw@us.ibm.com)   * @@ -73,7 +73,7 @@ struct mqueue_inode_info {  	struct mq_attr attr;  	struct sigevent notify; -	struct pid* notify_owner; +	struct pid *notify_owner;  	struct user_namespace *notify_user_ns;  	struct user_struct *user;	/* user who created, for accounting */  	struct sock *notify_sock; @@ -92,7 +92,7 @@ static void remove_notification(struct mqueue_inode_info *info);  static struct kmem_cache *mqueue_inode_cachep; -static struct ctl_table_header * mq_sysctl_table; +static struct ctl_table_header *mq_sysctl_table;  static inline struct mqueue_inode_info *MQUEUE_I(struct inode *inode)  { @@ -433,9 +433,9 @@ static int mqueue_create(struct inode *dir, struct dentry *dentry,  		error = -EACCES;  		goto out_unlock;  	} -	if (ipc_ns->mq_queues_count >= HARD_QUEUESMAX || -	    (ipc_ns->mq_queues_count >= ipc_ns->mq_queues_max && -	     !capable(CAP_SYS_RESOURCE))) { + +	if (ipc_ns->mq_queues_count >= ipc_ns->mq_queues_max && +	    !capable(CAP_SYS_RESOURCE)) {  		error = -ENOSPC;  		goto out_unlock;  	} @@ -466,13 +466,13 @@ out_unlock:  static int mqueue_unlink(struct inode *dir, struct dentry *dentry)  { -  	struct inode *inode = dentry->d_inode; +	struct inode *inode = dentry->d_inode;  	dir->i_ctime = dir->i_mtime = dir->i_atime = CURRENT_TIME;  	dir->i_size -= DIRENT_SIZE; -  	drop_nlink(inode); -  	dput(dentry); -  	return 0; +	drop_nlink(inode); +	dput(dentry); +	return 0;  }  /* @@ -622,7 +622,7 @@ static struct ext_wait_queue *wq_get_first_waiter(  static inline void set_cookie(struct sk_buff *skb, char code)  { -	((char*)skb->data)[NOTIFY_COOKIE_LEN-1] = code; +	((char *)skb->data)[NOTIFY_COOKIE_LEN-1] = code;  }  /* @@ -886,7 +886,7 @@ SYSCALL_DEFINE1(mq_unlink, const char __user *, u_name)  		err = -ENOENT;  	} else {  		ihold(inode); -		err = vfs_unlink(dentry->d_parent->d_inode, dentry); +		err = vfs_unlink(dentry->d_parent->d_inode, dentry, NULL);  	}  	dput(dentry); @@ -1303,11 +1303,11 @@ retry:  out_fput:  	fdput(f);  out: -	if (sock) { +	if (sock)  		netlink_detachskb(sock, nc); -	} else if (nc) { +	else if (nc)  		dev_kfree_skb(nc); -	} +  	return ret;  } @@ -1459,4 +1459,4 @@ out_sysctl:  	return error;  } -__initcall(init_mqueue_fs); +device_initcall(init_mqueue_fs);  | 
