/include/linux/ |
D | iversion.h | 93 inode_set_iversion_raw(struct inode *inode, u64 val) in inode_set_iversion_raw() argument 95 atomic64_set(&inode->i_version, val); in inode_set_iversion_raw() 110 inode_peek_iversion_raw(const struct inode *inode) in inode_peek_iversion_raw() argument 112 return atomic64_read(&inode->i_version); in inode_peek_iversion_raw() 124 inode_set_max_iversion_raw(struct inode *inode, u64 val) in inode_set_max_iversion_raw() argument 128 cur = inode_peek_iversion_raw(inode); in inode_set_max_iversion_raw() 132 old = atomic64_cmpxchg(&inode->i_version, cur, val); in inode_set_max_iversion_raw() 152 inode_set_iversion(struct inode *inode, u64 val) in inode_set_iversion() argument 154 inode_set_iversion_raw(inode, val << I_VERSION_QUERIED_SHIFT); in inode_set_iversion() 174 inode_set_iversion_queried(struct inode *inode, u64 val) in inode_set_iversion_queried() argument [all …]
|
D | quotaops.h | 23 static inline bool is_quota_modification(struct inode *inode, struct iattr *ia) in is_quota_modification() argument 26 (ia->ia_valid & ATTR_UID && !uid_eq(ia->ia_uid, inode->i_uid)) || in is_quota_modification() 27 (ia->ia_valid & ATTR_GID && !gid_eq(ia->ia_gid, inode->i_gid)); in is_quota_modification() 42 int dquot_initialize(struct inode *inode); 43 bool dquot_initialize_needed(struct inode *inode); 44 void dquot_drop(struct inode *inode); 71 int __dquot_alloc_space(struct inode *inode, qsize_t number, int flags); 72 void __dquot_free_space(struct inode *inode, qsize_t number, int flags); 74 int dquot_alloc_inode(struct inode *inode); 76 int dquot_claim_space_nodirty(struct inode *inode, qsize_t number); [all …]
|
D | posix_acl.h | 71 extern struct posix_acl *get_posix_acl(struct inode *, int); 72 extern int set_posix_acl(struct user_namespace *, struct inode *, int, 75 struct posix_acl *get_cached_acl_rcu(struct inode *inode, int type); 78 int posix_acl_chmod(struct user_namespace *, struct inode *, umode_t); 79 extern int posix_acl_create(struct inode *, umode_t *, struct posix_acl **, 81 int posix_acl_update_mode(struct user_namespace *, struct inode *, umode_t *, 84 extern int simple_set_acl(struct user_namespace *, struct inode *, 86 extern int simple_acl_create(struct inode *, struct inode *); 88 struct posix_acl *get_cached_acl(struct inode *inode, int type); 89 void set_cached_acl(struct inode *inode, int type, struct posix_acl *acl); [all …]
|
D | fscrypt.h | 84 int (*get_context)(struct inode *inode, void *ctx, size_t len); 102 int (*set_context)(struct inode *inode, const void *ctx, size_t len, 119 bool (*empty_dir)(struct inode *inode); 180 static inline struct fscrypt_info *fscrypt_get_info(const struct inode *inode) in fscrypt_get_info() argument 188 return smp_load_acquire(&inode->i_crypt_info); in fscrypt_get_info() 202 static inline bool fscrypt_needs_contents_encryption(const struct inode *inode) in fscrypt_needs_contents_encryption() argument 204 return IS_ENCRYPTED(inode) && S_ISREG(inode->i_mode); in fscrypt_needs_contents_encryption() 255 int fscrypt_encrypt_block_inplace(const struct inode *inode, struct page *page, 261 int fscrypt_decrypt_block_inplace(const struct inode *inode, struct page *page, 282 int fscrypt_has_permitted_context(struct inode *parent, struct inode *child); [all …]
|
D | fsverity.h | 72 int (*get_verity_descriptor)(struct inode *inode, void *buf, 93 struct page *(*read_merkle_tree_page)(struct inode *inode, 110 int (*write_merkle_tree_block)(struct inode *inode, const void *buf, 116 static inline struct fsverity_info *fsverity_get_info(const struct inode *inode) in fsverity_get_info() argument 124 return smp_load_acquire(&inode->i_verity_info); in fsverity_get_info() 137 int fsverity_file_open(struct inode *inode, struct file *filp); 139 void fsverity_cleanup_inode(struct inode *inode); 153 static inline struct fsverity_info *fsverity_get_info(const struct inode *inode) in fsverity_get_info() argument 175 static inline int fsverity_file_open(struct inode *inode, struct file *filp) in fsverity_file_open() argument 177 return IS_VERITY(inode) ? -EOPNOTSUPP : 0; in fsverity_file_open() [all …]
|
D | nfs_fs.h | 208 struct inode vfs_inode; 286 static inline struct nfs_inode *NFS_I(const struct inode *inode) in NFS_I() argument 288 return container_of(inode, struct nfs_inode, vfs_inode); in NFS_I() 296 static inline struct nfs_fh *NFS_FH(const struct inode *inode) in NFS_FH() argument 298 return &NFS_I(inode)->fh; in NFS_FH() 301 static inline struct nfs_server *NFS_SERVER(const struct inode *inode) in NFS_SERVER() argument 303 return NFS_SB(inode->i_sb); in NFS_SERVER() 306 static inline struct rpc_clnt *NFS_CLIENT(const struct inode *inode) in NFS_CLIENT() argument 308 return NFS_SERVER(inode)->client; in NFS_CLIENT() 311 static inline const struct nfs_rpc_ops *NFS_PROTO(const struct inode *inode) in NFS_PROTO() argument [all …]
|
D | backing-dev.h | 138 static inline struct backing_dev_info *inode_to_bdi(struct inode *inode) in inode_to_bdi() argument 142 if (!inode) in inode_to_bdi() 145 sb = inode->i_sb; in inode_to_bdi() 148 return I_BDEV(inode)->bd_disk->bdi; in inode_to_bdi() 181 int inode_congested(struct inode *inode, int cong_bits); 194 static inline bool inode_cgwb_enabled(struct inode *inode) in inode_cgwb_enabled() argument 196 struct backing_dev_info *bdi = inode_to_bdi(inode); in inode_cgwb_enabled() 201 (inode->i_sb->s_iflags & SB_I_CGROUPWB); in inode_cgwb_enabled() 269 static inline bool inode_to_wb_is_valid(struct inode *inode) in inode_to_wb_is_valid() argument 271 return inode->i_wb; in inode_to_wb_is_valid() [all …]
|
D | fs.h | 95 typedef int (get_block_t)(struct inode *inode, sector_t iblock, 467 struct inode *host; 601 #define i_size_ordered_init(inode) seqcount_init(&inode->i_size_seqcount) argument 603 #define i_size_ordered_init(inode) do { } while (0) argument 640 struct inode { struct 722 void (*free_inode)(struct inode *); argument 755 struct timespec64 timestamp_truncate(struct timespec64 t, struct inode *inode); argument 757 static inline unsigned int i_blocksize(const struct inode *node) in i_blocksize() 762 static inline int inode_unhashed(struct inode *inode) in inode_unhashed() argument 764 return hlist_unhashed(&inode->i_hash); in inode_unhashed() [all …]
|
D | fsnotify.h | 29 static inline void fsnotify_name(struct inode *dir, __u32 mask, in fsnotify_name() 30 struct inode *child, in fsnotify_name() 39 static inline void fsnotify_dirent(struct inode *dir, struct dentry *dentry, in fsnotify_dirent() 45 static inline void fsnotify_inode(struct inode *inode, __u32 mask) in fsnotify_inode() argument 47 if (atomic_long_read(&inode->i_sb->s_fsnotify_connectors) == 0) in fsnotify_inode() 50 if (S_ISDIR(inode->i_mode)) in fsnotify_inode() 53 fsnotify(mask, inode, FSNOTIFY_EVENT_INODE, NULL, NULL, inode, 0); in fsnotify_inode() 60 struct inode *inode = d_inode(dentry); in fsnotify_parent() local 62 if (atomic_long_read(&inode->i_sb->s_fsnotify_connectors) == 0) in fsnotify_parent() 65 if (S_ISDIR(inode->i_mode)) { in fsnotify_parent() [all …]
|
D | writeback.h | 85 struct inode *inode; /* inode being written out */ member 199 void inode_wait_for_writeback(struct inode *inode); 200 void inode_io_list_del(struct inode *inode); 203 static inline void wait_on_inode(struct inode *inode) in wait_on_inode() argument 206 wait_on_bit(&inode->i_state, __I_NEW, TASK_UNINTERRUPTIBLE); in wait_on_inode() 214 void __inode_attach_wb(struct inode *inode, struct page *page); 216 struct inode *inode) 217 __releases(&inode->i_lock); 235 static inline void inode_attach_wb(struct inode *inode, struct page *page) in inode_attach_wb() argument 237 if (!inode->i_wb) in inode_attach_wb() [all …]
|
D | integrity.h | 24 extern struct integrity_iint_cache *integrity_inode_get(struct inode *inode); 25 extern void integrity_inode_free(struct inode *inode); 30 integrity_inode_get(struct inode *inode) in integrity_inode_get() argument 35 static inline void integrity_inode_free(struct inode *inode) in integrity_inode_free() argument
|
D | bpf_lsm.h | 33 const struct inode *inode) in bpf_inode() argument 35 if (unlikely(!inode->i_security)) in bpf_inode() 38 return inode->i_security + bpf_lsm_blob_sizes.lbs_inode; in bpf_inode() 43 void bpf_inode_storage_free(struct inode *inode); 59 const struct inode *inode) in bpf_inode() argument 64 static inline void bpf_inode_storage_free(struct inode *inode) in bpf_inode_storage_free() argument
|
D | fs_stack.h | 12 extern void fsstack_copy_attr_all(struct inode *dest, const struct inode *src); 13 extern void fsstack_copy_inode_size(struct inode *dst, struct inode *src); 16 static inline void fsstack_copy_attr_atime(struct inode *dest, in fsstack_copy_attr_atime() 17 const struct inode *src) in fsstack_copy_attr_atime() 22 static inline void fsstack_copy_attr_times(struct inode *dest, in fsstack_copy_attr_times() 23 const struct inode *src) in fsstack_copy_attr_times()
|
D | exportfs.h | 9 struct inode; 199 int (*encode_fh)(struct inode *inode, __u32 *fh, int *max_len, 200 struct inode *parent); 208 int (*commit_metadata)(struct inode *inode); 211 int (*map_blocks)(struct inode *inode, loff_t offset, 214 int (*commit_blocks)(struct inode *inode, struct iomap *iomaps, 216 u64 (*fetch_iversion)(struct inode *); 229 extern int exportfs_encode_inode_fh(struct inode *inode, struct fid *fid, 230 int *max_len, struct inode *parent); 247 struct inode *(*get_inode) (struct super_block *sb, u64 ino, u32 gen)); [all …]
|
D | posix_acl_xattr.h | 37 struct inode *inode, 40 struct inode *inode, 44 struct inode *inode, in posix_acl_fix_xattr_from_user() argument 49 struct inode *inode, in posix_acl_fix_xattr_to_user() argument
|
D | ramfs.h | 7 struct inode *ramfs_get_inode(struct super_block *sb, const struct inode *dir, 14 ramfs_nommu_expand_for_mapping(struct inode *inode, size_t newsize) in ramfs_nommu_expand_for_mapping() argument 19 extern int ramfs_nommu_expand_for_mapping(struct inode *inode, size_t newsize);
|
D | device_cgroup.h | 17 static inline int devcgroup_inode_permission(struct inode *inode, int mask) in devcgroup_inode_permission() argument 21 if (likely(!inode->i_rdev)) in devcgroup_inode_permission() 24 if (S_ISBLK(inode->i_mode)) in devcgroup_inode_permission() 26 else if (S_ISCHR(inode->i_mode)) in devcgroup_inode_permission() 36 return devcgroup_check_permission(type, imajor(inode), iminor(inode), in devcgroup_inode_permission() 63 static inline int devcgroup_inode_permission(struct inode *inode, int mask) in devcgroup_inode_permission() argument
|
D | shmem_fs.h | 27 struct inode vfs_inode; 49 static inline struct shmem_inode_info *SHMEM_I(struct inode *inode) in SHMEM_I() argument 51 return container_of(inode, struct shmem_inode_info, vfs_inode); in SHMEM_I() 85 extern void shmem_truncate_range(struct inode *inode, loff_t start, loff_t end); 90 struct inode *inode, pgoff_t index); 108 extern int shmem_getpage(struct inode *inode, pgoff_t index, 134 static inline pgoff_t shmem_fallocend(struct inode *inode, pgoff_t eof) in shmem_fallocend() argument 136 return max(eof, SHMEM_I(inode)->fallocend); in shmem_fallocend() 139 extern bool shmem_charge(struct inode *inode, long pages); 140 extern void shmem_uncharge(struct inode *inode, long pages);
|
/include/trace/events/ |
D | android_fs.h | 12 TP_PROTO(struct inode *inode, loff_t offset, int bytes, 14 TP_ARGS(inode, offset, bytes, pid, pathname, command)); 17 TP_PROTO(struct inode *inode, loff_t offset, int bytes), 18 TP_ARGS(inode, offset, bytes)); 21 TP_PROTO(struct inode *inode, loff_t offset, int bytes, 23 TP_ARGS(inode, offset, bytes, pid, pathname, command)); 26 TP_PROTO(struct inode *inode, loff_t offset, int bytes), 27 TP_ARGS(inode, offset, bytes)); 41 android_fstrace_get_pathname(char *buf, int buflen, struct inode *inode) in android_fstrace_get_pathname() argument 51 ihold(inode); in android_fstrace_get_pathname() [all …]
|
D | filelock.h | 39 TP_PROTO(struct inode *inode, int type, struct file_lock_context *ctx), 41 TP_ARGS(inode, type, ctx), 51 __entry->s_dev = inode->i_sb->s_dev; 52 __entry->i_ino = inode->i_ino; 63 TP_PROTO(struct inode *inode, struct file_lock *fl, int ret), 65 TP_ARGS(inode, fl, ret), 83 __entry->s_dev = inode->i_sb->s_dev; 84 __entry->i_ino = inode->i_ino; 104 TP_PROTO(struct inode *inode, struct file_lock *fl, int ret), 105 TP_ARGS(inode, fl, ret)); [all …]
|
D | fs_dax.h | 11 TP_PROTO(struct inode *inode, struct vm_fault *vmf, 13 TP_ARGS(inode, vmf, max_pgoff, result), 27 __entry->dev = inode->i_sb->s_dev; 28 __entry->ino = inode->i_ino; 56 TP_PROTO(struct inode *inode, struct vm_fault *vmf, \ 58 TP_ARGS(inode, vmf, max_pgoff, result)) 64 TP_PROTO(struct inode *inode, struct vm_fault *vmf, 67 TP_ARGS(inode, vmf, zero_page, radix_entry), 77 __entry->dev = inode->i_sb->s_dev; 78 __entry->ino = inode->i_ino; [all …]
|
D | erofs.h | 31 TP_PROTO(struct inode *dir, struct dentry *dentry, unsigned int flags), 56 TP_PROTO(struct inode *inode, int isdir), 57 TP_ARGS(inode, isdir), 68 __entry->dev = inode->i_sb->s_dev; 69 __entry->nid = EROFS_I(inode)->nid; 70 __entry->blkaddr = erofs_blknr(iloc(EROFS_I_SB(inode), __entry->nid)); 71 __entry->ofs = erofs_blkoff(iloc(EROFS_I_SB(inode), __entry->nid)); 116 TP_PROTO(struct inode *inode, pgoff_t start, unsigned int nrpage, 119 TP_ARGS(inode, start, nrpage, raw), 130 __entry->dev = inode->i_sb->s_dev; [all …]
|
D | nilfs2.h | 100 TP_PROTO(struct inode *sufile, 107 __field(struct inode *, sufile) 125 TP_PROTO(struct inode *sufile, 131 __field(struct inode *, sufile) 146 TP_PROTO(struct inode *sufile, 152 __field(struct inode *, sufile) 167 TP_PROTO(struct inode *inode, 171 TP_ARGS(inode, ino, block), 174 __field(struct inode *, inode) 180 __entry->inode = inode; [all …]
|
D | ext4.h | 22 #define EXT4_I(inode) (container_of(inode, struct ext4_inode_info, vfs_inode)) argument 124 TP_PROTO(struct inode *inode, ino_t orig_ino), 126 TP_ARGS(inode, orig_ino), 139 __entry->dev = inode->i_sb->s_dev; 140 __entry->ino = inode->i_ino; 141 __entry->uid = i_uid_read(inode); 142 __entry->gid = i_gid_read(inode); 143 __entry->mode = inode->i_mode; 154 TP_PROTO(struct inode *inode), 156 TP_ARGS(inode), [all …]
|
/include/trace/hooks/ |
D | tmpfile.h | 14 struct inode; 18 struct inode *inode, bool *skip_splice), 19 TP_ARGS(args, d, entry, inode, skip_splice), 1); 21 TP_PROTO(struct inode *dir, struct dentry *entry, umode_t mode, 23 struct inode *, struct dentry *, umode_t), 31 TP_PROTO(struct fuse_args *args, struct inode *inode, int *err), 32 TP_ARGS(args, inode, err));
|