fs: fixes from testing
authorAlan Cox <alan@linux.intel.com>
Wed, 21 Feb 2018 20:24:01 +0000 (20:24 +0000)
committerAlan Cox <alan@linux.intel.com>
Wed, 21 Feb 2018 20:24:01 +0000 (20:24 +0000)
commit7953cf1a0957235fb23bef86171a2c94866c21be
treed8e39d2c775a50cf45265a9acada37773cc87ed3
parentf334bbc65202bced1aac7f9ae857f366a9792821
fs: fixes from testing

1. Don't allow rmdir .
2. Don't allow rmdir of a directory with a file in it (we stopped only subdirs)
3. Don't consider unreferenced inodes when checking if a remount is valid
4. Fix the case of

process A
cd /tmp/foo
process B
rmdir /tmp/foo
process A
ls .   (stale entry)
Kernel/syscall_other.c