aboutsummaryrefslogtreecommitdiffstats
path: root/fs/file_table.c
diff options
context:
space:
mode:
authorMiklos Szeredi <[email protected]>2011-11-21 11:11:32 +0000
committerAl Viro <[email protected]>2012-01-07 04:20:12 +0000
commit7ada4db88634429f4da690ad1c4eb73c93085f0c (patch)
treeed1228f0bfa9d0050d746933595004d7c6e940f9 /fs/file_table.c
parentvfs: protect remounting superblock read-only (diff)
downloadkernel-7ada4db88634429f4da690ad1c4eb73c93085f0c.tar.gz
kernel-7ada4db88634429f4da690ad1c4eb73c93085f0c.zip
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 <[email protected]> Tested-by: Toshiyuki Okajima <[email protected]> Signed-off-by: Al Viro <[email protected]>
Diffstat (limited to 'fs/file_table.c')
0 files changed, 0 insertions, 0 deletions