Re: `f_ops' is immutable

2018-05-08 Thread Alexander Bluhm
On Tue, May 08, 2018 at 06:52:23PM +0200, Martin Pieuchot wrote: > diskmapioctl() plays some tricks to change the vnode of an open file. > It tries to be clever to avoid allocating a new `fp'. It is totally > understandable because the kernel is lacking an API to insert/remove > 'struct file *' fr

`f_ops' is immutable

2018-05-08 Thread Martin Pieuchot
diskmapioctl() plays some tricks to change the vnode of an open file. It tries to be clever to avoid allocating a new `fp'. It is totally understandable because the kernel is lacking an API to insert/remove 'struct file *' from shared data structures. But since it is not changing the type of the