| .. | .. |
|---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-only |
|---|
| 1 | 2 | /* -*- mode: c; c-basic-offset: 8; -*- |
|---|
| 2 | 3 | * vim: noexpandtab sw=8 ts=8 sts=0: |
|---|
| 3 | 4 | * |
|---|
| .. | .. |
|---|
| 8 | 9 | * CREDITS: |
|---|
| 9 | 10 | * Lots of code in this file is copy from linux/fs/ext3/acl.c. |
|---|
| 10 | 11 | * Copyright (C) 2001-2003 Andreas Gruenbacher, <agruen@suse.de> |
|---|
| 11 | | - * |
|---|
| 12 | | - * This program is free software; you can redistribute it and/or |
|---|
| 13 | | - * modify it under the terms of the GNU General Public |
|---|
| 14 | | - * License version 2 as published by the Free Software Foundation. |
|---|
| 15 | | - * |
|---|
| 16 | | - * This program is distributed in the hope that it will be useful, |
|---|
| 17 | | - * but WITHOUT ANY WARRANTY; without even the implied warranty of |
|---|
| 18 | | - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
|---|
| 19 | | - * General Public License for more details. |
|---|
| 20 | 12 | */ |
|---|
| 21 | 13 | |
|---|
| 22 | 14 | #include <linux/init.h> |
|---|
| .. | .. |
|---|
| 264 | 256 | ret = ocfs2_xattr_set(inode, name_index, "", value, size, 0); |
|---|
| 265 | 257 | |
|---|
| 266 | 258 | kfree(value); |
|---|
| 259 | + if (!ret) |
|---|
| 260 | + set_cached_acl(inode, type, acl); |
|---|
| 267 | 261 | |
|---|
| 268 | 262 | return ret; |
|---|
| 269 | 263 | } |
|---|