Hi, this patch set adds following functions - page_inode(page) ... returns inode from page, (page->mapping->host) - page_mapping_cache(page) ... returns addrees_space from page - page_mapping_anon(page) ... return anon_vma from page - page_is_pagecache(page) ... returns 1 if the page is page cache - pagecache_consistent(page, mapping) ... returns if page_mapping_cache(page) equals to mapping. By adding aboves, this patch set removes all *direct* references to page->mapping in usual codes. (compile tested with all mod config.) I think this can improve VM/FS dependency and make things robust. In addition, page->mapping is not a just address_space, now. (And we can hide page->mapping details from moduled FSs.) patch set is structured as [1] ... new interface definition [2] ... changes in /mm [3] ... changes in /kernel and /fs [4...] ... changes in each FSs. (most of patches are very small.) Any comments are welcome. Thanks, -Kame - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
- Follow-Ups:
- [PATCH] add page->mapping handling interface [35/35] changes in XFS
- From: KAMEZAWA Hiroyuki <[email protected]>
- [PATCH] add page->mapping handling interface [34/35] changes in UNIONFS
- From: KAMEZAWA Hiroyuki <[email protected]>
- [PATCH] add page->mapping handling interface [33/35] changes in UFS
- From: KAMEZAWA Hiroyuki <[email protected]>
- [PATCH] add page->mapping handling interface [32/35] changes in UDFFS
- From: KAMEZAWA Hiroyuki <[email protected]>
- [PATCH] add page->mapping handling interface [31/35] changes in SYSVFS
- From: KAMEZAWA Hiroyuki <[email protected]>
- [PATCH] add page->mapping handling interface [30/35] changes ROMFS
- From: KAMEZAWA Hiroyuki <[email protected]>
- [PATCH] add page->mapping handling interface [29/35] changes in REISER4/REISERFS
- From: KAMEZAWA Hiroyuki <[email protected]>
- [PATCH] add page->mapping handling interface [28/35] changes in OCFS2
- From: KAMEZAWA Hiroyuki <[email protected]>
- [PATCH] add page->mapping handling interface [27/35] changes in NTFS
- From: KAMEZAWA Hiroyuki <[email protected]>
- [PATCH] add page->mapping handling interface [26/35] changes in NFS
- From: KAMEZAWA Hiroyuki <[email protected]>
- [PATCH] add page->mapping handling interface [23/35] changes in JFS
- From: KAMEZAWA Hiroyuki <[email protected]>
- [PATCH] add page->mapping handling interface [25/35] changes in NCPFS
- From: KAMEZAWA Hiroyuki <[email protected]>
- [PATCH] add page->mapping handling interface [24/35] changes in MINIX FS
- From: KAMEZAWA Hiroyuki <[email protected]>
- [PATCH] add page->mapping handling interface [22/35] changes in JFFS2
- From: KAMEZAWA Hiroyuki <[email protected]>
- [PATCH] add page->mapping handling interface [21/35] changes in JBD
- From: KAMEZAWA Hiroyuki <[email protected]>
- [PATCH] add page->mapping handling interface [20/35] changes in ISOFS
- From: KAMEZAWA Hiroyuki <[email protected]>
- [PATCH] add page->mapping handling interface [19/35] changes in HPFS
- From: KAMEZAWA Hiroyuki <[email protected]>
- [PATCH] add page->mapping handling interface [18/35] changes in HFSPLUS
- From: KAMEZAWA Hiroyuki <[email protected]>
- [PATCH] add page->mapping handling interface [17/35] changes in HFS
- From: KAMEZAWA Hiroyuki <[email protected]>
- [PATCH] add page->mapping handling interface [16/35] changes in GFS2
- From: KAMEZAWA Hiroyuki <[email protected]>
- [PATCH] add page->mapping handling interface [15/35] changes in FUSE
- From: KAMEZAWA Hiroyuki <[email protected]>
- [PATCH] add page->mapping handling interface [14/35] changes in freevxfs
- From: KAMEZAWA Hiroyuki <[email protected]>
- [PATCH] add page->mapping handling interface [13/35] changes in EXT4
- From: KAMEZAWA Hiroyuki <[email protected]>
- [PATCH] add page->mapping handling interface [12/35] changes in EXT3
- From: KAMEZAWA Hiroyuki <[email protected]>
- [PATCH] add page->mapping handling interface [11/35] changes in EXT2
- From: KAMEZAWA Hiroyuki <[email protected]>
- [PATCH] add page->mapping handling interface [10/35] changes in EFS
- From: KAMEZAWA Hiroyuki <[email protected]>
- [PATCH] add page->mapping handling interface [9/35] changes in ECRYPTFS
- From: KAMEZAWA Hiroyuki <[email protected]>
- [PATCH] add page->mapping handling interface [8/35] changes in CRAMFS
- From: KAMEZAWA Hiroyuki <[email protected]>
- [PATCH] add page->mapping handling interface [7/35] changes in CODA
- From: KAMEZAWA Hiroyuki <[email protected]>
- [PATCH] add page->mapping handling interface [6/35] changes in CIFS
- From: KAMEZAWA Hiroyuki <[email protected]>
- [PATCH] add page->mapping handling interface [5/35] changes in AFS
- From: KAMEZAWA Hiroyuki <[email protected]>
- [PATCH] add page->mapping handling interface [4/35] changes in AFFS
- From: KAMEZAWA Hiroyuki <[email protected]>
- [PATCH] add page->mapping handling interface [3/35] changes in generic parts
- From: KAMEZAWA Hiroyuki <[email protected]>
- [PATCH] add page->mapping handling interface [2/35] changes in /mm
- From: KAMEZAWA Hiroyuki <[email protected]>
- [PATCH] add page->mapping handling interface [1/35] interface definitions
- From: KAMEZAWA Hiroyuki <[email protected]>
- [PATCH] add page->mapping handling interface [35/35] changes in XFS
- Prev by Date: Re: [PATCH] ser_a2232.c bug removed: handles "IRQ request denied" case
- Next by Date: [PATCH] add page->mapping handling interface [1/35] interface definitions
- Previous by thread: What's in ubi-2.6.git
- Next by thread: [PATCH] add page->mapping handling interface [1/35] interface definitions
- Index(es):