Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

mm: remove nrexceptional from inode

We no longer track anything in nrexceptional, so remove it, saving 8 bytes
per inode.

Link: https://lkml.kernel.org/r/20201026151849.24232-5-willy@infradead.org
Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org>
Tested-by: Vishal Verma <vishal.l.verma@intel.com>
Acked-by: Johannes Weiner <hannes@cmpxchg.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>

authored by

Matthew Wilcox (Oracle) and committed by
Linus Torvalds
8bc3c481 7f0e07fb

+1 -3
+1 -1
fs/inode.c
··· 529 529 */ 530 530 xa_lock_irq(&inode->i_data.i_pages); 531 531 BUG_ON(inode->i_data.nrpages); 532 - BUG_ON(inode->i_data.nrexceptional); 532 + BUG_ON(!mapping_empty(&inode->i_data)); 533 533 xa_unlock_irq(&inode->i_data.i_pages); 534 534 BUG_ON(!list_empty(&inode->i_data.private_list)); 535 535 BUG_ON(!(inode->i_state & I_FREEING));
-2
include/linux/fs.h
··· 442 442 * @i_mmap: Tree of private and shared mappings. 443 443 * @i_mmap_rwsem: Protects @i_mmap and @i_mmap_writable. 444 444 * @nrpages: Number of page entries, protected by the i_pages lock. 445 - * @nrexceptional: Shadow or DAX entries, protected by the i_pages lock. 446 445 * @writeback_index: Writeback starts here. 447 446 * @a_ops: Methods. 448 447 * @flags: Error bits and flags (AS_*). ··· 462 463 struct rb_root_cached i_mmap; 463 464 struct rw_semaphore i_mmap_rwsem; 464 465 unsigned long nrpages; 465 - unsigned long nrexceptional; 466 466 pgoff_t writeback_index; 467 467 const struct address_space_operations *a_ops; 468 468 unsigned long flags;