diff options
Diffstat (limited to 'fs/ocfs2')
-rw-r--r-- | fs/ocfs2/dlm/dlmdebug.c | 6 | ||||
-rw-r--r-- | fs/ocfs2/dlmfs/dlmfs.c | 3 | ||||
-rw-r--r-- | fs/ocfs2/dlmglue.c | 4 | ||||
-rw-r--r-- | fs/ocfs2/super.c | 2 |
4 files changed, 7 insertions, 8 deletions
diff --git a/fs/ocfs2/dlm/dlmdebug.c b/fs/ocfs2/dlm/dlmdebug.c index 0cd24cf54396..5efdd37dfe48 100644 --- a/fs/ocfs2/dlm/dlmdebug.c +++ b/fs/ocfs2/dlm/dlmdebug.c | |||
@@ -419,7 +419,7 @@ static loff_t debug_buffer_llseek(struct file *file, loff_t off, int whence) | |||
419 | 419 | ||
420 | static int debug_buffer_release(struct inode *inode, struct file *file) | 420 | static int debug_buffer_release(struct inode *inode, struct file *file) |
421 | { | 421 | { |
422 | struct debug_buffer *db = (struct debug_buffer *)file->private_data; | 422 | struct debug_buffer *db = file->private_data; |
423 | 423 | ||
424 | if (db) | 424 | if (db) |
425 | kfree(db->buf); | 425 | kfree(db->buf); |
@@ -715,7 +715,7 @@ static int debug_lockres_open(struct inode *inode, struct file *file) | |||
715 | goto bail; | 715 | goto bail; |
716 | } | 716 | } |
717 | 717 | ||
718 | seq = (struct seq_file *) file->private_data; | 718 | seq = file->private_data; |
719 | seq->private = dl; | 719 | seq->private = dl; |
720 | 720 | ||
721 | dlm_grab(dlm); | 721 | dlm_grab(dlm); |
@@ -731,7 +731,7 @@ bail: | |||
731 | 731 | ||
732 | static int debug_lockres_release(struct inode *inode, struct file *file) | 732 | static int debug_lockres_release(struct inode *inode, struct file *file) |
733 | { | 733 | { |
734 | struct seq_file *seq = (struct seq_file *)file->private_data; | 734 | struct seq_file *seq = file->private_data; |
735 | struct debug_lockres *dl = (struct debug_lockres *)seq->private; | 735 | struct debug_lockres *dl = (struct debug_lockres *)seq->private; |
736 | 736 | ||
737 | if (dl->dl_res) | 737 | if (dl->dl_res) |
diff --git a/fs/ocfs2/dlmfs/dlmfs.c b/fs/ocfs2/dlmfs/dlmfs.c index b83d6107a1f5..bef34d0528d5 100644 --- a/fs/ocfs2/dlmfs/dlmfs.c +++ b/fs/ocfs2/dlmfs/dlmfs.c | |||
@@ -182,8 +182,7 @@ static int dlmfs_file_release(struct inode *inode, | |||
182 | { | 182 | { |
183 | int level, status; | 183 | int level, status; |
184 | struct dlmfs_inode_private *ip = DLMFS_I(inode); | 184 | struct dlmfs_inode_private *ip = DLMFS_I(inode); |
185 | struct dlmfs_filp_private *fp = | 185 | struct dlmfs_filp_private *fp = file->private_data; |
186 | (struct dlmfs_filp_private *) file->private_data; | ||
187 | 186 | ||
188 | if (S_ISDIR(inode->i_mode)) | 187 | if (S_ISDIR(inode->i_mode)) |
189 | BUG(); | 188 | BUG(); |
diff --git a/fs/ocfs2/dlmglue.c b/fs/ocfs2/dlmglue.c index 39eb16ac5f98..5e02a893f46e 100644 --- a/fs/ocfs2/dlmglue.c +++ b/fs/ocfs2/dlmglue.c | |||
@@ -2966,7 +2966,7 @@ static const struct seq_operations ocfs2_dlm_seq_ops = { | |||
2966 | 2966 | ||
2967 | static int ocfs2_dlm_debug_release(struct inode *inode, struct file *file) | 2967 | static int ocfs2_dlm_debug_release(struct inode *inode, struct file *file) |
2968 | { | 2968 | { |
2969 | struct seq_file *seq = (struct seq_file *) file->private_data; | 2969 | struct seq_file *seq = file->private_data; |
2970 | struct ocfs2_dlm_seq_priv *priv = seq->private; | 2970 | struct ocfs2_dlm_seq_priv *priv = seq->private; |
2971 | struct ocfs2_lock_res *res = &priv->p_iter_res; | 2971 | struct ocfs2_lock_res *res = &priv->p_iter_res; |
2972 | 2972 | ||
@@ -3000,7 +3000,7 @@ static int ocfs2_dlm_debug_open(struct inode *inode, struct file *file) | |||
3000 | goto out; | 3000 | goto out; |
3001 | } | 3001 | } |
3002 | 3002 | ||
3003 | seq = (struct seq_file *) file->private_data; | 3003 | seq = file->private_data; |
3004 | seq->private = priv; | 3004 | seq->private = priv; |
3005 | 3005 | ||
3006 | ocfs2_add_lockres_tracking(&priv->p_iter_res, | 3006 | ocfs2_add_lockres_tracking(&priv->p_iter_res, |
diff --git a/fs/ocfs2/super.c b/fs/ocfs2/super.c index 0eaa929a4dbf..03a799fdd740 100644 --- a/fs/ocfs2/super.c +++ b/fs/ocfs2/super.c | |||
@@ -2472,7 +2472,7 @@ static void ocfs2_delete_osb(struct ocfs2_super *osb) | |||
2472 | kfree(osb->slot_recovery_generations); | 2472 | kfree(osb->slot_recovery_generations); |
2473 | /* FIXME | 2473 | /* FIXME |
2474 | * This belongs in journal shutdown, but because we have to | 2474 | * This belongs in journal shutdown, but because we have to |
2475 | * allocate osb->journal at the start of ocfs2_initalize_osb(), | 2475 | * allocate osb->journal at the start of ocfs2_initialize_osb(), |
2476 | * we free it here. | 2476 | * we free it here. |
2477 | */ | 2477 | */ |
2478 | kfree(osb->journal); | 2478 | kfree(osb->journal); |