]> err.no Git - linux-2.6/commit
[XFS] Make xfs_bulkstat() to report unlinked but referenced inodes
authorVlad Apostolov <vapo@sgi.com>
Fri, 23 Nov 2007 05:27:51 +0000 (16:27 +1100)
committerLachlan McIlroy <lachlan@redback.melbourne.sgi.com>
Thu, 7 Feb 2008 07:13:37 +0000 (18:13 +1100)
commitc319b58b13bb22f9a2478825b06c641c825f51ec
tree92d259656210a8bd698e02aac28b37c32d6a9e3e
parent98ce2b5b1bd6db9f8d510b4333757fa6b1efe131
[XFS] Make xfs_bulkstat() to report unlinked but referenced inodes

We need xfs_bulkstat() to report inode stat for inodes with link count
zero but reference count non zero.

The fix here:

http://oss.sgi.com/archives/xfs/2007-09/msg00266.html

changed this behavior and made xfs_bulkstat() to filter all unlinked
inodes including those that are not destroyed yet but held by reference.

The attached patch returns back to the original behavior by marking the
on-disk inode buffer "dirty" when di_mode is cleared (at that time both
inode link and reference counter are zero).

SGI-PV: 972004
SGI-Modid: xfs-linux-melb:xfs-kern:29914a

Signed-off-by: Vlad Apostolov <vapo@sgi.com>
Signed-off-by: David Chinner <dgc@sgi.com>
Signed-off-by: Lachlan McIlroy <lachlan@sgi.com>
fs/xfs/xfs_inode.c
fs/xfs/xfs_itable.c