vfs: add seq_file_path() helper
Turn seq_path(..., &file->f_path, ...); into seq_file_path(..., file, ...); Signed-off-by: Miklos Szeredi <mszeredi@suse.cz> Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
This commit is contained in:
@@ -2032,7 +2032,7 @@ static int swap_show(struct seq_file *swap, void *v)
|
||||
}
|
||||
|
||||
file = si->swap_file;
|
||||
len = seq_path(swap, &file->f_path, " \t\n\\");
|
||||
len = seq_file_path(swap, file, " \t\n\\");
|
||||
seq_printf(swap, "%*s%s\t%u\t%u\t%d\n",
|
||||
len < 40 ? 40 - len : 1, " ",
|
||||
S_ISBLK(file_inode(file)->i_mode) ?
|
||||
|
Reference in New Issue
Block a user