acl.c (d0034a7a4ac7fae708146ac0059b9c47a1543f0d) | acl.c (0cad6246621b5887d5b33fea84219d2a71f2f99a) |
---|---|
1// SPDX-License-Identifier: GPL-2.0-or-later 2/* 3 * Copyright (C) International Business Machines Corp., 2002-2004 4 * Copyright (C) Andreas Gruenbacher, 2001 5 * Copyright (C) Linus Torvalds, 1991, 1992 6 */ 7 8#include <linux/sched.h> 9#include <linux/slab.h> 10#include <linux/fs.h> 11#include <linux/posix_acl_xattr.h> 12#include "jfs_incore.h" 13#include "jfs_txnmgr.h" 14#include "jfs_xattr.h" 15#include "jfs_acl.h" 16 | 1// SPDX-License-Identifier: GPL-2.0-or-later 2/* 3 * Copyright (C) International Business Machines Corp., 2002-2004 4 * Copyright (C) Andreas Gruenbacher, 2001 5 * Copyright (C) Linus Torvalds, 1991, 1992 6 */ 7 8#include <linux/sched.h> 9#include <linux/slab.h> 10#include <linux/fs.h> 11#include <linux/posix_acl_xattr.h> 12#include "jfs_incore.h" 13#include "jfs_txnmgr.h" 14#include "jfs_xattr.h" 15#include "jfs_acl.h" 16 |
17struct posix_acl *jfs_get_acl(struct inode *inode, int type) | 17struct posix_acl *jfs_get_acl(struct inode *inode, int type, bool rcu) |
18{ 19 struct posix_acl *acl; 20 char *ea_name; 21 int size; 22 char *value = NULL; 23 | 18{ 19 struct posix_acl *acl; 20 char *ea_name; 21 int size; 22 char *value = NULL; 23 |
24 if (rcu) 25 return ERR_PTR(-ECHILD); 26 |
|
24 switch(type) { 25 case ACL_TYPE_ACCESS: 26 ea_name = XATTR_NAME_POSIX_ACL_ACCESS; 27 break; 28 case ACL_TYPE_DEFAULT: 29 ea_name = XATTR_NAME_POSIX_ACL_DEFAULT; 30 break; 31 default: --- 123 unchanged lines hidden --- | 27 switch(type) { 28 case ACL_TYPE_ACCESS: 29 ea_name = XATTR_NAME_POSIX_ACL_ACCESS; 30 break; 31 case ACL_TYPE_DEFAULT: 32 ea_name = XATTR_NAME_POSIX_ACL_DEFAULT; 33 break; 34 default: --- 123 unchanged lines hidden --- |