inode.c (47291baa8ddfdae10663624ff0a15ab165952708) | inode.c (2f221d6f7b881d95de1f356a3097d755ab1e47d4) |
---|---|
1// SPDX-License-Identifier: GPL-2.0 2/* 3 * (C) 2001 Clemson University and The University of Chicago 4 * Copyright 2018 Omnibond Systems, L.L.C. 5 * 6 * See COPYING in top-level directory. 7 */ 8 --- 841 unchanged lines hidden (view full) --- 850 write_inode_now(inode, 1); 851 goto again; 852 } 853 } else { 854 ORANGEFS_I(inode)->attr_valid = iattr->ia_valid; 855 ORANGEFS_I(inode)->attr_uid = current_fsuid(); 856 ORANGEFS_I(inode)->attr_gid = current_fsgid(); 857 } | 1// SPDX-License-Identifier: GPL-2.0 2/* 3 * (C) 2001 Clemson University and The University of Chicago 4 * Copyright 2018 Omnibond Systems, L.L.C. 5 * 6 * See COPYING in top-level directory. 7 */ 8 --- 841 unchanged lines hidden (view full) --- 850 write_inode_now(inode, 1); 851 goto again; 852 } 853 } else { 854 ORANGEFS_I(inode)->attr_valid = iattr->ia_valid; 855 ORANGEFS_I(inode)->attr_uid = current_fsuid(); 856 ORANGEFS_I(inode)->attr_gid = current_fsgid(); 857 } |
858 setattr_copy(inode, iattr); | 858 setattr_copy(&init_user_ns, inode, iattr); |
859 spin_unlock(&inode->i_lock); 860 mark_inode_dirty(inode); 861 862 if (iattr->ia_valid & ATTR_MODE) 863 /* change mod on a file that has ACLs */ 864 ret = posix_acl_chmod(inode, inode->i_mode); 865 866 ret = 0; --- 4 unchanged lines hidden (view full) --- 871/* 872 * Change attributes of an object referenced by dentry. 873 */ 874int orangefs_setattr(struct dentry *dentry, struct iattr *iattr) 875{ 876 int ret; 877 gossip_debug(GOSSIP_INODE_DEBUG, "__orangefs_setattr: called on %pd\n", 878 dentry); | 859 spin_unlock(&inode->i_lock); 860 mark_inode_dirty(inode); 861 862 if (iattr->ia_valid & ATTR_MODE) 863 /* change mod on a file that has ACLs */ 864 ret = posix_acl_chmod(inode, inode->i_mode); 865 866 ret = 0; --- 4 unchanged lines hidden (view full) --- 871/* 872 * Change attributes of an object referenced by dentry. 873 */ 874int orangefs_setattr(struct dentry *dentry, struct iattr *iattr) 875{ 876 int ret; 877 gossip_debug(GOSSIP_INODE_DEBUG, "__orangefs_setattr: called on %pd\n", 878 dentry); |
879 ret = setattr_prepare(dentry, iattr); | 879 ret = setattr_prepare(&init_user_ns, dentry, iattr); |
880 if (ret) 881 goto out; 882 ret = __orangefs_setattr(d_inode(dentry), iattr); 883 sync_inode_metadata(d_inode(dentry), 1); 884out: 885 gossip_debug(GOSSIP_INODE_DEBUG, "orangefs_setattr: returning %d\n", 886 ret); 887 return ret; --- 239 unchanged lines hidden --- | 880 if (ret) 881 goto out; 882 ret = __orangefs_setattr(d_inode(dentry), iattr); 883 sync_inode_metadata(d_inode(dentry), 1); 884out: 885 gossip_debug(GOSSIP_INODE_DEBUG, "orangefs_setattr: returning %d\n", 886 ret); 887 return ret; --- 239 unchanged lines hidden --- |