diff options
Diffstat (limited to 'fs/ocfs2/suballoc.c')
-rw-r--r-- | fs/ocfs2/suballoc.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/ocfs2/suballoc.c b/fs/ocfs2/suballoc.c index 6f39da4a9a10..0c08353fddac 100644 --- a/fs/ocfs2/suballoc.c +++ b/fs/ocfs2/suballoc.c | |||
@@ -2349,6 +2349,8 @@ int ocfs2_free_dinode(handle_t *handle, | |||
2349 | u16 bit = le16_to_cpu(di->i_suballoc_bit); | 2349 | u16 bit = le16_to_cpu(di->i_suballoc_bit); |
2350 | u64 bg_blkno = ocfs2_which_suballoc_group(blk, bit); | 2350 | u64 bg_blkno = ocfs2_which_suballoc_group(blk, bit); |
2351 | 2351 | ||
2352 | if (di->i_suballoc_loc) | ||
2353 | bg_blkno = le64_to_cpu(di->i_suballoc_loc); | ||
2352 | return ocfs2_free_suballoc_bits(handle, inode_alloc_inode, | 2354 | return ocfs2_free_suballoc_bits(handle, inode_alloc_inode, |
2353 | inode_alloc_bh, bit, bg_blkno, 1); | 2355 | inode_alloc_bh, bit, bg_blkno, 1); |
2354 | } | 2356 | } |