~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

TOMOYO Linux Cross Reference
Linux/fs/xfs/xfs_iomap.h

Version: ~ [ linux-6.11.5 ] ~ [ linux-6.10.14 ] ~ [ linux-6.9.12 ] ~ [ linux-6.8.12 ] ~ [ linux-6.7.12 ] ~ [ linux-6.6.58 ] ~ [ linux-6.5.13 ] ~ [ linux-6.4.16 ] ~ [ linux-6.3.13 ] ~ [ linux-6.2.16 ] ~ [ linux-6.1.114 ] ~ [ linux-6.0.19 ] ~ [ linux-5.19.17 ] ~ [ linux-5.18.19 ] ~ [ linux-5.17.15 ] ~ [ linux-5.16.20 ] ~ [ linux-5.15.169 ] ~ [ linux-5.14.21 ] ~ [ linux-5.13.19 ] ~ [ linux-5.12.19 ] ~ [ linux-5.11.22 ] ~ [ linux-5.10.228 ] ~ [ linux-5.9.16 ] ~ [ linux-5.8.18 ] ~ [ linux-5.7.19 ] ~ [ linux-5.6.19 ] ~ [ linux-5.5.19 ] ~ [ linux-5.4.284 ] ~ [ linux-5.3.18 ] ~ [ linux-5.2.21 ] ~ [ linux-5.1.21 ] ~ [ linux-5.0.21 ] ~ [ linux-4.20.17 ] ~ [ linux-4.19.322 ] ~ [ linux-4.18.20 ] ~ [ linux-4.17.19 ] ~ [ linux-4.16.18 ] ~ [ linux-4.15.18 ] ~ [ linux-4.14.336 ] ~ [ linux-4.13.16 ] ~ [ linux-4.12.14 ] ~ [ linux-4.11.12 ] ~ [ linux-4.10.17 ] ~ [ linux-4.9.337 ] ~ [ linux-4.4.302 ] ~ [ linux-3.10.108 ] ~ [ linux-2.6.32.71 ] ~ [ linux-2.6.0 ] ~ [ linux-2.4.37.11 ] ~ [ unix-v6-master ] ~ [ ccs-tools-1.8.9 ] ~ [ policy-sample ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

  1 // SPDX-License-Identifier: GPL-2.0
  2 /*
  3  * Copyright (c) 2003-2005 Silicon Graphics, Inc.
  4  * All Rights Reserved.
  5  */
  6 #ifndef __XFS_IOMAP_H__
  7 #define __XFS_IOMAP_H__
  8 
  9 #include <linux/iomap.h>
 10 
 11 struct xfs_inode;
 12 struct xfs_bmbt_irec;
 13 
 14 int xfs_iomap_write_direct(struct xfs_inode *ip, xfs_fileoff_t offset_fsb,
 15                 xfs_fileoff_t count_fsb, unsigned int flags,
 16                 struct xfs_bmbt_irec *imap, u64 *sequence);
 17 int xfs_iomap_write_unwritten(struct xfs_inode *, xfs_off_t, xfs_off_t, bool);
 18 xfs_fileoff_t xfs_iomap_eof_align_last_fsb(struct xfs_inode *ip,
 19                 xfs_fileoff_t end_fsb);
 20 
 21 u64 xfs_iomap_inode_sequence(struct xfs_inode *ip, u16 iomap_flags);
 22 int xfs_bmbt_to_iomap(struct xfs_inode *ip, struct iomap *iomap,
 23                 struct xfs_bmbt_irec *imap, unsigned int mapping_flags,
 24                 u16 iomap_flags, u64 sequence_cookie);
 25 
 26 int xfs_zero_range(struct xfs_inode *ip, loff_t pos, loff_t len,
 27                 bool *did_zero);
 28 int xfs_truncate_page(struct xfs_inode *ip, loff_t pos, bool *did_zero);
 29 
 30 static inline xfs_filblks_t
 31 xfs_aligned_fsb_count(
 32         xfs_fileoff_t           offset_fsb,
 33         xfs_filblks_t           count_fsb,
 34         xfs_extlen_t            extsz)
 35 {
 36         if (extsz) {
 37                 xfs_extlen_t    align;
 38 
 39                 div_u64_rem(offset_fsb, extsz, &align);
 40                 if (align)
 41                         count_fsb += align;
 42                 div_u64_rem(count_fsb, extsz, &align);
 43                 if (align)
 44                         count_fsb += extsz - align;
 45         }
 46 
 47         return count_fsb;
 48 }
 49 
 50 extern const struct iomap_ops xfs_buffered_write_iomap_ops;
 51 extern const struct iomap_ops xfs_page_mkwrite_iomap_ops;
 52 extern const struct iomap_ops xfs_direct_write_iomap_ops;
 53 extern const struct iomap_ops xfs_read_iomap_ops;
 54 extern const struct iomap_ops xfs_seek_iomap_ops;
 55 extern const struct iomap_ops xfs_xattr_iomap_ops;
 56 extern const struct iomap_ops xfs_dax_write_iomap_ops;
 57 
 58 #endif /* __XFS_IOMAP_H__*/
 59 

~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

kernel.org | git.kernel.org | LWN.net | Project Home | SVN repository | Mail admin

Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.

sflogo.php