Skip to content

Commit 768963a

Browse files
AstralBobAndreas Gruenbacher
authored andcommitted
gfs2: remove dead code for quota writes
Since patch 845802b function gfs2_write_buf_to_page checks if the target inode is jdata or ordered. This function only operates on the system quota file, which is always jdata, so the check for jdata is useless. This patch removes it. Signed-off-by: Bob Peterson <[email protected]> Signed-off-by: Andreas Gruenbacher <[email protected]>
1 parent eef46ab commit 768963a

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

fs/gfs2/quota.c

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -772,10 +772,7 @@ static int gfs2_write_buf_to_page(struct gfs2_inode *ip, unsigned long index,
772772
set_buffer_uptodate(bh);
773773
if (bh_read(bh, REQ_META | REQ_PRIO) < 0)
774774
goto unlock_out;
775-
if (gfs2_is_jdata(ip))
776-
gfs2_trans_add_data(ip->i_gl, bh);
777-
else
778-
gfs2_ordered_add_inode(ip);
775+
gfs2_trans_add_data(ip->i_gl, bh);
779776

780777
/* If we need to write to the next block as well */
781778
if (to_write > (bsize - boff)) {

0 commit comments

Comments
 (0)