diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2014-10-08 12:53:15 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2014-10-08 12:53:15 -0400 |
commit | da01e61428aa2b5c424fddc11178498462d8c77f (patch) | |
tree | f22a693c3292658c665b77df5990b4caceed846d /include/trace/events | |
parent | 6dea0737bc5e160efc77f4c39d393b94fd2746dc (diff) | |
parent | 02a1335f25a386db9afc68f8315162f862aac93f (diff) |
Merge tag 'f2fs-for-3.18' of git://git.kernel.org/pub/scm/linux/kernel/git/jaegeuk/f2fs
Pull f2fs updates from Jaegeuk Kim:
"This patch-set introduces a couple of new features such as large
sector size, FITRIM, and atomic/volatile writes.
Several patches enhance power-off recovery and checkpoint routines.
The fsck.f2fs starts to support fixing corrupted partitions with
recovery hints provided by this patch-set.
Summary:
- retain some recovery information for fsck.f2fs
- enhance checkpoint speed
- enhance flush command management
- bug fix for lseek
- tune in-place-update policies
- enhance roll-forward speed
- revisit all the roll-forward and fsync rules
- support larget sector size
- support FITRIM
- support atomic and volatile writes
And several clean-ups and bug fixes are included"
* tag 'f2fs-for-3.18' of git://git.kernel.org/pub/scm/linux/kernel/git/jaegeuk/f2fs: (42 commits)
f2fs: support volatile operations for transient data
f2fs: support atomic writes
f2fs: remove unused return value
f2fs: clean up f2fs_ioctl functions
f2fs: potential shift wrapping buf in f2fs_trim_fs()
f2fs: call f2fs_unlock_op after error was handled
f2fs: check the use of macros on block counts and addresses
f2fs: refactor flush_nat_entries to remove costly reorganizing ops
f2fs: introduce FITRIM in f2fs_ioctl
f2fs: introduce cp_control structure
f2fs: use more free segments until SSR is activated
f2fs: change the ipu_policy option to enable combinations
f2fs: fix to search whole dirty segmap when get_victim
f2fs: fix to clean previous mount option when remount_fs
f2fs: skip punching hole in special condition
f2fs: support large sector size
f2fs: fix to truncate blocks past EOF in ->setattr
f2fs: update i_size when __allocate_data_block
f2fs: use MAX_BIO_BLOCKS(sbi)
f2fs: remove redundant operation during roll-forward recovery
...
Diffstat (limited to 'include/trace/events')
-rw-r--r-- | include/trace/events/f2fs.h | 16 |
1 files changed, 11 insertions, 5 deletions
diff --git a/include/trace/events/f2fs.h b/include/trace/events/f2fs.h index d06d44363fea..bbc4de9baef7 100644 --- a/include/trace/events/f2fs.h +++ b/include/trace/events/f2fs.h | |||
@@ -69,6 +69,12 @@ | |||
69 | { GC_GREEDY, "Greedy" }, \ | 69 | { GC_GREEDY, "Greedy" }, \ |
70 | { GC_CB, "Cost-Benefit" }) | 70 | { GC_CB, "Cost-Benefit" }) |
71 | 71 | ||
72 | #define show_cpreason(type) \ | ||
73 | __print_symbolic(type, \ | ||
74 | { CP_UMOUNT, "Umount" }, \ | ||
75 | { CP_SYNC, "Sync" }, \ | ||
76 | { CP_DISCARD, "Discard" }) | ||
77 | |||
72 | struct victim_sel_policy; | 78 | struct victim_sel_policy; |
73 | 79 | ||
74 | DECLARE_EVENT_CLASS(f2fs__inode, | 80 | DECLARE_EVENT_CLASS(f2fs__inode, |
@@ -944,25 +950,25 @@ TRACE_EVENT(f2fs_submit_page_mbio, | |||
944 | 950 | ||
945 | TRACE_EVENT(f2fs_write_checkpoint, | 951 | TRACE_EVENT(f2fs_write_checkpoint, |
946 | 952 | ||
947 | TP_PROTO(struct super_block *sb, bool is_umount, char *msg), | 953 | TP_PROTO(struct super_block *sb, int reason, char *msg), |
948 | 954 | ||
949 | TP_ARGS(sb, is_umount, msg), | 955 | TP_ARGS(sb, reason, msg), |
950 | 956 | ||
951 | TP_STRUCT__entry( | 957 | TP_STRUCT__entry( |
952 | __field(dev_t, dev) | 958 | __field(dev_t, dev) |
953 | __field(bool, is_umount) | 959 | __field(int, reason) |
954 | __field(char *, msg) | 960 | __field(char *, msg) |
955 | ), | 961 | ), |
956 | 962 | ||
957 | TP_fast_assign( | 963 | TP_fast_assign( |
958 | __entry->dev = sb->s_dev; | 964 | __entry->dev = sb->s_dev; |
959 | __entry->is_umount = is_umount; | 965 | __entry->reason = reason; |
960 | __entry->msg = msg; | 966 | __entry->msg = msg; |
961 | ), | 967 | ), |
962 | 968 | ||
963 | TP_printk("dev = (%d,%d), checkpoint for %s, state = %s", | 969 | TP_printk("dev = (%d,%d), checkpoint for %s, state = %s", |
964 | show_dev(__entry), | 970 | show_dev(__entry), |
965 | __entry->is_umount ? "clean umount" : "consistency", | 971 | show_cpreason(__entry->reason), |
966 | __entry->msg) | 972 | __entry->msg) |
967 | ); | 973 | ); |
968 | 974 | ||