]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/blobdiff - fs/gfs2/quota.c
gfs2: Remove ordered write mode handling from gfs2_trans_add_data
[mirror_ubuntu-jammy-kernel.git] / fs / gfs2 / quota.c
index 7a98abd340ee96bdc4ce1cc7816e9c437700b0cc..e8585dfd209f5b8174b6fb8d892de7b4e28270fe 100644 (file)
@@ -735,7 +735,10 @@ static int gfs2_write_buf_to_page(struct gfs2_inode *ip, unsigned long index,
                        if (!buffer_uptodate(bh))
                                goto unlock_out;
                }
-               gfs2_trans_add_data(ip->i_gl, bh);
+               if (gfs2_is_jdata(ip))
+                       gfs2_trans_add_data(ip->i_gl, bh);
+               else
+                       gfs2_ordered_add_inode(ip);
 
                /* If we need to write to the next block as well */
                if (to_write > (bsize - boff)) {