[PATCH 07/12] vfs: do get_write_access() on upper layer of overlayfs

2016-09-16 Thread Miklos Szeredi
The problem with writecount is: we want consistent handling of it for underlying filesystems as well as overlayfs. Making sure i_writecount is correct on all layers is difficult. Instead this patch makes sure that when write access is acquired, it's always done on the underlying writable layer

[PATCH 07/12] vfs: do get_write_access() on upper layer of overlayfs

2016-09-16 Thread Miklos Szeredi
The problem with writecount is: we want consistent handling of it for underlying filesystems as well as overlayfs. Making sure i_writecount is correct on all layers is difficult. Instead this patch makes sure that when write access is acquired, it's always done on the underlying writable layer