]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
fstrim: Fix fstrim_all() comment
authorStanislav Brabec <sbrabec@suse.cz>
Mon, 10 Jun 2019 19:59:21 +0000 (21:59 +0200)
committerKarel Zak <kzak@redhat.com>
Tue, 11 Jun 2019 08:23:45 +0000 (10:23 +0200)
"convert LABEL=" does not happens in mnt_fs_get_source(), but later in
mnt_resolve_spec(). To make this more clean, move the comment before this
chunk of code.

Signed-off-by: Stanislav Brabec <sbrabec@suse.cz>
sys-utils/fstrim.c

index cae38cdff90cc01feb2a8282fdf3e79b309075da..ff029015e60acef25a531f96648c82065c7ca02c 100644 (file)
@@ -290,8 +290,8 @@ static int fstrim_all(struct fstrim_control *ctl)
                if (!tgt || mnt_fs_is_pseudofs(fs) || mnt_fs_is_netfs(fs))
                        continue;
 
+               /* convert LABEL= (etc.) from fstab to paths */
                if (!src && cache) {
-                       /* convert LABEL= (etc.) from fstab to paths */
                        const char *spec = mnt_fs_get_source(fs);
 
                        if (!spec)