fs_stack.h 772 B

1234567891011121314151617181920212223242526272829
  1. #ifndef _LINUX_FS_STACK_H
  2. #define _LINUX_FS_STACK_H
  3. /* This file defines generic functions used primarily by stackable
  4. * filesystems; none of these functions require i_mutex to be held.
  5. */
  6. #include <linux/fs.h>
  7. /* externs for fs/stack.c */
  8. extern void fsstack_copy_attr_all(struct inode *dest, const struct inode *src);
  9. extern void fsstack_copy_inode_size(struct inode *dst, struct inode *src);
  10. /* inlines */
  11. static inline void fsstack_copy_attr_atime(struct inode *dest,
  12. const struct inode *src)
  13. {
  14. dest->i_atime = src->i_atime;
  15. }
  16. static inline void fsstack_copy_attr_times(struct inode *dest,
  17. const struct inode *src)
  18. {
  19. dest->i_atime = src->i_atime;
  20. dest->i_mtime = src->i_mtime;
  21. dest->i_ctime = src->i_ctime;
  22. }
  23. #endif /* _LINUX_FS_STACK_H */