Lines Matching refs:file
38 #include <linux/file.h>
747 * file system. The best we can do here is wait for the logd daemon
754 * we can unmount the withdrawn file system.
1671 * If we're in the process of file system withdraw, we cannot just
1673 * file system corruption. We need two exceptions to this rule: We need
2247 * @fs_id_buf: pointer to file system id (if requested)
2326 * @fsid: If true, also dump the file system id
2328 * The file format is as follows:
2618 static int __gfs2_glocks_open(struct inode *inode, struct file *file,
2621 int ret = seq_open_private(file, ops, sizeof(struct gfs2_glock_iter));
2623 struct seq_file *seq = file->private_data;
2641 static int gfs2_glocks_open(struct inode *inode, struct file *file)
2643 return __gfs2_glocks_open(inode, file, &gfs2_glock_seq_ops);
2646 static int gfs2_glocks_release(struct inode *inode, struct file *file)
2648 struct seq_file *seq = file->private_data;
2654 return seq_release_private(inode, file);
2657 static int gfs2_glstats_open(struct inode *inode, struct file *file)
2659 return __gfs2_glocks_open(inode, file, &gfs2_glstats_seq_ops);
2683 struct file *file;
2711 static struct file *gfs2_glockfd_next_file(struct gfs2_glockfd_iter *i)
2713 if (i->file) {
2714 fput(i->file);
2715 i->file = NULL;
2722 i->file = task_lookup_next_fd_rcu(i->task, &i->fd);
2723 if (!i->file) {
2727 inode = file_inode(i->file);
2730 if (get_file_rcu(i->file))
2734 return i->file;
2770 if (i->file)
2771 fput(i->file);
2779 struct gfs2_file *fp = i->file->private_data;
2786 spin_lock(&i->file->f_lock);
2789 spin_unlock(&i->file->f_lock);
2801 struct inode *inode = file_inode(i->file);
2823 static int gfs2_glockfd_open(struct inode *inode, struct file *file)
2828 i = __seq_open_private(file, &gfs2_glockfd_seq_ops,