sunxi: add rtl8xxxu into pcduino v3 profile
[openwrt/openwrt.git] / target / linux / generic / patches-4.4 / 051-0007-ovl-fix-workdir-creation.patch
1 From e1ff3dd1ae52cef5b5373c8cc4ad949c2c25a71c Mon Sep 17 00:00:00 2001
2 From: Miklos Szeredi <mszeredi@redhat.com>
3 Date: Mon, 5 Sep 2016 13:55:20 +0200
4 Subject: [PATCH] ovl: fix workdir creation
5
6 Workdir creation fails in latest kernel.
7
8 Fix by allowing EOPNOTSUPP as a valid return value from
9 vfs_removexattr(XATTR_NAME_POSIX_ACL_*). Upper filesystem may not support
10 ACL and still be perfectly able to support overlayfs.
11
12 Reported-by: Martin Ziegler <ziegler@uni-freiburg.de>
13 Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
14 Fixes: c11b9fdd6a61 ("ovl: remove posix_acl_default from workdir")
15 Cc: <stable@vger.kernel.org>
16 ---
17 fs/overlayfs/super.c | 4 ++--
18 1 file changed, 2 insertions(+), 2 deletions(-)
19
20 --- a/fs/overlayfs/super.c
21 +++ b/fs/overlayfs/super.c
22 @@ -794,11 +794,11 @@ retry:
23 goto out_dput;
24
25 err = vfs_removexattr(work, XATTR_NAME_POSIX_ACL_DEFAULT);
26 - if (err && err != -ENODATA)
27 + if (err && err != -ENODATA && err != -EOPNOTSUPP)
28 goto out_dput;
29
30 err = vfs_removexattr(work, XATTR_NAME_POSIX_ACL_ACCESS);
31 - if (err && err != -ENODATA)
32 + if (err && err != -ENODATA && err != -EOPNOTSUPP)
33 goto out_dput;
34
35 /* Clear any inherited mode bits */