mmc: block: Add missing mmc_blk_put() in power_ro_lock_show()
[linux-2.6-block.git] / fs / seq_file.c
index 1d9c1cbd4d0b4a1a17dd924e876c854b8d722169..ce9e39fd5dafc768c27b2ceaa4e69a02c3ed1e6e 100644 (file)
@@ -490,6 +490,20 @@ int seq_path(struct seq_file *m, const struct path *path, const char *esc)
 }
 EXPORT_SYMBOL(seq_path);
 
+/**
+ * seq_file_path - seq_file interface to print a pathname of a file
+ * @m: the seq_file handle
+ * @file: the struct file to print
+ * @esc: set of characters to escape in the output
+ *
+ * return the absolute path to the file.
+ */
+int seq_file_path(struct seq_file *m, struct file *file, const char *esc)
+{
+       return seq_path(m, &file->f_path, esc);
+}
+EXPORT_SYMBOL(seq_file_path);
+
 /*
  * Same as seq_path, but relative to supplied root.
  */