From: Miklos Szeredi Date: Mon, 21 Nov 2011 11:11:32 +0000 (+0100) Subject: vfs: count unlinked inodes X-Git-Tag: v3.3-rc1~170^2~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7ada4db88634429f4da690ad1c4eb73c93085f0c;p=pandora-kernel.git vfs: count unlinked inodes Add a new counter to the superblock that keeps track of unlinked but not yet deleted inodes. Do not WARN_ON if set_nlink is called with zero count, just do a ratelimited printk. This happens on xfs and probably other filesystems after an unclean shutdown when the filesystem reads inodes which already have zero i_nlink. Reported by Christoph Hellwig. Signed-off-by: Miklos Szeredi Tested-by: Toshiyuki Okajima Signed-off-by: Al Viro --- Reading git-diff-tree failed