acl.c (549c7297717c32ee53f156cd949e055e601f67bb) acl.c (14f3db5542e62bcf6fe088a09760ac52d55306c5)
1// SPDX-License-Identifier: GPL-2.0
2/*
3 * linux/fs/ext4/acl.c
4 *
5 * Copyright (C) 2001-2003 Andreas Gruenbacher, <agruen@suse.de>
6 */
7
8#include <linux/quotaops.h>

--- 232 unchanged lines hidden (view full) ---

241 return error;
242
243 handle = ext4_journal_start(inode, EXT4_HT_XATTR, credits);
244 if (IS_ERR(handle))
245 return PTR_ERR(handle);
246 ext4_fc_start_update(inode);
247
248 if ((type == ACL_TYPE_ACCESS) && acl) {
1// SPDX-License-Identifier: GPL-2.0
2/*
3 * linux/fs/ext4/acl.c
4 *
5 * Copyright (C) 2001-2003 Andreas Gruenbacher, <agruen@suse.de>
6 */
7
8#include <linux/quotaops.h>

--- 232 unchanged lines hidden (view full) ---

241 return error;
242
243 handle = ext4_journal_start(inode, EXT4_HT_XATTR, credits);
244 if (IS_ERR(handle))
245 return PTR_ERR(handle);
246 ext4_fc_start_update(inode);
247
248 if ((type == ACL_TYPE_ACCESS) && acl) {
249 error = posix_acl_update_mode(&init_user_ns, inode, &mode,
250 &acl);
249 error = posix_acl_update_mode(mnt_userns, inode, &mode, &acl);
251 if (error)
252 goto out_stop;
253 if (mode != inode->i_mode)
254 update_mode = 1;
255 }
256
257 error = __ext4_set_acl(handle, inode, type, acl, 0 /* xattr_flags */);
258 if (!error && update_mode) {

--- 45 unchanged lines hidden ---
250 if (error)
251 goto out_stop;
252 if (mode != inode->i_mode)
253 update_mode = 1;
254 }
255
256 error = __ext4_set_acl(handle, inode, type, acl, 0 /* xattr_flags */);
257 if (!error && update_mode) {

--- 45 unchanged lines hidden ---