Home
last modified time | relevance | path

Searched refs:inode (Results 1 – 25 of 90) sorted by relevance

1234

/include/linux/
Dquotaops.h22 static inline bool is_quota_modification(struct inode *inode, struct iattr *ia) in is_quota_modification() argument
24 return (ia->ia_valid & ATTR_SIZE && ia->ia_size != inode->i_size) || in is_quota_modification()
25 (ia->ia_valid & ATTR_UID && !uid_eq(ia->ia_uid, inode->i_uid)) || in is_quota_modification()
26 (ia->ia_valid & ATTR_GID && !gid_eq(ia->ia_gid, inode->i_gid)); in is_quota_modification()
41 void inode_add_rsv_space(struct inode *inode, qsize_t number);
42 void inode_claim_rsv_space(struct inode *inode, qsize_t number);
43 void inode_sub_rsv_space(struct inode *inode, qsize_t number);
44 void inode_reclaim_rsv_space(struct inode *inode, qsize_t number);
46 int dquot_initialize(struct inode *inode);
47 void dquot_drop(struct inode *inode);
[all …]
Dposix_acl.h63 extern int posix_acl_permission(struct inode *, const struct posix_acl *, int);
69 extern struct posix_acl *get_posix_acl(struct inode *, int);
70 extern int set_posix_acl(struct inode *, int, struct posix_acl *);
73 extern int posix_acl_chmod(struct inode *, umode_t);
74 extern int posix_acl_create(struct inode *, umode_t *, struct posix_acl **,
76 extern int posix_acl_update_mode(struct inode *, umode_t *, struct posix_acl **);
78 extern int simple_set_acl(struct inode *, struct posix_acl *, int);
79 extern int simple_acl_create(struct inode *, struct inode *);
81 struct posix_acl *get_cached_acl(struct inode *inode, int type);
82 struct posix_acl *get_cached_acl_rcu(struct inode *inode, int type);
[all …]
Dnfs_fs.h186 struct inode vfs_inode;
215 static inline struct nfs_inode *NFS_I(const struct inode *inode) in NFS_I() argument
217 return container_of(inode, struct nfs_inode, vfs_inode); in NFS_I()
225 static inline struct nfs_fh *NFS_FH(const struct inode *inode) in NFS_FH() argument
227 return &NFS_I(inode)->fh; in NFS_FH()
230 static inline struct nfs_server *NFS_SERVER(const struct inode *inode) in NFS_SERVER() argument
232 return NFS_SB(inode->i_sb); in NFS_SERVER()
235 static inline struct rpc_clnt *NFS_CLIENT(const struct inode *inode) in NFS_CLIENT() argument
237 return NFS_SERVER(inode)->client; in NFS_CLIENT()
240 static inline const struct nfs_rpc_ops *NFS_PROTO(const struct inode *inode) in NFS_PROTO() argument
[all …]
Dfscrypt_notsupp.h16 static inline bool fscrypt_has_encryption_key(const struct inode *inode) in fscrypt_has_encryption_key() argument
21 static inline bool fscrypt_dummy_context_enabled(struct inode *inode) in fscrypt_dummy_context_enabled() argument
31 static inline struct fscrypt_ctx *fscrypt_get_ctx(const struct inode *inode, in fscrypt_get_ctx() argument
42 static inline struct page *fscrypt_encrypt_page(const struct inode *inode, in fscrypt_encrypt_page() argument
51 static inline int fscrypt_decrypt_page(const struct inode *inode, in fscrypt_decrypt_page() argument
92 static inline int fscrypt_has_permitted_context(struct inode *parent, in fscrypt_has_permitted_context()
93 struct inode *child) in fscrypt_has_permitted_context()
98 static inline int fscrypt_inherit_context(struct inode *parent, in fscrypt_inherit_context()
99 struct inode *child, in fscrypt_inherit_context()
106 static inline int fscrypt_get_encryption_info(struct inode *inode) in fscrypt_get_encryption_info() argument
[all …]
Dfscrypt_supp.h27 int (*get_context)(struct inode *, void *, size_t);
28 int (*set_context)(struct inode *, const void *, size_t, void *);
29 bool (*dummy_context)(struct inode *);
30 bool (*empty_dir)(struct inode *);
31 unsigned (*max_namelen)(struct inode *);
49 static inline bool fscrypt_has_encryption_key(const struct inode *inode) in fscrypt_has_encryption_key() argument
51 return (inode->i_crypt_info != NULL); in fscrypt_has_encryption_key()
54 static inline bool fscrypt_dummy_context_enabled(struct inode *inode) in fscrypt_dummy_context_enabled() argument
56 return inode->i_sb->s_cop->dummy_context && in fscrypt_dummy_context_enabled()
57 inode->i_sb->s_cop->dummy_context(inode); in fscrypt_dummy_context_enabled()
[all …]
Dfsnotify.h36 struct inode *inode = path->dentry->d_inode; in fsnotify_perm() local
55 return fsnotify(inode, fsnotify_mask, path, FSNOTIFY_EVENT_PATH, NULL, 0); in fsnotify_perm()
61 static inline void fsnotify_link_count(struct inode *inode) in fsnotify_link_count() argument
63 fsnotify(inode, FS_ATTRIB, inode, FSNOTIFY_EVENT_INODE, NULL, 0); in fsnotify_link_count()
69 static inline void fsnotify_move(struct inode *old_dir, struct inode *new_dir, in fsnotify_move()
71 int isdir, struct inode *target, struct dentry *moved) in fsnotify_move()
73 struct inode *source = moved->d_inode; in fsnotify_move()
103 static inline void fsnotify_inode_delete(struct inode *inode) in fsnotify_inode_delete() argument
105 __fsnotify_inode_delete(inode); in fsnotify_inode_delete()
132 static inline void fsnotify_inoderemove(struct inode *inode) in fsnotify_inoderemove() argument
[all …]
Ddevice_cgroup.h4 extern int __devcgroup_inode_permission(struct inode *inode, int mask);
6 static inline int devcgroup_inode_permission(struct inode *inode, int mask) in devcgroup_inode_permission() argument
8 if (likely(!inode->i_rdev)) in devcgroup_inode_permission()
10 if (!S_ISBLK(inode->i_mode) && !S_ISCHR(inode->i_mode)) in devcgroup_inode_permission()
12 return __devcgroup_inode_permission(inode, mask); in devcgroup_inode_permission()
15 static inline int devcgroup_inode_permission(struct inode *inode, int mask) in devcgroup_inode_permission() argument
Dfs.h75 typedef int (get_block_t)(struct inode *inode, sector_t iblock,
451 struct inode *host; /* owner: inode, block_device */
479 struct inode * bd_inode; /* will die */
592 #define i_size_ordered_init(inode) seqcount_init(&inode->i_size_seqcount) argument
594 #define i_size_ordered_init(inode) do { } while (0) argument
623 struct inode { struct
728 static inline unsigned int i_blocksize(const struct inode *node) in i_blocksize() argument
733 static inline int inode_unhashed(struct inode *inode) in inode_unhashed() argument
735 return hlist_unhashed(&inode->i_hash); in inode_unhashed()
764 static inline void inode_lock(struct inode *inode) in inode_lock() argument
[all …]
Dintegrity.h25 extern struct integrity_iint_cache *integrity_inode_get(struct inode *inode);
26 extern void integrity_inode_free(struct inode *inode);
31 integrity_inode_get(struct inode *inode) in integrity_inode_get() argument
36 static inline void integrity_inode_free(struct inode *inode) in integrity_inode_free() argument
Dwriteback.h91 struct inode *inode; /* inode being written out */ member
180 void inode_wait_for_writeback(struct inode *inode);
183 static inline void wait_on_inode(struct inode *inode) in wait_on_inode() argument
186 wait_on_bit(&inode->i_state, __I_NEW, TASK_UNINTERRUPTIBLE); in wait_on_inode()
194 void __inode_attach_wb(struct inode *inode, struct page *page);
196 struct inode *inode)
197 __releases(&inode->i_lock);
212 static inline void inode_attach_wb(struct inode *inode, struct page *page) in inode_attach_wb() argument
214 if (!inode->i_wb) in inode_attach_wb()
215 __inode_attach_wb(inode, page); in inode_attach_wb()
[all …]
Dbacking-dev.h176 static inline struct backing_dev_info *inode_to_bdi(struct inode *inode) in inode_to_bdi() argument
180 if (!inode) in inode_to_bdi()
183 sb = inode->i_sb; in inode_to_bdi()
186 return blk_get_backing_dev_info(I_BDEV(inode)); in inode_to_bdi()
253 int inode_congested(struct inode *inode, int cong_bits);
266 static inline bool inode_cgwb_enabled(struct inode *inode) in inode_cgwb_enabled() argument
268 struct backing_dev_info *bdi = inode_to_bdi(inode); in inode_cgwb_enabled()
274 (inode->i_sb->s_iflags & SB_I_CGROUPWB); in inode_cgwb_enabled()
342 static inline bool inode_to_wb_is_valid(struct inode *inode) in inode_to_wb_is_valid() argument
344 return inode->i_wb; in inode_to_wb_is_valid()
[all …]
Dfs_stack.h11 extern void fsstack_copy_attr_all(struct inode *dest, const struct inode *src);
12 extern void fsstack_copy_inode_size(struct inode *dst, struct inode *src);
15 static inline void fsstack_copy_attr_atime(struct inode *dest, in fsstack_copy_attr_atime()
16 const struct inode *src) in fsstack_copy_attr_atime()
21 static inline void fsstack_copy_attr_times(struct inode *dest, in fsstack_copy_attr_times()
22 const struct inode *src) in fsstack_copy_attr_times()
Diomap.h7 struct inode;
59 int (*iomap_begin)(struct inode *inode, loff_t pos, loff_t length,
68 int (*iomap_end)(struct inode *inode, loff_t pos, loff_t length,
74 int iomap_file_dirty(struct inode *inode, loff_t pos, loff_t len,
76 int iomap_zero_range(struct inode *inode, loff_t pos, loff_t len,
78 int iomap_truncate_page(struct inode *inode, loff_t pos, bool *did_zero,
82 int iomap_fiemap(struct inode *inode, struct fiemap_extent_info *fieinfo,
Dfscrypt.h60 static inline int fscrypt_require_key(struct inode *inode) in fscrypt_require_key() argument
62 if (IS_ENCRYPTED(inode)) { in fscrypt_require_key()
63 int err = fscrypt_get_encryption_info(inode); in fscrypt_require_key()
67 if (!fscrypt_has_encryption_key(inode)) in fscrypt_require_key()
92 struct inode *dir, in fscrypt_prepare_link()
121 static inline int fscrypt_prepare_rename(struct inode *old_dir, in fscrypt_prepare_rename()
123 struct inode *new_dir, in fscrypt_prepare_rename()
152 static inline int fscrypt_prepare_lookup(struct inode *dir, in fscrypt_prepare_lookup()
209 static inline int fscrypt_prepare_symlink(struct inode *dir, in fscrypt_prepare_symlink()
240 static inline int fscrypt_encrypt_symlink(struct inode *inode, in fscrypt_encrypt_symlink() argument
[all …]
Dexportfs.h8 struct inode;
193 int (*encode_fh)(struct inode *inode, __u32 *fh, int *max_len,
194 struct inode *parent);
202 int (*commit_metadata)(struct inode *inode);
205 int (*map_blocks)(struct inode *inode, loff_t offset,
208 int (*commit_blocks)(struct inode *inode, struct iomap *iomaps,
212 extern int exportfs_encode_inode_fh(struct inode *inode, struct fid *fid,
213 int *max_len, struct inode *parent);
225 struct inode *(*get_inode) (struct super_block *sb, u64 ino, u32 gen));
228 struct inode *(*get_inode) (struct super_block *sb, u64 ino, u32 gen));
Dramfs.h4 struct inode *ramfs_get_inode(struct super_block *sb, const struct inode *dir,
11 ramfs_nommu_expand_for_mapping(struct inode *inode, size_t newsize) in ramfs_nommu_expand_for_mapping() argument
16 extern int ramfs_nommu_expand_for_mapping(struct inode *inode, size_t newsize);
Dfsnotify_backend.h96 struct inode *inode,
114 struct inode *inode; /* either the inode the event happened to or its parent */ member
228 struct inode *inode; /* inode this mark is associated with */ member
248 extern int fsnotify(struct inode *to_tell, __u32 mask, void *data, int data_is,
251 extern void __fsnotify_inode_delete(struct inode *inode);
255 static inline int fsnotify_inode_watches_children(struct inode *inode) in fsnotify_inode_watches_children() argument
258 if (!(inode->i_fsnotify_mask & FS_EVENT_ON_CHILD)) in fsnotify_inode_watches_children()
262 return inode->i_fsnotify_mask & FS_EVENTS_POSS_ON_CHILD; in fsnotify_inode_watches_children()
320 extern void fsnotify_recalc_inode_mask(struct inode *inode);
323 … struct fsnotify_mark *fsnotify_find_inode_mark(struct fsnotify_group *group, struct inode *inode);
[all …]
Dshmem_fs.h23 struct inode vfs_inode;
42 static inline struct shmem_inode_info *SHMEM_I(struct inode *inode) in SHMEM_I() argument
44 return container_of(inode, struct shmem_inode_info, vfs_inode); in SHMEM_I()
64 extern void shmem_truncate_range(struct inode *inode, loff_t start, loff_t end);
81 extern int shmem_getpage(struct inode *inode, pgoff_t index,
100 extern bool shmem_charge(struct inode *inode, long pages);
101 extern void shmem_uncharge(struct inode *inode, long pages);
/include/trace/events/
Dandroid_fs.h11 TP_PROTO(struct inode *inode, loff_t offset, int bytes,
13 TP_ARGS(inode, offset, bytes, pid, pathname, command));
16 TP_PROTO(struct inode *inode, loff_t offset, int bytes),
17 TP_ARGS(inode, offset, bytes));
20 TP_PROTO(struct inode *inode, loff_t offset, int bytes,
22 TP_ARGS(inode, offset, bytes, pid, pathname, command));
25 TP_PROTO(struct inode *inode, loff_t offset, int bytes),
26 TP_ARGS(inode, offset, bytes));
40 android_fstrace_get_pathname(char *buf, int buflen, struct inode *inode) in android_fstrace_get_pathname() argument
50 ihold(inode); in android_fstrace_get_pathname()
[all …]
Dfilelock.h38 TP_PROTO(struct inode *inode, int type, struct file_lock_context *ctx),
40 TP_ARGS(inode, type, ctx),
50 __entry->s_dev = inode->i_sb->s_dev;
51 __entry->i_ino = inode->i_ino;
62 TP_PROTO(struct inode *inode, struct file_lock *fl, int ret),
64 TP_ARGS(inode, fl, ret),
82 __entry->s_dev = inode->i_sb->s_dev;
83 __entry->i_ino = inode->i_ino;
103 TP_PROTO(struct inode *inode, struct file_lock *fl, int ret),
104 TP_ARGS(inode, fl, ret));
[all …]
Dext4.h19 #define EXT4_I(inode) (container_of(inode, struct ext4_inode_info, vfs_inode)) argument
77 TP_PROTO(struct inode *inode, ino_t orig_ino),
79 TP_ARGS(inode, orig_ino),
92 __entry->dev = inode->i_sb->s_dev;
93 __entry->ino = inode->i_ino;
94 __entry->uid = i_uid_read(inode);
95 __entry->gid = i_gid_read(inode);
96 __entry->mode = inode->i_mode;
107 TP_PROTO(struct inode *inode),
109 TP_ARGS(inode),
[all …]
Dnilfs2.h99 TP_PROTO(struct inode *sufile,
106 __field(struct inode *, sufile)
124 TP_PROTO(struct inode *sufile,
130 __field(struct inode *, sufile)
145 TP_PROTO(struct inode *sufile,
151 __field(struct inode *, sufile)
166 TP_PROTO(struct inode *inode,
170 TP_ARGS(inode, ino, block),
173 __field(struct inode *, inode)
179 __entry->inode = inode;
[all …]
Df2fs.h150 TP_PROTO(struct inode *inode),
152 TP_ARGS(inode),
166 __entry->dev = inode->i_sb->s_dev;
167 __entry->ino = inode->i_ino;
168 __entry->pino = F2FS_I(inode)->i_pino;
169 __entry->mode = inode->i_mode;
170 __entry->nlink = inode->i_nlink;
171 __entry->size = inode->i_size;
172 __entry->blocks = inode->i_blocks;
173 __entry->advise = F2FS_I(inode)->i_advise;
[all …]
Dwriteback.h83 TP_PROTO(struct inode *inode, int flags),
85 TP_ARGS(inode, flags),
95 struct backing_dev_info *bdi = inode_to_bdi(inode);
100 __entry->ino = inode->i_ino;
101 __entry->state = inode->i_state;
115 TP_PROTO(struct inode *inode, int flags),
117 TP_ARGS(inode, flags)
122 TP_PROTO(struct inode *inode, int flags),
124 TP_ARGS(inode, flags)
129 TP_PROTO(struct inode *inode, int flags),
[all …]
Dandroid_fs_template.h7 TP_PROTO(struct inode *inode, loff_t offset, int bytes,
9 TP_ARGS(inode, offset, bytes, pid, pathname, command),
30 __entry->i_size = i_size_read(inode);
34 __entry->ino = inode->i_ino;
45 TP_PROTO(struct inode *inode, loff_t offset, int bytes),
46 TP_ARGS(inode, offset, bytes),
54 __entry->ino = inode->i_ino;

1234