]> err.no Git - linux-2.6/commit
[PATCH] ufs: missed brelse and wrong baseblk
authorEvgeniy Dushistov <dushistov@mail.ru>
Sun, 25 Jun 2006 12:47:28 +0000 (05:47 -0700)
committerLinus Torvalds <torvalds@g5.osdl.org>
Sun, 25 Jun 2006 17:01:04 +0000 (10:01 -0700)
commitf391475812ba39afa322c835217ffe936f5e754a
treed5bf0a5ec79b0bebe87988734c316b18360f42a8
parent96710b29e05f3b470bc4206366021b56e28d5208
[PATCH] ufs: missed brelse and wrong baseblk

This patch fixes two bugs, which introduced by previous patches:

1) Missed "brelse"

2) Sometimes "baseblk" may be wrongly calculated, if i_size is equal to
   zero, which lead infinite cycle in "mpage_writepages".

Signed-off-by: Evgeniy Dushistov <dushistov@mail.ru>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
fs/ufs/balloc.c
fs/ufs/inode.c