Loading fs/overlayfs/copy_up.c +1 −1 Original line number Diff line number Diff line Loading @@ -364,7 +364,7 @@ static int ovl_set_upper_fh(struct dentry *upper, struct dentry *index) if (IS_ERR(fh)) return PTR_ERR(fh); err = ovl_do_setxattr(index, OVL_XATTR_UPPER, fh->buf, fh->fb.len, 0); err = ovl_do_setxattr(index, OVL_XATTR_UPPER, fh->buf, fh->fb.len); kfree(fh); return err; Loading fs/overlayfs/inode.c +1 −1 Original line number Diff line number Diff line Loading @@ -723,7 +723,7 @@ static int ovl_set_nlink_common(struct dentry *dentry, return -EIO; return ovl_do_setxattr(ovl_dentry_upper(dentry), OVL_XATTR_NLINK, buf, len, 0); OVL_XATTR_NLINK, buf, len); } int ovl_set_nlink_upper(struct dentry *dentry) Loading fs/overlayfs/namei.c +1 −1 Original line number Diff line number Diff line Loading @@ -456,7 +456,7 @@ int ovl_verify_set_fh(struct dentry *dentry, const char *name, err = ovl_verify_fh(dentry, name, fh); if (set && err == -ENODATA) err = ovl_do_setxattr(dentry, name, fh->buf, fh->fb.len, 0); err = ovl_do_setxattr(dentry, name, fh->buf, fh->fb.len); if (err) goto fail; Loading fs/overlayfs/overlayfs.h +4 −4 Original line number Diff line number Diff line Loading @@ -177,11 +177,11 @@ static inline ssize_t ovl_do_getxattr(struct dentry *dentry, const char *name, } static inline int ovl_do_setxattr(struct dentry *dentry, const char *name, const void *value, size_t size, int flags) const void *value, size_t size) { int err = vfs_setxattr(dentry, name, value, size, flags); pr_debug("setxattr(%pd2, \"%s\", \"%*pE\", %zu, 0x%x) = %i\n", dentry, name, min((int)size, 48), value, size, flags, err); int err = vfs_setxattr(dentry, name, value, size, 0); pr_debug("setxattr(%pd2, \"%s\", \"%*pE\", %zu, 0) = %i\n", dentry, name, min((int)size, 48), value, size, err); return err; } Loading fs/overlayfs/super.c +1 −1 Original line number Diff line number Diff line Loading @@ -1319,7 +1319,7 @@ static int ovl_make_workdir(struct super_block *sb, struct ovl_fs *ofs, /* * Check if upper/work fs supports trusted.overlay.* xattr */ err = ovl_do_setxattr(ofs->workdir, OVL_XATTR_OPAQUE, "0", 1, 0); err = ovl_do_setxattr(ofs->workdir, OVL_XATTR_OPAQUE, "0", 1); if (err) { ofs->noxattr = true; ofs->config.index = false; Loading Loading
fs/overlayfs/copy_up.c +1 −1 Original line number Diff line number Diff line Loading @@ -364,7 +364,7 @@ static int ovl_set_upper_fh(struct dentry *upper, struct dentry *index) if (IS_ERR(fh)) return PTR_ERR(fh); err = ovl_do_setxattr(index, OVL_XATTR_UPPER, fh->buf, fh->fb.len, 0); err = ovl_do_setxattr(index, OVL_XATTR_UPPER, fh->buf, fh->fb.len); kfree(fh); return err; Loading
fs/overlayfs/inode.c +1 −1 Original line number Diff line number Diff line Loading @@ -723,7 +723,7 @@ static int ovl_set_nlink_common(struct dentry *dentry, return -EIO; return ovl_do_setxattr(ovl_dentry_upper(dentry), OVL_XATTR_NLINK, buf, len, 0); OVL_XATTR_NLINK, buf, len); } int ovl_set_nlink_upper(struct dentry *dentry) Loading
fs/overlayfs/namei.c +1 −1 Original line number Diff line number Diff line Loading @@ -456,7 +456,7 @@ int ovl_verify_set_fh(struct dentry *dentry, const char *name, err = ovl_verify_fh(dentry, name, fh); if (set && err == -ENODATA) err = ovl_do_setxattr(dentry, name, fh->buf, fh->fb.len, 0); err = ovl_do_setxattr(dentry, name, fh->buf, fh->fb.len); if (err) goto fail; Loading
fs/overlayfs/overlayfs.h +4 −4 Original line number Diff line number Diff line Loading @@ -177,11 +177,11 @@ static inline ssize_t ovl_do_getxattr(struct dentry *dentry, const char *name, } static inline int ovl_do_setxattr(struct dentry *dentry, const char *name, const void *value, size_t size, int flags) const void *value, size_t size) { int err = vfs_setxattr(dentry, name, value, size, flags); pr_debug("setxattr(%pd2, \"%s\", \"%*pE\", %zu, 0x%x) = %i\n", dentry, name, min((int)size, 48), value, size, flags, err); int err = vfs_setxattr(dentry, name, value, size, 0); pr_debug("setxattr(%pd2, \"%s\", \"%*pE\", %zu, 0) = %i\n", dentry, name, min((int)size, 48), value, size, err); return err; } Loading
fs/overlayfs/super.c +1 −1 Original line number Diff line number Diff line Loading @@ -1319,7 +1319,7 @@ static int ovl_make_workdir(struct super_block *sb, struct ovl_fs *ofs, /* * Check if upper/work fs supports trusted.overlay.* xattr */ err = ovl_do_setxattr(ofs->workdir, OVL_XATTR_OPAQUE, "0", 1, 0); err = ovl_do_setxattr(ofs->workdir, OVL_XATTR_OPAQUE, "0", 1); if (err) { ofs->noxattr = true; ofs->config.index = false; Loading