Skip to content

Commit

Permalink
GFS2: Fix up "off by one" in the previous patch
Browse files Browse the repository at this point in the history
The trace point should take extlen and not *ndata as the
extent length.

Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>
  • Loading branch information
Steven Whitehouse committed Nov 21, 2011
1 parent 6e87ed0 commit 465f0a7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fs/gfs2/rgrp.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 465f0a7

Please sign in to comment.