Messages in this thread | | | Subject | RE: [PATCH] fs.h: introduce functions to get/set file->private_data | From | Joe Perches <> | Date | Mon, 16 Aug 2010 16:50:01 -0700 |
| |
On Mon, 2010-08-16 at 18:36 -0500, H Hartley Sweeten wrote: > It's just a pain trying to figure out where the file 'private_data' is being > used.
spatch (coccinelle) could help a lot with this style problem.
For instance, here's a grep equivalent for any use of (struct file) member private_data in directory fs
$ cat t.cocci @@ struct file *file; @@
* file->private_data $ spatch -very_quiet -sp_file t.cocci fs
| |