gfs2: gfs2_stuffed_write_end cleanup
authorAndreas Gruenbacher <agruenba@redhat.com>
Mon, 4 Jun 2018 12:45:53 +0000 (07:45 -0500)
committerBob Peterson <rpeterso@redhat.com>
Mon, 4 Jun 2018 12:45:53 +0000 (07:45 -0500)
commitd6382a3505d289ec2df55a822f1fd72d9a72d256
treef600d249810872b923dcbd422baee30bf95a6b4e
parent7841b9f08444b9c27090ec94101b96265572865f
gfs2: gfs2_stuffed_write_end cleanup

First, change the sanity check in gfs2_stuffed_write_end to check for
the actual write size instead of the requested write size.

Second, use the existing teardown code in gfs2_write_end instead of
duplicating it in gfs2_stuffed_write_end.

Signed-off-by: Andreas Gruenbacher <agruenba@redhat.com>
Signed-off-by: Bob Peterson <rpeterso@redhat.com>
fs/gfs2/aops.c