remount: fix a corner case
authorAlan Cox <alan@linux.intel.com>
Wed, 8 Nov 2017 15:53:12 +0000 (15:53 +0000)
committerAlan Cox <alan@linux.intel.com>
Wed, 8 Nov 2017 15:53:12 +0000 (15:53 +0000)
commit0f830de105dc98778a45d8f2c47e5d24e60d806c
treeabbff156a581b050f4d9627f7cca2dc5d28f0f31
parentde6977375692d00b12fdbf3960101e240279f967
remount: fix a corner case

If we have a file open that has no on disk references then irrespective of
whether we have it open for read or not we cannot make the disk read only
because we need to write to erase the file on close.
Kernel/syscall_other.c