diff options
| author | Bob Peterson <[email protected]> | 2023-06-22 16:04:45 +0000 |
|---|---|---|
| committer | Andreas Gruenbacher <[email protected]> | 2023-09-05 13:58:18 +0000 |
| commit | fce17cb0eebfb90618f0fcfbdc7f8e0aa207c81a (patch) | |
| tree | 25d39dbdd428b88b1dd5b544b1f567d5ef7033ee /tools/perf/scripts/python/libxed.py | |
| parent | gfs2: Remove useless err set (diff) | |
| download | kernel-fce17cb0eebfb90618f0fcfbdc7f8e0aa207c81a.tar.gz kernel-fce17cb0eebfb90618f0fcfbdc7f8e0aa207c81a.zip | |
gfs2: Set qd_sync_gen in do_sync
Func do_sync was called in two places: gfs2_quota_unlock and
gfs2_quota_sync. In gfs2_quota_sync it updated qd_sync_gen to the latest
superblock sync gen, if do_sync was successful. In gfs2_quota_unlock it
didn't update the value. That can only lead to extra work, for example,
if the value is synced by gfs2_quota_unlock but still has the old value.
This patch moves the setting of qd_sync_gen inside do_sync so we are
guaranteed consistency.
Signed-off-by: Bob Peterson <[email protected]>
Signed-off-by: Andreas Gruenbacher <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/libxed.py')
0 files changed, 0 insertions, 0 deletions
