Blame view

include/linux/fs_stack.h 772 Bytes
42cf11939   Josef "Jeff" Sipek   [PATCH] fsstack: ...
1
2
3
4
5
6
7
8
9
10
  #ifndef _LINUX_FS_STACK_H
  #define _LINUX_FS_STACK_H
  
  /* This file defines generic functions used primarily by stackable
   * filesystems; none of these functions require i_mutex to be held.
   */
  
  #include <linux/fs.h>
  
  /* externs for fs/stack.c */
9afa2fb6c   Erez Zadok   fsstack/ecryptfs:...
11
  extern void fsstack_copy_attr_all(struct inode *dest, const struct inode *src);
1b8ab8159   Erez Zadok   VFS/fsstack: hand...
12
  extern void fsstack_copy_inode_size(struct inode *dst, struct inode *src);
42cf11939   Josef "Jeff" Sipek   [PATCH] fsstack: ...
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
  
  /* inlines */
  static inline void fsstack_copy_attr_atime(struct inode *dest,
  					   const struct inode *src)
  {
  	dest->i_atime = src->i_atime;
  }
  
  static inline void fsstack_copy_attr_times(struct inode *dest,
  					   const struct inode *src)
  {
  	dest->i_atime = src->i_atime;
  	dest->i_mtime = src->i_mtime;
  	dest->i_ctime = src->i_ctime;
  }
  
  #endif /* _LINUX_FS_STACK_H */