]> Git Repo - linux.git/commitdiff
orangefs_file_mmap(): use %pD
authorAl Viro <[email protected]>
Thu, 7 Jan 2021 02:59:52 +0000 (21:59 -0500)
committerAl Viro <[email protected]>
Thu, 7 Jan 2021 02:59:52 +0000 (21:59 -0500)
... and no, file can't be NULL there - it's not called that way *and*
it would've oopsed a few lines prior on such call anyway.

Signed-off-by: Al Viro <[email protected]>
fs/orangefs/file.c

index ec8ae4257975c9e1a5024876b49751b9b31c100e..9b28a7132466a9d2944131fce33384bcbc16cea0 100644 (file)
@@ -487,10 +487,7 @@ static int orangefs_file_mmap(struct file *file, struct vm_area_struct *vma)
                return ret;
 
        gossip_debug(GOSSIP_FILE_DEBUG,
-                    "orangefs_file_mmap: called on %s\n",
-                    (file ?
-                       (char *)file->f_path.dentry->d_name.name :
-                       (char *)"Unknown"));
+                    "orangefs_file_mmap: called on %pD\n", file);
 
        /* set the sequential readahead hint */
        vma->vm_flags |= VM_SEQ_READ;
This page took 0.057818 seconds and 4 git commands to generate.