diff options
author | Vincent Hanquez <vincent@snarc.org> | 2006-02-03 03:04:48 -0800 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-02-03 08:32:11 -0800 |
commit | 7656f328f68b351a8bb71ad465cedc8d0a039f9e (patch) | |
tree | 178a98c7619a943f06f3c5a286add5140d7b8229 | |
parent | ddca2488a2a69421924485bbcec39b512b580d0e (diff) | |
download | op-kernel-dev-7656f328f68b351a8bb71ad465cedc8d0a039f9e.zip op-kernel-dev-7656f328f68b351a8bb71ad465cedc8d0a039f9e.tar.gz |
[PATCH] debugfs: hard link count wrong
Fix incorrect nlink of root inode for filesystems that use
simple_fill_super().
Signed-off-by: Vincent Hanquez <vincent@snarc.org>
Cc: Greg KH <gregkh@suse.de>
Cc: Heiko Carstens <heiko.carstens@de.ibm.com>
Cc: Al Viro <viro@ftp.linux.org.uk>
Cc: Christoph Hellwig <hch@lst.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
-rw-r--r-- | fs/libfs.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -388,6 +388,7 @@ int simple_fill_super(struct super_block *s, int magic, struct tree_descr *files inode->i_atime = inode->i_mtime = inode->i_ctime = CURRENT_TIME; inode->i_op = &simple_dir_inode_operations; inode->i_fop = &simple_dir_operations; + inode->i_nlink = 2; root = d_alloc_root(inode); if (!root) { iput(inode); |