diff options
author | Steven Whitehouse <swhiteho@redhat.com> | 2011-11-21 05:05:55 -0500 |
---|---|---|
committer | Steven Whitehouse <swhiteho@redhat.com> | 2011-11-21 05:05:55 -0500 |
commit | 465f0a760db4362f3353aaa95fea767e56370006 (patch) | |
tree | 36b4e12f747105902039ba1fcfe78a18b744531b | |
parent | 6e87ed0fc93ffbe2aec296e6912b1dcb19034d6c (diff) |
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>
-rw-r--r-- | fs/gfs2/rgrp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/gfs2/rgrp.c b/fs/gfs2/rgrp.c index b8935afab20b..f1d19603d237 100644 --- a/fs/gfs2/rgrp.c +++ b/fs/gfs2/rgrp.c | |||
@@ -1378,7 +1378,7 @@ int gfs2_alloc_blocks(struct gfs2_inode *ip, u64 *bn, unsigned int *ndata, | |||
1378 | ip->i_inode.i_gid); | 1378 | ip->i_inode.i_gid); |
1379 | 1379 | ||
1380 | rgd->rd_free_clone -= extlen; | 1380 | rgd->rd_free_clone -= extlen; |
1381 | trace_gfs2_block_alloc(ip, block, *ndata, | 1381 | trace_gfs2_block_alloc(ip, block, extlen, |
1382 | dinode ? GFS2_BLKST_DINODE : GFS2_BLKST_USED); | 1382 | dinode ? GFS2_BLKST_DINODE : GFS2_BLKST_USED); |
1383 | *bn = block; | 1383 | *bn = block; |
1384 | return 0; | 1384 | return 0; |