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:
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).
Date: Fri Oct 19 11:21:26 AEST 2007
Workarea: soarer.melbourne.sgi.com:/home/vapo/isms/linux-xfs1
Inspected by: dgc
The following file(s) were checked into:
longdrop.melbourne.sgi.com:/isms/linux/2.6.x-xfs-melb
Modid: xfs-linux-melb:xfs-kern:29914a
fs/xfs/xfs_itable.c - 1.157 - changed
http://oss.sgi.com/cgi-bin/cvsweb.cgi/xfs-linux/xfs_itable.c.diff?r1=text&tr1=1.157&r2=text&tr2=1.156&f=h
- pv 972004, rv dgc - Make xfs_bulkstat() to report unlinked but
referenced inodes
fs/xfs/xfs_inode.c - 1.484 - changed
http://oss.sgi.com/cgi-bin/cvsweb.cgi/xfs-linux/xfs_inode.c.diff?r1=text&tr1=1.484&r2=text&tr2=1.483&f=h
- pv 972004, rv dgc - Make xfs_bulkstat() to report unlinked but
referenced inodes
|