• J
    ceph: Propagate dentry down to inode_change_ok() · fd5472ed
    Jan Kara 提交于
    To avoid clearing of capabilities or security related extended
    attributes too early, inode_change_ok() will need to take dentry instead
    of inode. ceph_setattr() has the dentry easily available but
    __ceph_setattr() is also called from ceph_set_acl() where dentry is not
    easily available. Luckily that call path does not need inode_change_ok()
    to be called anyway. So reorganize functions a bit so that
    inode_change_ok() is called only from paths where dentry is available.
    Reviewed-by: NChristoph Hellwig <hch@lst.de>
    Acked-by: NJeff Layton <jlayton@redhat.com>
    Signed-off-by: NJan Kara <jack@suse.cz>
    fd5472ed
inode.c 60.2 KB