]> err.no Git - linux-2.6/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)
commitc2b513dfbb04d7c94cca145172cfeb91f7683e54
tree8d022fdb4b7c44b940f8b09f2e568c044cadc27c
parentce0fe7e70a0ad11097a3773e9f3f0de3d859edf0
[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