diff options
Diffstat (limited to 'fs/gfs2/file.c')
-rw-r--r-- | fs/gfs2/file.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/fs/gfs2/file.c b/fs/gfs2/file.c index c5fb3597f696..7f906c8b02ac 100644 --- a/fs/gfs2/file.c +++ b/fs/gfs2/file.c | |||
@@ -772,6 +772,11 @@ static long gfs2_fallocate(struct file *file, int mode, loff_t offset, | |||
772 | if (bytes == 0) | 772 | if (bytes == 0) |
773 | bytes = sdp->sd_sb.sb_bsize; | 773 | bytes = sdp->sd_sb.sb_bsize; |
774 | 774 | ||
775 | error = gfs2_rindex_update(sdp); | ||
776 | if (error) { | ||
777 | fs_warn(sdp, "rindex update returns %d\n", error); | ||
778 | return error; | ||
779 | } | ||
775 | gfs2_holder_init(ip->i_gl, LM_ST_EXCLUSIVE, 0, &ip->i_gh); | 780 | gfs2_holder_init(ip->i_gl, LM_ST_EXCLUSIVE, 0, &ip->i_gh); |
776 | error = gfs2_glock_nq(&ip->i_gh); | 781 | error = gfs2_glock_nq(&ip->i_gh); |
777 | if (unlikely(error)) | 782 | if (unlikely(error)) |