diff options
Diffstat (limited to 'fs/gfs2/ops_inode.c')
-rw-r--r-- | fs/gfs2/ops_inode.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/fs/gfs2/ops_inode.c b/fs/gfs2/ops_inode.c index 1e2b709711ae..62a12a59d91b 100644 --- a/fs/gfs2/ops_inode.c +++ b/fs/gfs2/ops_inode.c | |||
@@ -742,8 +742,7 @@ static int gfs2_rename(struct inode *odir, struct dentry *odentry, | |||
742 | if (error) | 742 | if (error) |
743 | goto out_gunlock_q; | 743 | goto out_gunlock_q; |
744 | 744 | ||
745 | error = gfs2_trans_begin(sdp, | 745 | error = gfs2_trans_begin(sdp, sdp->sd_max_dirres + |
746 | sdp->sd_max_dirres + | ||
747 | al->al_rgd->rd_ri.ri_length + | 746 | al->al_rgd->rd_ri.ri_length + |
748 | 4 * RES_DINODE + 4 * RES_LEAF + | 747 | 4 * RES_DINODE + 4 * RES_LEAF + |
749 | RES_UNLINKED + RES_STATFS + | 748 | RES_UNLINKED + RES_STATFS + |