| .. | .. | 
|---|
 | 1 | +/* SPDX-License-Identifier: GPL-2.0-only */  | 
|---|
| 1 | 2 |  /* | 
|---|
| 2 | 3 |   * fs/kernfs/kernfs-internal.h - kernfs internal header file | 
|---|
| 3 | 4 |   * | 
|---|
| 4 | 5 |   * Copyright (c) 2001-3 Patrick Mochel | 
|---|
| 5 | 6 |   * Copyright (c) 2007 SUSE Linux Products GmbH | 
|---|
| 6 | 7 |   * Copyright (c) 2007, 2013 Tejun Heo <teheo@suse.de> | 
|---|
| 7 |  | - *  | 
|---|
| 8 |  | - * This file is released under the GPLv2.  | 
|---|
| 9 | 8 |   */ | 
|---|
| 10 | 9 |   | 
|---|
| 11 | 10 |  #ifndef __KERNFS_INTERNAL_H | 
|---|
| .. | .. | 
|---|
| 17 | 16 |  #include <linux/xattr.h> | 
|---|
| 18 | 17 |   | 
|---|
| 19 | 18 |  #include <linux/kernfs.h> | 
|---|
 | 19 | +#include <linux/fs_context.h>  | 
|---|
| 20 | 20 |   | 
|---|
| 21 | 21 |  struct kernfs_iattrs { | 
|---|
| 22 |  | -	struct iattr		ia_iattr;  | 
|---|
| 23 |  | -	void			*ia_secdata;  | 
|---|
| 24 |  | -	u32			ia_secdata_len;  | 
|---|
 | 22 | +	kuid_t			ia_uid;  | 
|---|
 | 23 | +	kgid_t			ia_gid;  | 
|---|
 | 24 | +	struct timespec64	ia_atime;  | 
|---|
 | 25 | +	struct timespec64	ia_mtime;  | 
|---|
 | 26 | +	struct timespec64	ia_ctime;  | 
|---|
| 25 | 27 |   | 
|---|
| 26 | 28 |  	struct simple_xattrs	xattrs; | 
|---|
 | 29 | +	atomic_t		nr_user_xattrs;  | 
|---|
 | 30 | +	atomic_t		user_xattr_size;  | 
|---|
| 27 | 31 |  }; | 
|---|
| 28 | 32 |   | 
|---|
| 29 | 33 |  /* +1 to avoid triggering overflow warning when negating it */ | 
|---|
| .. | .. | 
|---|
| 78 | 82 |  } | 
|---|
| 79 | 83 |   | 
|---|
| 80 | 84 |  extern const struct super_operations kernfs_sops; | 
|---|
| 81 |  | -extern struct kmem_cache *kernfs_node_cache;  | 
|---|
 | 85 | +extern struct kmem_cache *kernfs_node_cache, *kernfs_iattrs_cache;  | 
|---|
| 82 | 86 |   | 
|---|
| 83 | 87 |  /* | 
|---|
| 84 | 88 |   * inode.c | 
|---|
| .. | .. | 
|---|
| 107 | 111 |  				    const char *name, umode_t mode, | 
|---|
| 108 | 112 |  				    kuid_t uid, kgid_t gid, | 
|---|
| 109 | 113 |  				    unsigned flags); | 
|---|
| 110 |  | -struct kernfs_node *kernfs_find_and_get_node_by_ino(struct kernfs_root *root,  | 
|---|
| 111 |  | -						    unsigned int ino);  | 
|---|
| 112 | 114 |   | 
|---|
| 113 | 115 |  /* | 
|---|
| 114 | 116 |   * file.c | 
|---|