if (!ret) {
                 seq_printf(m, "pos:\t%lli\nflags:\t0%o\n",
                           (long long)file->f_pos, f_flags);
+               if (file->f_op->show_fdinfo)
+                       ret = file->f_op->show_fdinfo(m, file);
                fput(file);
        }
 
 
 struct vfsmount;
 struct cred;
 struct swap_info_struct;
+struct seq_file;
 
 extern void __init inode_init(void);
 extern void __init inode_init_early(void);
        int (*setlease)(struct file *, long, struct file_lock **);
        long (*fallocate)(struct file *file, int mode, loff_t offset,
                          loff_t len);
+       int (*show_fdinfo)(struct seq_file *m, struct file *f);
 };
 
 struct inode_operations {
                           umode_t create_mode, int *opened);
 } ____cacheline_aligned;
 
-struct seq_file;
-
 ssize_t rw_copy_check_uvector(int type, const struct iovec __user * uvector,
                              unsigned long nr_segs, unsigned long fast_segs,
                              struct iovec *fast_pointer,