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: Steven Whitehouse <swhiteho@redhat.com>
This commit is contained in:
Steven Whitehouse 2011-11-21 10:05:55 +00:00
parent 6e87ed0fc9
commit 465f0a760d
1 changed files with 1 additions and 1 deletions

View File

@ -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;