aboutsummaryrefslogtreecommitdiffstats
path: root/fs/f2fs/data.c
diff options
context:
space:
mode:
authorNamjae Jeon <namjae.jeon@samsung.com>2013-04-23 04:00:52 -0400
committerJaegeuk Kim <jaegeuk.kim@samsung.com>2013-04-23 05:15:16 -0400
commitc01e285324793a86c2c90c8451ed6feb04b3d310 (patch)
treeea072bf411ce60ca40e4fb4c44400d58cdf9499d /fs/f2fs/data.c
parent8e46b3ed11b750a740fec0a313ad9118059fc37b (diff)
f2fs: add tracepoints to debug the block allocation
Add tracepoints to debug the block allocation & fallocate. Signed-off-by: Namjae Jeon <namjae.jeon@samsung.com> Signed-off-by: Pankaj Kumar <pankaj.km@samsung.com> Acked-by: Steven Rostedt <rostedt@goodmis.org> [Jaegeuk: enhance information] Signed-off-by: Jaegeuk Kim <jaegeuk.kim@samsung.com>
Diffstat (limited to 'fs/f2fs/data.c')
-rw-r--r--fs/f2fs/data.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/f2fs/data.c b/fs/f2fs/data.c
index 8e8b14d714fc..1220b5c2ea21 100644
--- a/fs/f2fs/data.c
+++ b/fs/f2fs/data.c
@@ -55,6 +55,8 @@ int reserve_new_block(struct dnode_of_data *dn)
55 if (!inc_valid_block_count(sbi, dn->inode, 1)) 55 if (!inc_valid_block_count(sbi, dn->inode, 1))
56 return -ENOSPC; 56 return -ENOSPC;
57 57
58 trace_f2fs_reserve_new_block(dn->inode, dn->nid, dn->ofs_in_node);
59
58 __set_data_blkaddr(dn, NEW_ADDR); 60 __set_data_blkaddr(dn, NEW_ADDR);
59 dn->data_blkaddr = NEW_ADDR; 61 dn->data_blkaddr = NEW_ADDR;
60 sync_inode_page(dn); 62 sync_inode_page(dn);