Nicholas Flintham | 1e3d311 | 2013-04-10 10:48:38 +0100 | [diff] [blame^] | 1 | #ifndef _LINUX_FS_STACK_H |
| 2 | #define _LINUX_FS_STACK_H |
| 3 | |
| 4 | |
| 5 | #include <linux/fs.h> |
| 6 | |
| 7 | extern void fsstack_copy_attr_all(struct inode *dest, const struct inode *src); |
| 8 | extern void fsstack_copy_inode_size(struct inode *dst, struct inode *src); |
| 9 | |
| 10 | static inline void fsstack_copy_attr_atime(struct inode *dest, |
| 11 | const struct inode *src) |
| 12 | { |
| 13 | dest->i_atime = src->i_atime; |
| 14 | } |
| 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 | |
| 24 | #endif |