mirror of
https://github.com/torvalds/linux.git
synced 2024-12-11 05:33:09 +00:00
d29fbcdb05
This patch corrects the SPDX License Identifier style in header files related to F2FS File System support. For C header files Documentation/process/license-rules.rst mandates C-like comments (opposed to C source files where C++ style should be used). Changes made by using a script provided by Joe Perches here: https://lkml.org/lkml/2019/2/7/46. Suggested-by: Joe Perches <joe@perches.com> Signed-off-by: Nishad Kamdar <nishadkamdar@gmail.com> Reviewed-by: Chao Yu <yuchao0@huawei.com> Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
44 lines
862 B
C
44 lines
862 B
C
/* SPDX-License-Identifier: GPL-2.0 */
|
|
/*
|
|
* f2fs IO tracer
|
|
*
|
|
* Copyright (c) 2014 Motorola Mobility
|
|
* Copyright (c) 2014 Jaegeuk Kim <jaegeuk@kernel.org>
|
|
*/
|
|
#ifndef __F2FS_TRACE_H__
|
|
#define __F2FS_TRACE_H__
|
|
|
|
#ifdef CONFIG_F2FS_IO_TRACE
|
|
#include <trace/events/f2fs.h>
|
|
|
|
enum file_type {
|
|
__NORMAL_FILE,
|
|
__DIR_FILE,
|
|
__NODE_FILE,
|
|
__META_FILE,
|
|
__ATOMIC_FILE,
|
|
__VOLATILE_FILE,
|
|
__MISC_FILE,
|
|
};
|
|
|
|
struct last_io_info {
|
|
int major, minor;
|
|
pid_t pid;
|
|
enum file_type type;
|
|
struct f2fs_io_info fio;
|
|
block_t len;
|
|
};
|
|
|
|
extern void f2fs_trace_pid(struct page *);
|
|
extern void f2fs_trace_ios(struct f2fs_io_info *, int);
|
|
extern void f2fs_build_trace_ios(void);
|
|
extern void f2fs_destroy_trace_ios(void);
|
|
#else
|
|
#define f2fs_trace_pid(p)
|
|
#define f2fs_trace_ios(i, n)
|
|
#define f2fs_build_trace_ios()
|
|
#define f2fs_destroy_trace_ios()
|
|
|
|
#endif
|
|
#endif /* __F2FS_TRACE_H__ */
|