lkml.org 
[lkml]   [2010]   [Aug]   [16]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRE: [PATCH] fs.h: introduce functions to get/set file->private_data
From
Date
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




\
 
 \ /
  Last update: 2010-08-17 01:53    [W:0.084 / U:0.808 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site