Re: [PATCH v4 1/6] mm: allow drivers to prevent new writable mappings

2014-07-23 Thread Hugh Dickins
On Sun, 20 Jul 2014, David Herrmann wrote: > The i_mmap_writable field counts existing writable mappings of an > address_space. To allow drivers to prevent new writable mappings, make > this counter signed and prevent new writable mappings if it is negative. > This is modelled after i_writecount a

[PATCH v4 1/6] mm: allow drivers to prevent new writable mappings

2014-07-20 Thread David Herrmann
The i_mmap_writable field counts existing writable mappings of an address_space. To allow drivers to prevent new writable mappings, make this counter signed and prevent new writable mappings if it is negative. This is modelled after i_writecount and DENYWRITE. This will be required by the shmem-se