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

TOMOYO Linux Cross Reference
Linux/fs/nilfs2/page.h

Version: ~ [ linux-6.11-rc3 ] ~ [ linux-6.10.4 ] ~ [ linux-6.9.12 ] ~ [ linux-6.8.12 ] ~ [ linux-6.7.12 ] ~ [ linux-6.6.45 ] ~ [ linux-6.5.13 ] ~ [ linux-6.4.16 ] ~ [ linux-6.3.13 ] ~ [ linux-6.2.16 ] ~ [ linux-6.1.104 ] ~ [ linux-6.0.19 ] ~ [ linux-5.19.17 ] ~ [ linux-5.18.19 ] ~ [ linux-5.17.15 ] ~ [ linux-5.16.20 ] ~ [ linux-5.15.164 ] ~ [ linux-5.14.21 ] ~ [ linux-5.13.19 ] ~ [ linux-5.12.19 ] ~ [ linux-5.11.22 ] ~ [ linux-5.10.223 ] ~ [ linux-5.9.16 ] ~ [ linux-5.8.18 ] ~ [ linux-5.7.19 ] ~ [ linux-5.6.19 ] ~ [ linux-5.5.19 ] ~ [ linux-5.4.281 ] ~ [ linux-5.3.18 ] ~ [ linux-5.2.21 ] ~ [ linux-5.1.21 ] ~ [ linux-5.0.21 ] ~ [ linux-4.20.17 ] ~ [ linux-4.19.319 ] ~ [ 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  * Buffer/page management specific to NILFS
  4  *
  5  * Copyright (C) 2005-2008 Nippon Telegraph and Telephone Corporation.
  6  *
  7  * Written by Ryusuke Konishi and Seiji Kihara.
  8  */
  9 
 10 #ifndef _NILFS_PAGE_H
 11 #define _NILFS_PAGE_H
 12 
 13 #include <linux/buffer_head.h>
 14 #include "nilfs.h"
 15 
 16 /*
 17  * Extended buffer state bits
 18  */
 19 enum {
 20         BH_NILFS_Allocated = BH_PrivateStart,
 21         BH_NILFS_Node,
 22         BH_NILFS_Volatile,
 23         BH_NILFS_Checked,
 24         BH_NILFS_Redirected,
 25 };
 26 
 27 BUFFER_FNS(NILFS_Node, nilfs_node)              /* nilfs node buffers */
 28 BUFFER_FNS(NILFS_Volatile, nilfs_volatile)
 29 BUFFER_FNS(NILFS_Checked, nilfs_checked)        /* buffer is verified */
 30 BUFFER_FNS(NILFS_Redirected, nilfs_redirected)  /* redirected to a copy */
 31 
 32 
 33 void __nilfs_clear_folio_dirty(struct folio *);
 34 
 35 struct buffer_head *nilfs_grab_buffer(struct inode *, struct address_space *,
 36                                       unsigned long, unsigned long);
 37 void nilfs_forget_buffer(struct buffer_head *);
 38 void nilfs_copy_buffer(struct buffer_head *, struct buffer_head *);
 39 bool nilfs_folio_buffers_clean(struct folio *);
 40 void nilfs_folio_bug(struct folio *);
 41 
 42 int nilfs_copy_dirty_pages(struct address_space *, struct address_space *);
 43 void nilfs_copy_back_pages(struct address_space *, struct address_space *);
 44 void nilfs_clear_folio_dirty(struct folio *, bool);
 45 void nilfs_clear_dirty_pages(struct address_space *, bool);
 46 unsigned int nilfs_page_count_clean_buffers(struct page *, unsigned int,
 47                                             unsigned int);
 48 unsigned long nilfs_find_uncommitted_extent(struct inode *inode,
 49                                             sector_t start_blk,
 50                                             sector_t *blkoff);
 51 
 52 #define NILFS_FOLIO_BUG(folio, m, a...) \
 53         do { nilfs_folio_bug(folio); BUG(); } while (0)
 54 
 55 #endif /* _NILFS_PAGE_H */
 56 

~ [ 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