file.c 846 B

12345678910111213141516171819202122232425262728293031323334353637
  1. // SPDX-License-Identifier: GPL-2.0
  2. /*
  3. * linux/fs/adfs/file.c
  4. *
  5. * Copyright (C) 1997-1999 Russell King
  6. * from:
  7. *
  8. * linux/fs/ext2/file.c
  9. *
  10. * Copyright (C) 1992, 1993, 1994, 1995
  11. * Remy Card (card@masi.ibp.fr)
  12. * Laboratoire MASI - Institut Blaise Pascal
  13. * Universite Pierre et Marie Curie (Paris VI)
  14. *
  15. * from
  16. *
  17. * linux/fs/minix/file.c
  18. *
  19. * Copyright (C) 1991, 1992 Linus Torvalds
  20. *
  21. * adfs regular file handling primitives
  22. */
  23. #include "adfs.h"
  24. const struct file_operations adfs_file_operations = {
  25. .llseek = generic_file_llseek,
  26. .read_iter = generic_file_read_iter,
  27. .mmap = generic_file_mmap,
  28. .fsync = generic_file_fsync,
  29. .write_iter = generic_file_write_iter,
  30. .splice_read = generic_file_splice_read,
  31. };
  32. const struct inode_operations adfs_file_inode_operations = {
  33. .setattr = adfs_notify_change,
  34. };