OSDN Git Service

ovl: take mnt_want_write() for work/index dir setup
authorAmir Goldstein <amir73il@gmail.com>
Wed, 3 Jan 2018 16:54:41 +0000 (18:54 +0200)
committerMiklos Szeredi <mszeredi@redhat.com>
Fri, 19 Jan 2018 16:43:24 +0000 (17:43 +0100)
commit2ba9d57e65044859f7ff133bcb0a902769bf3bc6
tree10a6d9e01229c58f424b48806361b506bb8de13d
parentf81678173ce25a1c7e1570a328dfba50b5d872eb
ovl: take mnt_want_write() for work/index dir setup

There are several write operations on upper fs not covered by
mnt_want_write():

- test set/remove OPAQUE xattr
- test create O_TMPFILE
- set ORIGIN xattr in ovl_verify_origin()
- cleanup of index entries in ovl_indexdir_cleanup()

Some of these go way back, but this patch only applies over the
v4.14 re-factoring of ovl_fill_super().

Cc: <stable@vger.kernel.org> #v4.14
Signed-off-by: Amir Goldstein <amir73il@gmail.com>
Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
fs/overlayfs/super.c