]> git.baikalelectronics.ru Git - kernel.git/commit
[GFS2] Get inode buffer only once per block map call
authorSteven Whitehouse <swhiteho@redhat.com>
Tue, 12 Feb 2008 14:48:39 +0000 (14:48 +0000)
committerSteven Whitehouse <swhiteho@redhat.com>
Mon, 31 Mar 2008 09:40:58 +0000 (10:40 +0100)
commit6b476bc150b90d557b6a46dbd7e6c0d89f440b8c
treee7b447b7d1538b614bf041414e59603107c10151
parentcd3b0756f026fcf2252de341c39f44f098d19458
[GFS2] Get inode buffer only once per block map call

In the case that we needed to grow the height of the metadata tree
we were looking up the inode buffer and then brelse()ing it despite
the fact that it is needed later in the block map process.

This patch ensures that we look up the inode's buffer once and only
once during the block map process.

Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>
fs/gfs2/bmap.c