]> git.baikalelectronics.ru Git - kernel.git/commit
reiserfs: cleanup path functions
authorJeff Mahoney <jeffm@suse.com>
Mon, 30 Mar 2009 18:02:43 +0000 (14:02 -0400)
committerLinus Torvalds <torvalds@linux-foundation.org>
Mon, 30 Mar 2009 19:16:39 +0000 (12:16 -0700)
commit4b3ee113effb21aa347d3ddacf4899d49154aa4c
tree613a4aaa00bc830b69a97ff2cb3558dc163f957d
parent1de68e57fa4b55cd2f29afbea2012cc4b83857e0
reiserfs: cleanup path functions

This patch cleans up some redundancies in the reiserfs tree path code.

decrement_bcount() is essentially the same function as brelse(), so we use
that instead.

decrement_counters_in_path() is exactly the same function as pathrelse(), so
we kill that and use pathrelse() instead.

There's also a bit of cleanup that makes the code a bit more readable.

Signed-off-by: Jeff Mahoney <jeffm@suse.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
fs/reiserfs/fix_node.c
fs/reiserfs/stree.c