hc
2024-02-20 102a0743326a03cd1a1202ceda21e175b7d3575c
kernel/fs/ocfs2/acl.c
....@@ -1,3 +1,4 @@
1
+// SPDX-License-Identifier: GPL-2.0-only
12 /* -*- mode: c; c-basic-offset: 8; -*-
23 * vim: noexpandtab sw=8 ts=8 sts=0:
34 *
....@@ -8,15 +9,6 @@
89 * CREDITS:
910 * Lots of code in this file is copy from linux/fs/ext3/acl.c.
1011 * 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.
2012 */
2113
2214 #include <linux/init.h>
....@@ -264,6 +256,8 @@
264256 ret = ocfs2_xattr_set(inode, name_index, "", value, size, 0);
265257
266258 kfree(value);
259
+ if (!ret)
260
+ set_cached_acl(inode, type, acl);
267261
268262 return ret;
269263 }