Lines Matching refs:filp
205 long ext4_ioctl(struct file *filp, unsigned int cmd, unsigned long arg) in ext4_ioctl() argument
207 struct inode *inode = file_inode(filp); in ext4_ioctl()
232 err = mnt_want_write_file(filp); in ext4_ioctl()
322 mnt_drop_write_file(filp); in ext4_ioctl()
344 err = mnt_want_write_file(filp); in ext4_ioctl()
369 mnt_drop_write_file(filp); in ext4_ioctl()
392 err = mnt_want_write_file(filp); in ext4_ioctl()
404 mnt_drop_write_file(filp); in ext4_ioctl()
415 if (!(filp->f_mode & FMODE_READ) || in ext4_ioctl()
416 !(filp->f_mode & FMODE_WRITE)) in ext4_ioctl()
440 err = mnt_want_write_file(filp); in ext4_ioctl()
444 err = ext4_move_extents(filp, donor.file, me.orig_start, in ext4_ioctl()
446 mnt_drop_write_file(filp); in ext4_ioctl()
477 err = mnt_want_write_file(filp); in ext4_ioctl()
489 mnt_drop_write_file(filp); in ext4_ioctl()
504 err = mnt_want_write_file(filp); in ext4_ioctl()
516 mnt_drop_write_file(filp); in ext4_ioctl()
526 err = mnt_want_write_file(filp); in ext4_ioctl()
530 mnt_drop_write_file(filp); in ext4_ioctl()
537 if (!(filp->f_mode & FMODE_WRITE)) in ext4_ioctl()
539 err = mnt_want_write_file(filp); in ext4_ioctl()
543 mnt_drop_write_file(filp); in ext4_ioctl()
567 err = mnt_want_write_file(filp); in ext4_ioctl()
579 mnt_drop_write_file(filp); in ext4_ioctl()
642 err = mnt_want_write_file(filp); in ext4_ioctl()
652 mnt_drop_write_file(filp); in ext4_ioctl()
667 err = mnt_want_write_file(filp); in ext4_ioctl()
689 mnt_drop_write_file(filp); in ext4_ioctl()