[CRIU] [PATCH 6/7] inotify: Use ghost files if the watchee is a deleted file

Cyrill Gorcunov gorcunov at openvz.org
Wed Dec 5 08:33:59 EST 2012


On Wed, Dec 05, 2012 at 05:30:20PM +0400, Pavel Emelyanov wrote:
...
> >>> @@ -43,6 +44,7 @@
> >>>  struct inotify_wd_info {
> >>>  	struct list_head		list;
> >>>  	InotifyWdEntry			*iwe;
> >>> +	struct ghost_file		*gf;
> >>
> >> You don't want the whole gf here, you just need the remap.
> > 
> > I believe this will be ugly. Ghost file concept does operate with
> > struct ghost_file so I don't see a reason to grind it down. And
> > after all it's a _pointer_ not the structure which we carry here.
> 
> Please, use the file_remap in inotifies.

As you wish. I'll update.


More information about the CRIU mailing list