/include/linux/ |
D | iversion.h | 111 inode_set_iversion_raw(struct inode *inode, u64 val) in inode_set_iversion_raw() argument 113 atomic64_set(&inode->i_version, val); in inode_set_iversion_raw() 128 inode_peek_iversion_raw(const struct inode *inode) in inode_peek_iversion_raw() argument 130 return atomic64_read(&inode->i_version); in inode_peek_iversion_raw() 142 inode_set_max_iversion_raw(struct inode *inode, u64 val) in inode_set_max_iversion_raw() argument 144 u64 cur = inode_peek_iversion_raw(inode); in inode_set_max_iversion_raw() 149 } while (!atomic64_try_cmpxchg(&inode->i_version, &cur, val)); in inode_set_max_iversion_raw() 165 inode_set_iversion(struct inode *inode, u64 val) in inode_set_iversion() argument 167 inode_set_iversion_raw(inode, val << I_VERSION_QUERIED_SHIFT); in inode_set_iversion() 187 inode_set_iversion_queried(struct inode *inode, u64 val) in inode_set_iversion_queried() argument [all …]
|
D | quotaops.h | 24 struct inode *inode, struct iattr *ia) in is_quota_modification() argument 27 i_uid_needs_update(idmap, ia, inode) || in is_quota_modification() 28 i_gid_needs_update(idmap, ia, inode)); in is_quota_modification() 43 int dquot_initialize(struct inode *inode); 44 bool dquot_initialize_needed(struct inode *inode); 45 void dquot_drop(struct inode *inode); 72 int __dquot_alloc_space(struct inode *inode, qsize_t number, int flags); 73 void __dquot_free_space(struct inode *inode, qsize_t number, int flags); 75 int dquot_alloc_inode(struct inode *inode); 77 int dquot_claim_space_nodirty(struct inode *inode, qsize_t number); [all …]
|
D | fscrypt.h | 125 int (*get_context)(struct inode *inode, void *ctx, size_t len); 143 int (*set_context)(struct inode *inode, const void *ctx, size_t len, 160 bool (*empty_dir)(struct inode *inode); 204 fscrypt_get_inode_info(const struct inode *inode) in fscrypt_get_inode_info() argument 212 return smp_load_acquire(&inode->i_crypt_info); in fscrypt_get_inode_info() 226 static inline bool fscrypt_needs_contents_encryption(const struct inode *inode) in fscrypt_needs_contents_encryption() argument 228 return IS_ENCRYPTED(inode) && S_ISREG(inode->i_mode); in fscrypt_needs_contents_encryption() 279 int fscrypt_encrypt_block_inplace(const struct inode *inode, struct page *page, 285 int fscrypt_decrypt_block_inplace(const struct inode *inode, struct page *page, 316 int fscrypt_has_permitted_context(struct inode *parent, struct inode *child); [all …]
|
D | fsverity.h | 84 int (*get_verity_descriptor)(struct inode *inode, void *buf, 104 struct page *(*read_merkle_tree_page)(struct inode *inode, 121 int (*write_merkle_tree_block)(struct inode *inode, const void *buf, 127 static inline struct fsverity_info *fsverity_get_info(const struct inode *inode) in fsverity_get_info() argument 135 return smp_load_acquire(&inode->i_verity_info); in fsverity_get_info() 145 int fsverity_get_digest(struct inode *inode, 151 int __fsverity_file_open(struct inode *inode, struct file *filp); 153 void __fsverity_cleanup_inode(struct inode *inode); 161 static inline void fsverity_cleanup_inode(struct inode *inode) in fsverity_cleanup_inode() argument 163 if (inode->i_verity_info) in fsverity_cleanup_inode() [all …]
|
D | nfs_fs.h | 248 struct inode vfs_inode; 322 static inline struct nfs_inode *NFS_I(const struct inode *inode) in NFS_I() argument 324 return container_of(inode, struct nfs_inode, vfs_inode); in NFS_I() 332 static inline struct nfs_fh *NFS_FH(const struct inode *inode) in NFS_FH() argument 334 return &NFS_I(inode)->fh; in NFS_FH() 337 static inline struct nfs_server *NFS_SERVER(const struct inode *inode) in NFS_SERVER() argument 339 return NFS_SB(inode->i_sb); in NFS_SERVER() 342 static inline struct rpc_clnt *NFS_CLIENT(const struct inode *inode) in NFS_CLIENT() argument 344 return NFS_SERVER(inode)->client; in NFS_CLIENT() 347 static inline const struct nfs_rpc_ops *NFS_PROTO(const struct inode *inode) in NFS_PROTO() argument [all …]
|
D | posix_acl.h | 71 extern struct posix_acl *get_posix_acl(struct inode *, int); 75 struct posix_acl *get_cached_acl_rcu(struct inode *inode, int type); 80 extern int posix_acl_create(struct inode *, umode_t *, struct posix_acl **, 82 int posix_acl_update_mode(struct mnt_idmap *, struct inode *, umode_t *, 87 extern int simple_acl_create(struct inode *, struct inode *); 89 struct posix_acl *get_cached_acl(struct inode *inode, int type); 90 void set_cached_acl(struct inode *inode, int type, struct posix_acl *acl); 91 void forget_cached_acl(struct inode *inode, int type); 92 void forget_all_cached_acls(struct inode *inode); 94 int posix_acl_permission(struct mnt_idmap *, struct inode *, [all …]
|
D | fs.h | 91 typedef int (get_block_t)(struct inode *inode, sector_t iblock, 461 struct inode *host; 590 #define i_size_ordered_init(inode) seqcount_init(&inode->i_size_seqcount) argument 592 #define i_size_ordered_init(inode) do { } while (0) argument 629 struct inode { struct 711 void (*free_inode)(struct inode *); argument 741 struct timespec64 timestamp_truncate(struct timespec64 t, struct inode *inode); argument 743 static inline unsigned int i_blocksize(const struct inode *node) in i_blocksize() 748 static inline int inode_unhashed(struct inode *inode) in inode_unhashed() argument 750 return hlist_unhashed(&inode->i_hash); in inode_unhashed() [all …]
|
D | writeback.h | 82 struct inode *inode; /* inode being written out */ member 190 void inode_wait_for_writeback(struct inode *inode); 191 void inode_io_list_del(struct inode *inode); 194 static inline void wait_on_inode(struct inode *inode) in wait_on_inode() argument 197 wait_on_bit(&inode->i_state, __I_NEW, TASK_UNINTERRUPTIBLE); in wait_on_inode() 205 void __inode_attach_wb(struct inode *inode, struct folio *folio); 207 struct inode *inode) 208 __releases(&inode->i_lock); 226 static inline void inode_attach_wb(struct inode *inode, struct folio *folio) in inode_attach_wb() argument 228 if (!inode->i_wb) in inode_attach_wb() [all …]
|
D | filelock.h | 124 struct inode *inode; member 151 void locks_free_lock_context(struct inode *inode); 166 bool vfs_inode_has_locks(struct inode *inode); 167 int locks_lock_inode_wait(struct inode *inode, struct file_lock *fl); 168 int __break_lease(struct inode *inode, unsigned int flags, unsigned int type); 169 void lease_get_mtime(struct inode *, struct timespec64 *time); 185 locks_inode_context(const struct inode *inode) in locks_inode_context() argument 187 return smp_load_acquire(&inode->i_flctx); in locks_inode_context() 227 locks_free_lock_context(struct inode *inode) in locks_free_lock_context() argument 288 static inline bool vfs_inode_has_locks(struct inode *inode) in vfs_inode_has_locks() argument [all …]
|
D | fsnotify.h | 33 struct inode *dir, const struct qstr *name, in fsnotify_name() 42 static inline void fsnotify_dirent(struct inode *dir, struct dentry *dentry, in fsnotify_dirent() 48 static inline void fsnotify_inode(struct inode *inode, __u32 mask) in fsnotify_inode() argument 50 if (atomic_long_read(&inode->i_sb->s_fsnotify_connectors) == 0) in fsnotify_inode() 53 if (S_ISDIR(inode->i_mode)) in fsnotify_inode() 56 fsnotify(mask, inode, FSNOTIFY_EVENT_INODE, NULL, NULL, inode, 0); in fsnotify_inode() 63 struct inode *inode = d_inode(dentry); in fsnotify_parent() local 65 if (atomic_long_read(&inode->i_sb->s_fsnotify_connectors) == 0) in fsnotify_parent() 68 if (S_ISDIR(inode->i_mode)) { in fsnotify_parent() 83 return fsnotify(mask, data, data_type, NULL, NULL, inode, 0); in fsnotify_parent() [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 | backing-dev.h | 145 struct backing_dev_info *inode_to_bdi(struct inode *inode); 173 static inline bool inode_cgwb_enabled(struct inode *inode) in inode_cgwb_enabled() argument 175 struct backing_dev_info *bdi = inode_to_bdi(inode); in inode_cgwb_enabled() 180 (inode->i_sb->s_iflags & SB_I_CGROUPWB); in inode_cgwb_enabled() 249 static inline struct bdi_writeback *inode_to_wb(const struct inode *inode) in inode_to_wb() argument 253 (!lockdep_is_held(&inode->i_lock) && in inode_to_wb() 254 !lockdep_is_held(&inode->i_mapping->i_pages.xa_lock) && in inode_to_wb() 255 !lockdep_is_held(&inode->i_wb->list_lock))); in inode_to_wb() 257 return inode->i_wb; in inode_to_wb() 261 struct inode *inode, in inode_to_wb_wbc() argument [all …]
|
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 | bpf_lsm.h | 34 const struct inode *inode) in bpf_inode() argument 36 if (unlikely(!inode->i_security)) in bpf_inode() 39 return inode->i_security + bpf_lsm_blob_sizes.lbs_inode; in bpf_inode() 44 void bpf_inode_storage_free(struct inode *inode); 67 const struct inode *inode) in bpf_inode() argument 72 static inline void bpf_inode_storage_free(struct inode *inode) in bpf_inode_storage_free() argument
|
D | exportfs.h | 9 struct inode; 202 int (*encode_fh)(struct inode *inode, __u32 *fh, int *max_len, 203 struct inode *parent); 211 int (*commit_metadata)(struct inode *inode); 214 int (*map_blocks)(struct inode *inode, loff_t offset, 217 int (*commit_blocks)(struct inode *inode, struct iomap *iomaps, 230 extern int exportfs_encode_inode_fh(struct inode *inode, struct fid *fid, 231 int *max_len, struct inode *parent, 236 static inline int exportfs_encode_fid(struct inode *inode, struct fid *fid, in exportfs_encode_fid() argument 239 return exportfs_encode_inode_fh(inode, fid, max_len, NULL, in exportfs_encode_fid() [all …]
|
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 | iomap.h | 16 struct inode; 147 void (*put_folio)(struct inode *inode, loff_t pos, unsigned copied, 165 bool (*iomap_valid)(struct inode *inode, const struct iomap *iomap); 191 int (*iomap_begin)(struct inode *inode, loff_t pos, loff_t length, 201 int (*iomap_end)(struct inode *inode, loff_t pos, loff_t length, 222 struct inode *inode; member 267 int iomap_file_buffered_write_punch_delalloc(struct inode *inode, 269 int (*punch)(struct inode *inode, loff_t pos, loff_t length)); 278 int iomap_file_unshare(struct inode *inode, loff_t pos, loff_t len, 280 int iomap_zero_range(struct inode *inode, loff_t pos, loff_t len, [all …]
|
D | shmem_fs.h | 39 struct inode vfs_inode; 77 static inline struct shmem_inode_info *SHMEM_I(struct inode *inode) in SHMEM_I() argument 79 return container_of(inode, struct shmem_inode_info, vfs_inode); in SHMEM_I() 113 extern void shmem_truncate_range(struct inode *inode, loff_t start, loff_t end); 117 extern bool shmem_is_huge(struct inode *inode, pgoff_t index, bool shmem_huge_force, 120 static __always_inline bool shmem_is_huge(struct inode *inode, pgoff_t index, bool shmem_huge_force, in shmem_is_huge() argument 147 int shmem_get_folio(struct inode *inode, pgoff_t index, struct folio **foliop, 181 static inline pgoff_t shmem_fallocend(struct inode *inode, pgoff_t eof) in shmem_fallocend() argument 183 return max(eof, SHMEM_I(inode)->fallocend); in shmem_fallocend() 186 extern bool shmem_charge(struct inode *inode, long pages); [all …]
|
/include/trace/events/ |
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 | 36 TP_PROTO(struct inode *dir, struct dentry *dentry, unsigned int flags), 61 TP_PROTO(struct inode *inode), 62 TP_ARGS(inode), 72 __entry->dev = inode->i_sb->s_dev; 73 __entry->nid = EROFS_I(inode)->nid; 74 __entry->blkaddr = erofs_blknr(inode->i_sb, erofs_iloc(inode)); 75 __entry->ofs = erofs_blkoff(inode->i_sb, erofs_iloc(inode)); 118 TP_PROTO(struct inode *inode, pgoff_t start, unsigned int nrpage, 121 TP_ARGS(inode, start, nrpage, raw), 132 __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 138 TP_PROTO(struct inode *inode, ino_t orig_ino), 140 TP_ARGS(inode, orig_ino), 153 __entry->dev = inode->i_sb->s_dev; 154 __entry->ino = inode->i_ino; 155 __entry->uid = i_uid_read(inode); 156 __entry->gid = i_gid_read(inode); 157 __entry->mode = inode->i_mode; 168 TP_PROTO(struct inode *inode), 170 TP_ARGS(inode), [all …]
|
D | writeback.h | 98 TP_PROTO(struct inode *inode, int flags), 100 TP_ARGS(inode, flags), 110 struct backing_dev_info *bdi = inode_to_bdi(inode); 114 __entry->ino = inode->i_ino; 115 __entry->state = inode->i_state; 129 TP_PROTO(struct inode *inode, int flags), 131 TP_ARGS(inode, flags) 136 TP_PROTO(struct inode *inode, int flags), 138 TP_ARGS(inode, flags) 143 TP_PROTO(struct inode *inode, int flags), [all …]
|