mirror of
https://github.com/followmsi/android_kernel_google_msm.git
synced 2024-11-06 23:17:41 +00:00
d65ad6ea17
The last patch is: commit beaa57dd986d4f398728c060692fc2452895cfd8 Author: Chao Yu <chao2.yu@samsung.com> Date: Thu Oct 22 18:24:12 2015 +0800 f2fs: fix to skip shrinking extent nodes In f2fs_shrink_extent_tree we should stop shrink flow if we have already shrunk enough nodes in extent cache. Change-Id: I7bc76a98ce99412c59435f4573ace38fca604694 Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
46 lines
1,013 B
C
46 lines
1,013 B
C
/*
|
|
* f2fs IO tracer
|
|
*
|
|
* Copyright (c) 2014 Motorola Mobility
|
|
* Copyright (c) 2014 Jaegeuk Kim <jaegeuk@kernel.org>
|
|
*
|
|
* This program is free software; you can redistribute it and/or modify
|
|
* it under the terms of the GNU General Public License version 2 as
|
|
* published by the Free Software Foundation.
|
|
*/
|
|
#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__ */
|