diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2015-02-12 22:28:50 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2015-02-12 22:28:50 -0500 |
commit | c7d7b98671552abade78834c522b7308bda73c0d (patch) | |
tree | 062dab589e90a8006d2be5d55f8f95f4f16be93b /fs/f2fs/trace.h | |
parent | 818099574b04c5301eacbbcd441022b353a65466 (diff) | |
parent | 1a118ccfd60fc78e64c0a3ab9e85075545839d6e (diff) |
Merge tag 'for-f2fs-3.20' of git://git.kernel.org/pub/scm/linux/kernel/git/jaegeuk/f2fs
Pull f2fs updates from Jaegeuk Kim:
"Major changes are to:
- add f2fs_io_tracer and F2FS_IOC_GETVERSION
- fix wrong acl assignment from parent
- fix accessing wrong data blocks
- fix wrong condition check for f2fs_sync_fs
- align start block address for direct_io
- add and refactor the readahead flows of FS metadata
- refactor atomic and volatile write policies
But most of patches are for clean-ups and minor bug fixes. Some of
them refactor old code too"
* tag 'for-f2fs-3.20' of git://git.kernel.org/pub/scm/linux/kernel/git/jaegeuk/f2fs: (64 commits)
f2fs: use spinlock for segmap_lock instead of rwlock
f2fs: fix accessing wrong indexed data blocks
f2fs: avoid variable length array
f2fs: fix sparse warnings
f2fs: allocate data blocks in advance for f2fs_direct_IO
f2fs: introduce macros to convert bytes and blocks in f2fs
f2fs: call set_buffer_new for get_block
f2fs: check node page contents all the time
f2fs: avoid data offset overflow when lseeking huge file
f2fs: fix to use highmem for pages of newly created directory
f2fs: introduce a batched trim
f2fs: merge {invalidate,release}page for meta/node/data pages
f2fs: show the number of writeback pages in stat
f2fs: keep PagePrivate during releasepage
f2fs: should fail mount when trying to recover data on read-only dev
f2fs: split UMOUNT and FASTBOOT flags
f2fs: avoid write_checkpoint if f2fs is mounted readonly
f2fs: support norecovery mount option
f2fs: fix not to drop mount options when retrying fill_super
f2fs: merge flags in struct f2fs_sb_info
...
Diffstat (limited to 'fs/f2fs/trace.h')
-rw-r--r-- | fs/f2fs/trace.h | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/fs/f2fs/trace.h b/fs/f2fs/trace.h new file mode 100644 index 000000000000..1041dbeb52ae --- /dev/null +++ b/fs/f2fs/trace.h | |||
@@ -0,0 +1,46 @@ | |||
1 | /* | ||
2 | * f2fs IO tracer | ||
3 | * | ||
4 | * Copyright (c) 2014 Motorola Mobility | ||
5 | * Copyright (c) 2014 Jaegeuk Kim <jaegeuk@kernel.org> | ||
6 | * | ||
7 | * This program is free software; you can redistribute it and/or modify | ||
8 | * it under the terms of the GNU General Public License version 2 as | ||
9 | * published by the Free Software Foundation. | ||
10 | */ | ||
11 | #ifndef __F2FS_TRACE_H__ | ||
12 | #define __F2FS_TRACE_H__ | ||
13 | |||
14 | #ifdef CONFIG_F2FS_IO_TRACE | ||
15 | #include <trace/events/f2fs.h> | ||
16 | |||
17 | enum file_type { | ||
18 | __NORMAL_FILE, | ||
19 | __DIR_FILE, | ||
20 | __NODE_FILE, | ||
21 | __META_FILE, | ||
22 | __ATOMIC_FILE, | ||
23 | __VOLATILE_FILE, | ||
24 | __MISC_FILE, | ||
25 | }; | ||
26 | |||
27 | struct last_io_info { | ||
28 | int major, minor; | ||
29 | pid_t pid; | ||
30 | enum file_type type; | ||
31 | struct f2fs_io_info fio; | ||
32 | block_t len; | ||
33 | }; | ||
34 | |||
35 | extern void f2fs_trace_pid(struct page *); | ||
36 | extern void f2fs_trace_ios(struct page *, struct f2fs_io_info *, int); | ||
37 | extern void f2fs_build_trace_ios(void); | ||
38 | extern void f2fs_destroy_trace_ios(void); | ||
39 | #else | ||
40 | #define f2fs_trace_pid(p) | ||
41 | #define f2fs_trace_ios(p, i, n) | ||
42 | #define f2fs_build_trace_ios() | ||
43 | #define f2fs_destroy_trace_ios() | ||
44 | |||
45 | #endif | ||
46 | #endif /* __F2FS_TRACE_H__ */ | ||