OSDN Git Service

gfs2: Simplify function need_sync
authorBob Peterson <rpeterso@redhat.com>
Wed, 31 May 2023 17:31:52 +0000 (12:31 -0500)
committerAndreas Gruenbacher <agruenba@redhat.com>
Tue, 5 Sep 2023 13:58:18 +0000 (15:58 +0200)
commit2a4f651167560adae05e644e41d2666d727c549b
tree3d41b70e9550931a9945c69eb1c43c76abd68fed
parente34c16c9c699461e7d3f9eed28069e3b8466d871
gfs2: Simplify function need_sync

This patch simplifies function need_sync by eliminating a variable in
favor of just returning the appropriate value as soon as we know it.

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