Commit 33fa1d90 authored by Joe Perches's avatar Joe Perches Committed by Jiri Kosina

fs/ocfs2: Remove unnecessary casts of private_data

Signed-off-by: default avatarJoe Perches <joe@perches.com>
Acked-by: default avatarJoel Becker <joel.becker@oracle.com>
Signed-off-by: default avatarJiri Kosina <jkosina@suse.cz>
parent 7156fffa
...@@ -419,7 +419,7 @@ static loff_t debug_buffer_llseek(struct file *file, loff_t off, int whence) ...@@ -419,7 +419,7 @@ static loff_t debug_buffer_llseek(struct file *file, loff_t off, int whence)
static int debug_buffer_release(struct inode *inode, struct file *file) static int debug_buffer_release(struct inode *inode, struct file *file)
{ {
struct debug_buffer *db = (struct debug_buffer *)file->private_data; struct debug_buffer *db = file->private_data;
if (db) if (db)
kfree(db->buf); kfree(db->buf);
...@@ -715,7 +715,7 @@ static int debug_lockres_open(struct inode *inode, struct file *file) ...@@ -715,7 +715,7 @@ static int debug_lockres_open(struct inode *inode, struct file *file)
goto bail; goto bail;
} }
seq = (struct seq_file *) file->private_data; seq = file->private_data;
seq->private = dl; seq->private = dl;
dlm_grab(dlm); dlm_grab(dlm);
...@@ -731,7 +731,7 @@ static int debug_lockres_open(struct inode *inode, struct file *file) ...@@ -731,7 +731,7 @@ static int debug_lockres_open(struct inode *inode, struct file *file)
static int debug_lockres_release(struct inode *inode, struct file *file) static int debug_lockres_release(struct inode *inode, struct file *file)
{ {
struct seq_file *seq = (struct seq_file *)file->private_data; struct seq_file *seq = file->private_data;
struct debug_lockres *dl = (struct debug_lockres *)seq->private; struct debug_lockres *dl = (struct debug_lockres *)seq->private;
if (dl->dl_res) if (dl->dl_res)
......
...@@ -182,8 +182,7 @@ static int dlmfs_file_release(struct inode *inode, ...@@ -182,8 +182,7 @@ static int dlmfs_file_release(struct inode *inode,
{ {
int level, status; int level, status;
struct dlmfs_inode_private *ip = DLMFS_I(inode); struct dlmfs_inode_private *ip = DLMFS_I(inode);
struct dlmfs_filp_private *fp = struct dlmfs_filp_private *fp = file->private_data;
(struct dlmfs_filp_private *) file->private_data;
if (S_ISDIR(inode->i_mode)) if (S_ISDIR(inode->i_mode))
BUG(); BUG();
......
...@@ -2966,7 +2966,7 @@ static const struct seq_operations ocfs2_dlm_seq_ops = { ...@@ -2966,7 +2966,7 @@ static const struct seq_operations ocfs2_dlm_seq_ops = {
static int ocfs2_dlm_debug_release(struct inode *inode, struct file *file) static int ocfs2_dlm_debug_release(struct inode *inode, struct file *file)
{ {
struct seq_file *seq = (struct seq_file *) file->private_data; struct seq_file *seq = file->private_data;
struct ocfs2_dlm_seq_priv *priv = seq->private; struct ocfs2_dlm_seq_priv *priv = seq->private;
struct ocfs2_lock_res *res = &priv->p_iter_res; struct ocfs2_lock_res *res = &priv->p_iter_res;
...@@ -3000,7 +3000,7 @@ static int ocfs2_dlm_debug_open(struct inode *inode, struct file *file) ...@@ -3000,7 +3000,7 @@ static int ocfs2_dlm_debug_open(struct inode *inode, struct file *file)
goto out; goto out;
} }
seq = (struct seq_file *) file->private_data; seq = file->private_data;
seq->private = priv; seq->private = priv;
ocfs2_add_lockres_tracking(&priv->p_iter_res, ocfs2_add_lockres_tracking(&priv->p_iter_res,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment