diff options
-rw-r--r-- | fs/gfs2/aops.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/fs/gfs2/aops.c b/fs/gfs2/aops.c index 694b5d48f036..dce062a0b02a 100644 --- a/fs/gfs2/aops.c +++ b/fs/gfs2/aops.c | |||
@@ -819,8 +819,10 @@ static int gfs2_stuffed_write_end(struct inode *inode, struct buffer_head *dibh, | |||
819 | mark_inode_dirty(inode); | 819 | mark_inode_dirty(inode); |
820 | } | 820 | } |
821 | 821 | ||
822 | if (inode == sdp->sd_rindex) | 822 | if (inode == sdp->sd_rindex) { |
823 | adjust_fs_space(inode); | 823 | adjust_fs_space(inode); |
824 | ip->i_gh.gh_flags |= GL_NOCACHE; | ||
825 | } | ||
824 | 826 | ||
825 | brelse(dibh); | 827 | brelse(dibh); |
826 | gfs2_trans_end(sdp); | 828 | gfs2_trans_end(sdp); |
@@ -889,8 +891,10 @@ static int gfs2_write_end(struct file *file, struct address_space *mapping, | |||
889 | mark_inode_dirty(inode); | 891 | mark_inode_dirty(inode); |
890 | } | 892 | } |
891 | 893 | ||
892 | if (inode == sdp->sd_rindex) | 894 | if (inode == sdp->sd_rindex) { |
893 | adjust_fs_space(inode); | 895 | adjust_fs_space(inode); |
896 | ip->i_gh.gh_flags |= GL_NOCACHE; | ||
897 | } | ||
894 | 898 | ||
895 | brelse(dibh); | 899 | brelse(dibh); |
896 | gfs2_trans_end(sdp); | 900 | gfs2_trans_end(sdp); |