Re: [Devel] [PATCH] inotify: Extend ioctl to allow to request id of new watch descriptor

2018-02-14 Thread Kirill Tkhai
https://jira.sw.ru/browse/PSBM-81411 On 14.02.2018 14:34, Kirill Tkhai wrote: > [This patch is accepted in ms and is going to main tree. > As there is no idr_set_cursor() in 3.10 I've directly > used data->idr.cur on port]. > > Watch descriptor is id of the watch created by

[Devel] [PATCH] inotify: Extend ioctl to allow to request id of new watch descriptor

2018-02-14 Thread Kirill Tkhai
[This patch is accepted in ms and is going to main tree. As there is no idr_set_cursor() in 3.10 I've directly used data->idr.cur on port]. Watch descriptor is id of the watch created by inotify_add_watch(). It is allocated in inotify_add_to_idr(), and takes the numbers starting from 1. Every