summaryrefslogtreecommitdiff
path: root/include/linux/fs_stack.h
blob: 54210a42c30d1629411ac5b50a23080686e38e21 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
/* SPDX-License-Identifier: GPL-2.0 */
#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 */
extern void fsstack_copy_attr_all(struct inode *dest, const struct inode *src);
extern void fsstack_copy_inode_size(struct inode *dst, struct inode *src);

/* 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 */
ion for DTLB1_GPAGE_WRITESEd Maste 2019-09-30perf vendor events s390: Use s390 machine name instead of type 8561Thomas Richter 2019-09-30perf vendor events s390: Add JSON transaction for machine type 8561Thomas Richter 2019-07-12perf vendor events s390: Add JSON files for machine type 8561Thomas Richter 2019-04-01perf list: Fix s390 counter long description for L1D_RO_EXCL_WRITESThomas Richter 2018-07-24perf json: Add s390 transaction counter definitionThomas Richter 2018-07-24perf list: Add s390 support for detailed PMU event descriptionThomas Richter 2018-04-23perf list: Remove s390 specific strcmp_cpuid_cmp functionThomas Richter 2018-03-27perf vendor events s390: Add JSON files for IBM z14Thomas Richter 2018-03-27perf vendor events s390: Add JSON files for IBM z13Thomas Richter 2018-03-27perf vendor events s390: Add JSON files for IBM zEC12 zBC12Thomas Richter 2018-03-27perf vendor events s390: Add JSON files for IBM z196Thomas Richter 2018-03-27perf vendor events s390: Add JSON files for IBM z10EC z10BCThomas Richter