提交 465f0a76 编写于 作者: S Steven Whitehouse

GFS2: Fix up "off by one" in the previous patch

The trace point should take extlen and not *ndata as the
extent length.
Signed-off-by: NSteven Whitehouse <swhiteho@redhat.com>
上级 6e87ed0f
......@@ -1378,7 +1378,7 @@ int gfs2_alloc_blocks(struct gfs2_inode *ip, u64 *bn, unsigned int *ndata,
ip->i_inode.i_gid);
rgd->rd_free_clone -= extlen;
trace_gfs2_block_alloc(ip, block, *ndata,
trace_gfs2_block_alloc(ip, block, extlen,
dinode ? GFS2_BLKST_DINODE : GFS2_BLKST_USED);
*bn = block;
return 0;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册