Lines Matching refs:inode

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);
78 void dquot_free_inode(struct inode *inode);
79 void dquot_reclaim_space_nodirty(struct inode *inode, qsize_t number);
96 int dquot_file_open(struct inode *inode, struct file *file);
100 int dquot_load_quota_inode(struct inode *inode, int type, int format_id,
118 int __dquot_transfer(struct inode *inode, struct dquot **transfer_to);
119 int dquot_transfer(struct mnt_idmap *idmap, struct inode *inode,
216 static inline int dquot_initialize(struct inode *inode) in dquot_initialize() argument
221 static inline bool dquot_initialize_needed(struct inode *inode) in dquot_initialize_needed() argument
226 static inline void dquot_drop(struct inode *inode) in dquot_drop() argument
230 static inline int dquot_alloc_inode(struct inode *inode) in dquot_alloc_inode() argument
235 static inline void dquot_free_inode(struct inode *inode) in dquot_free_inode() argument
240 struct inode *inode, struct iattr *iattr) in dquot_transfer() argument
245 static inline int __dquot_alloc_space(struct inode *inode, qsize_t number, in __dquot_alloc_space() argument
249 inode_add_bytes(inode, number); in __dquot_alloc_space()
253 static inline void __dquot_free_space(struct inode *inode, qsize_t number, in __dquot_free_space() argument
257 inode_sub_bytes(inode, number); in __dquot_free_space()
260 static inline int dquot_claim_space_nodirty(struct inode *inode, qsize_t number) in dquot_claim_space_nodirty() argument
262 inode_add_bytes(inode, number); in dquot_claim_space_nodirty()
266 static inline int dquot_reclaim_space_nodirty(struct inode *inode, in dquot_reclaim_space_nodirty() argument
269 inode_sub_bytes(inode, number); in dquot_reclaim_space_nodirty()
298 static inline int dquot_alloc_space_nodirty(struct inode *inode, qsize_t nr) in dquot_alloc_space_nodirty() argument
300 return __dquot_alloc_space(inode, nr, DQUOT_SPACE_WARN); in dquot_alloc_space_nodirty()
303 static inline void dquot_alloc_space_nofail(struct inode *inode, qsize_t nr) in dquot_alloc_space_nofail() argument
305 __dquot_alloc_space(inode, nr, DQUOT_SPACE_WARN|DQUOT_SPACE_NOFAIL); in dquot_alloc_space_nofail()
306 mark_inode_dirty_sync(inode); in dquot_alloc_space_nofail()
309 static inline int dquot_alloc_space(struct inode *inode, qsize_t nr) in dquot_alloc_space() argument
313 ret = dquot_alloc_space_nodirty(inode, nr); in dquot_alloc_space()
320 mark_inode_dirty(inode); in dquot_alloc_space()
325 static inline int dquot_alloc_block_nodirty(struct inode *inode, qsize_t nr) in dquot_alloc_block_nodirty() argument
327 return dquot_alloc_space_nodirty(inode, nr << inode->i_blkbits); in dquot_alloc_block_nodirty()
330 static inline void dquot_alloc_block_nofail(struct inode *inode, qsize_t nr) in dquot_alloc_block_nofail() argument
332 dquot_alloc_space_nofail(inode, nr << inode->i_blkbits); in dquot_alloc_block_nofail()
335 static inline int dquot_alloc_block(struct inode *inode, qsize_t nr) in dquot_alloc_block() argument
337 return dquot_alloc_space(inode, nr << inode->i_blkbits); in dquot_alloc_block()
340 static inline int dquot_prealloc_block_nodirty(struct inode *inode, qsize_t nr) in dquot_prealloc_block_nodirty() argument
342 return __dquot_alloc_space(inode, nr << inode->i_blkbits, 0); in dquot_prealloc_block_nodirty()
345 static inline int dquot_prealloc_block(struct inode *inode, qsize_t nr) in dquot_prealloc_block() argument
349 ret = dquot_prealloc_block_nodirty(inode, nr); in dquot_prealloc_block()
351 mark_inode_dirty_sync(inode); in dquot_prealloc_block()
355 static inline int dquot_reserve_block(struct inode *inode, qsize_t nr) in dquot_reserve_block() argument
357 return __dquot_alloc_space(inode, nr << inode->i_blkbits, in dquot_reserve_block()
361 static inline int dquot_claim_block(struct inode *inode, qsize_t nr) in dquot_claim_block() argument
365 ret = dquot_claim_space_nodirty(inode, nr << inode->i_blkbits); in dquot_claim_block()
367 mark_inode_dirty_sync(inode); in dquot_claim_block()
371 static inline void dquot_reclaim_block(struct inode *inode, qsize_t nr) in dquot_reclaim_block() argument
373 dquot_reclaim_space_nodirty(inode, nr << inode->i_blkbits); in dquot_reclaim_block()
374 mark_inode_dirty_sync(inode); in dquot_reclaim_block()
377 static inline void dquot_free_space_nodirty(struct inode *inode, qsize_t nr) in dquot_free_space_nodirty() argument
379 __dquot_free_space(inode, nr, 0); in dquot_free_space_nodirty()
382 static inline void dquot_free_space(struct inode *inode, qsize_t nr) in dquot_free_space() argument
384 dquot_free_space_nodirty(inode, nr); in dquot_free_space()
385 mark_inode_dirty_sync(inode); in dquot_free_space()
388 static inline void dquot_free_block_nodirty(struct inode *inode, qsize_t nr) in dquot_free_block_nodirty() argument
390 dquot_free_space_nodirty(inode, nr << inode->i_blkbits); in dquot_free_block_nodirty()
393 static inline void dquot_free_block(struct inode *inode, qsize_t nr) in dquot_free_block() argument
395 dquot_free_space(inode, nr << inode->i_blkbits); in dquot_free_block()
398 static inline void dquot_release_reservation_block(struct inode *inode, in dquot_release_reservation_block() argument
401 __dquot_free_space(inode, nr << inode->i_blkbits, DQUOT_SPACE_RESERVE); in dquot_release_reservation_block()