From 975bbd2038619c7ad263c159831bb93b3c6a8fc7 Mon Sep 17 00:00:00 2001 From: Bob Peterson Date: Fri, 17 Feb 2012 09:15:52 -0500 Subject: [PATCH] --- yaml --- r: 288040 b: refs/heads/master c: 9e73f571ea3afffca78c1f54128d57796e27532f h: refs/heads/master v: v3 --- [refs] | 2 +- trunk/fs/gfs2/file.c | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/[refs] b/[refs] index af343868668d..959d45373ab2 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 718b97bd6b03445be53098e3c8f896aeebc304aa +refs/heads/master: 9e73f571ea3afffca78c1f54128d57796e27532f diff --git a/trunk/fs/gfs2/file.c b/trunk/fs/gfs2/file.c index c5fb3597f696..7f906c8b02ac 100644 --- a/trunk/fs/gfs2/file.c +++ b/trunk/fs/gfs2/file.c @@ -772,6 +772,11 @@ static long gfs2_fallocate(struct file *file, int mode, loff_t offset, if (bytes == 0) bytes = sdp->sd_sb.sb_bsize; + error = gfs2_rindex_update(sdp); + if (error) { + fs_warn(sdp, "rindex update returns %d\n", error); + return error; + } gfs2_holder_init(ip->i_gl, LM_ST_EXCLUSIVE, 0, &ip->i_gh); error = gfs2_glock_nq(&ip->i_gh); if (unlikely(error))