]> 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>
Mon, 22 Mar 2010 08:09:12 +0000 (09:09 +0100)
commit0c5cd4af24561c24d434596e80ad476d8ff38b97
treecbd3a024a71d18850cb57ead36d2fb51268d4cce
parent50c40efc42e17eda92d7a44bdf9f5a5f0a621811
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