1 /* SPDX-License-Identifier: GPL-2.0 */
2 #ifndef _LINUX_FS_STACK_H
3 #define _LINUX_FS_STACK_H
5 /* This file defines generic functions used primarily by stackable
6 * filesystems; none of these functions require i_mutex to be held.
11 /* externs for fs/stack.c */
12 extern void fsstack_copy_attr_all(struct inode
*dest
, const struct inode
*src
);
13 extern void fsstack_copy_inode_size(struct inode
*dst
, struct inode
*src
);
16 static inline void fsstack_copy_attr_atime(struct inode
*dest
,
17 const struct inode
*src
)
19 dest
->i_atime
= src
->i_atime
;
22 static inline void fsstack_copy_attr_times(struct inode
*dest
,
23 const struct inode
*src
)
25 dest
->i_atime
= src
->i_atime
;
26 dest
->i_mtime
= src
->i_mtime
;
27 dest
->i_ctime
= src
->i_ctime
;
30 #endif /* _LINUX_FS_STACK_H */