]> err.no Git - util-linux/commit
swapon: remove " (deleted)" from filenames from /proc/swaps
authorKarel Zak <kzak@redhat.com>
Wed, 10 Mar 2010 22:08:26 +0000 (23:08 +0100)
committerKarel Zak <kzak@redhat.com>
Wed, 10 Mar 2010 22:08:26 +0000 (23:08 +0100)
commitdac4cc1dd6b855d781d2ff9689931786ece0acbf
treead690cbf5ea2dc89425627afe49274e3691cc444
parent56e961e270fd4b34015a688781dcc6b970c0e318
swapon: remove " (deleted)" from filenames from /proc/swaps

The filenames in /proc/swaps are generated by seq_path() and this
function uses __d_path() from fs/dcache.c. The filename could
generated with " (deleted)" suffix. We need real filenames without
the suffix.

Addresses: http://bugzilla.redhat.com/show_bug.cgi?id=562403
Signed-off-by: Karel Zak <kzak@redhat.com>
mount/swapon.c