diff options
Diffstat (limited to 'fs/gfs2/aops.c')
-rw-r--r-- | fs/gfs2/aops.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/fs/gfs2/aops.c b/fs/gfs2/aops.c index 69f25e3c97ce..35f5ee23566d 100644 --- a/fs/gfs2/aops.c +++ b/fs/gfs2/aops.c | |||
@@ -54,8 +54,7 @@ static void gfs2_page_add_databufs(struct gfs2_inode *ip, struct page *page, | |||
54 | continue; | 54 | continue; |
55 | if (start >= to) | 55 | if (start >= to) |
56 | break; | 56 | break; |
57 | if (gfs2_is_jdata(ip)) | 57 | set_buffer_uptodate(bh); |
58 | set_buffer_uptodate(bh); | ||
59 | gfs2_trans_add_data(ip->i_gl, bh); | 58 | gfs2_trans_add_data(ip->i_gl, bh); |
60 | } | 59 | } |
61 | } | 60 | } |
@@ -894,8 +893,10 @@ static int gfs2_write_end(struct file *file, struct address_space *mapping, | |||
894 | goto out2; | 893 | goto out2; |
895 | } | 894 | } |
896 | 895 | ||
897 | if (!gfs2_is_writeback(ip)) | 896 | if (gfs2_is_jdata(ip)) |
898 | gfs2_page_add_databufs(ip, page, pos & ~PAGE_MASK, len); | 897 | gfs2_page_add_databufs(ip, page, pos & ~PAGE_MASK, len); |
898 | else | ||
899 | gfs2_ordered_add_inode(ip); | ||
899 | 900 | ||
900 | ret = generic_write_end(file, mapping, pos, len, copied, page, fsdata); | 901 | ret = generic_write_end(file, mapping, pos, len, copied, page, fsdata); |
901 | page = NULL; | 902 | page = NULL; |