Whamcloud - gitweb
git://git.whamcloud.com
/
fs
/
lustre-release.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
LU-9679 lustre: avoid cast of file->private_data
[fs/lustre-release.git]
/
lustre
/
obdclass
/
lu_ref.c
diff --git
a/lustre/obdclass/lu_ref.c
b/lustre/obdclass/lu_ref.c
index
e0a7579
..
cf674a9
100644
(file)
--- a/
lustre/obdclass/lu_ref.c
+++ b/
lustre/obdclass/lu_ref.c
@@
-395,7
+395,8
@@
static int lu_ref_seq_open(struct inode *inode, struct file *file)
static int lu_ref_seq_release(struct inode *inode, struct file *file)
{
static int lu_ref_seq_release(struct inode *inode, struct file *file)
{
- struct lu_ref *ref = ((struct seq_file *)file->private_data)->private;
+ struct seq_file *m = file->private_data;
+ struct lu_ref *ref = m->private;
spin_lock(&lu_ref_refs_guard);
list_del_init(&ref->lf_linkage);
spin_lock(&lu_ref_refs_guard);
list_del_init(&ref->lf_linkage);