file.c 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. /*
  2. * linux/fs/ufs/file.c
  3. *
  4. * Copyright (C) 1998
  5. * Daniel Pirkl <daniel.pirkl@email.cz>
  6. * Charles University, Faculty of Mathematics and Physics
  7. *
  8. * from
  9. *
  10. * linux/fs/ext2/file.c
  11. *
  12. * Copyright (C) 1992, 1993, 1994, 1995
  13. * Remy Card (card@masi.ibp.fr)
  14. * Laboratoire MASI - Institut Blaise Pascal
  15. * Universite Pierre et Marie Curie (Paris VI)
  16. *
  17. * from
  18. *
  19. * linux/fs/minix/file.c
  20. *
  21. * Copyright (C) 1991, 1992 Linus Torvalds
  22. *
  23. * ext2 fs regular file handling primitives
  24. */
  25. #include <asm/uaccess.h>
  26. #include <asm/system.h>
  27. #include <linux/errno.h>
  28. #include <linux/fs.h>
  29. #include <linux/ufs_fs.h>
  30. #include <linux/fcntl.h>
  31. #include <linux/time.h>
  32. #include <linux/stat.h>
  33. #include <linux/mm.h>
  34. #include <linux/pagemap.h>
  35. #include <linux/smp_lock.h>
  36. /*
  37. * We have mostly NULL's here: the current defaults are ok for
  38. * the ufs filesystem.
  39. */
  40. struct file_operations ufs_file_operations = {
  41. .llseek = generic_file_llseek,
  42. .read = generic_file_read,
  43. .write = generic_file_write,
  44. .mmap = generic_file_mmap,
  45. .open = generic_file_open,
  46. .sendfile = generic_file_sendfile,
  47. };
  48. struct inode_operations ufs_file_inode_operations = {
  49. .truncate = ufs_truncate,
  50. };