Skip to content

Commit cc44457

Browse files
committed
gfs2: leaf_dealloc needs to allocate one more revoke
Function leaf_dealloc was not allocating enough journal space for revokes. Before, it allocated 'l_blocks' revokes, but it needs one more for the revoke of the dinode that is modified. This patch adds the needed revoke entry to function leaf_dealloc. Signed-off-by: Bob Peterson <[email protected]>
1 parent c9ebc4b commit cc44457

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

fs/gfs2/dir.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2028,7 +2028,8 @@ static int leaf_dealloc(struct gfs2_inode *dip, u32 index, u32 len,
20282028

20292029
error = gfs2_trans_begin(sdp,
20302030
rg_blocks + (DIV_ROUND_UP(size, sdp->sd_jbsize) + 1) +
2031-
RES_DINODE + RES_STATFS + RES_QUOTA, l_blocks);
2031+
RES_DINODE + RES_STATFS + RES_QUOTA, RES_DINODE +
2032+
l_blocks);
20322033
if (error)
20332034
goto out_rg_gunlock;
20342035

0 commit comments

Comments
 (0)