overlay: Call ovl_drop_write() earlier in ovl_dentry_open()
authorDavid Howells <dhowells@redhat.com>
Thu, 18 Jun 2015 13:32:23 +0000 (14:32 +0100)
committerAl Viro <viro@zeniv.linux.org.uk>
Fri, 19 Jun 2015 07:19:31 +0000 (03:19 -0400)
commitf25801ee4680ef1db21e15c112e6e5fe3ffe8da5
treef8e57a57d9d21f34eaf567525358da4cf0d92736
parent4ef51e8b7aaa67493ad5b36a0e5874bf6ff8b956
overlay: Call ovl_drop_write() earlier in ovl_dentry_open()

Call ovl_drop_write() earlier in ovl_dentry_open() before we call vfs_open()
as we've done the copy up for which we needed the freeze-write lock by that
point.

Signed-off-by: David Howells <dhowells@redhat.com>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
fs/overlayfs/inode.c