]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
gfs2: Don't try to sync non-changes
authorBob Peterson <rpeterso@redhat.com>
Wed, 30 Aug 2023 12:57:47 +0000 (07:57 -0500)
committerAndreas Gruenbacher <agruenba@redhat.com>
Tue, 5 Sep 2023 13:58:18 +0000 (15:58 +0200)
commit9f494e9bdcc54eaed94fcc8fe5d4d5a51c36834c
treeaadba00c4671998860ce21ab6a3fb92981cc739d
parent2a4f651167560adae05e644e41d2666d727c549b
gfs2: Don't try to sync non-changes

Function need_sync is supposed to determine if a qd element needs to be
synced. If the "change" (qd_change) is zero, it does not need to be
synced because there's literally no change in the value. Before this
patch need_sync returned false if value < 0. That should be <= 0.
This patch changes the check to <=.

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