nfs42.h 843 B

123456789101112131415161718192021222324
  1. /* SPDX-License-Identifier: GPL-2.0 */
  2. /*
  3. * Copyright (c) 2014 Anna Schumaker <Anna.Schumaker@Netapp.com>
  4. */
  5. #ifndef __LINUX_FS_NFS_NFS4_2_H
  6. #define __LINUX_FS_NFS_NFS4_2_H
  7. /*
  8. * FIXME: four LAYOUTSTATS calls per compound at most! Do we need to support
  9. * more? Need to consider not to pre-alloc too much for a compound.
  10. */
  11. #define PNFS_LAYOUTSTATS_MAXDEV (4)
  12. /* nfs4.2proc.c */
  13. int nfs42_proc_allocate(struct file *, loff_t, loff_t);
  14. ssize_t nfs42_proc_copy(struct file *, loff_t, struct file *, loff_t, size_t);
  15. int nfs42_proc_deallocate(struct file *, loff_t, loff_t);
  16. loff_t nfs42_proc_llseek(struct file *, loff_t, int);
  17. int nfs42_proc_layoutstats_generic(struct nfs_server *,
  18. struct nfs42_layoutstat_data *);
  19. int nfs42_proc_clone(struct file *, struct file *, loff_t, loff_t, loff_t);
  20. #endif /* __LINUX_FS_NFS_NFS4_2_H */