diff options
Diffstat (limited to 'fs/ocfs2/dlmfs/dlmfs.c')
| -rw-r--r-- | fs/ocfs2/dlmfs/dlmfs.c | 10 | 
1 files changed, 5 insertions, 5 deletions
| diff --git a/fs/ocfs2/dlmfs/dlmfs.c b/fs/ocfs2/dlmfs/dlmfs.c index 9c7c18c0e129..602c71f32740 100644 --- a/fs/ocfs2/dlmfs/dlmfs.c +++ b/fs/ocfs2/dlmfs/dlmfs.c @@ -71,7 +71,7 @@ struct workqueue_struct *user_dlm_worker;   * Over time, dlmfs has added some features that were not part of the   * initial ABI.  Unfortunately, some of these features are not detectable   * via standard usage.  For example, Linux's default poll always returns - * POLLIN, so there is no way for a caller of poll(2) to know when dlmfs + * EPOLLIN, so there is no way for a caller of poll(2) to know when dlmfs   * added poll support.  Instead, we provide this list of new capabilities.   *   * Capabilities is a read-only attribute.  We do it as a module parameter @@ -83,7 +83,7 @@ struct workqueue_struct *user_dlm_worker;   * interaction.   *   * Capabilities: - * - bast	: POLLIN against the file descriptor of a held lock + * - bast	: EPOLLIN against the file descriptor of a held lock   *		  signifies a bast fired on the lock.   */  #define DLMFS_CAPABILITIES "bast stackglue" @@ -220,9 +220,9 @@ static int dlmfs_file_setattr(struct dentry *dentry, struct iattr *attr)  	return 0;  } -static unsigned int dlmfs_file_poll(struct file *file, poll_table *wait) +static __poll_t dlmfs_file_poll(struct file *file, poll_table *wait)  { -	int event = 0; +	__poll_t event = 0;  	struct inode *inode = file_inode(file);  	struct dlmfs_inode_private *ip = DLMFS_I(inode); @@ -230,7 +230,7 @@ static unsigned int dlmfs_file_poll(struct file *file, poll_table *wait)  	spin_lock(&ip->ip_lockres.l_lock);  	if (ip->ip_lockres.l_flags & USER_LOCK_BLOCKED) -		event = POLLIN | POLLRDNORM; +		event = EPOLLIN | EPOLLRDNORM;  	spin_unlock(&ip->ip_lockres.l_lock);  	return event; |