]> git.baikalelectronics.ru Git - kernel.git/commit
[PATCH] bfs iget() abuses
authorAl Viro <viro@ftp.linux.org.uk>
Tue, 4 Oct 2005 16:48:44 +0000 (17:48 +0100)
committerLinus Torvalds <torvalds@g5.osdl.org>
Tue, 4 Oct 2005 20:22:01 +0000 (13:22 -0700)
commit48fbea23c38d1cec43d529c5c4f2193cdbf4ba04
tree8d022fdb4b7c44b940f8b09f2e568c044cadc27c
parent4b0f7f0bc5c154e5decbe356faf85a7cf242cc61
[PATCH] bfs iget() abuses

bfs_fill_super() walks the inode table to get the bitmap of free inodes
and collect stats.  It has no business using iget() for that - it's a
lot of extra work, extra icache pollution and more complex code.
Switched to walking the damn thing directly.

Note: that also allows to kill ->i_dsk_ino in there - separate patch if
Tigran can confirm that this field can be zero only for deleted inodes
(i.e.  something that could only be found during that scan and not by
normal lookups).

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
fs/bfs/inode.c