]> git.baikalelectronics.ru Git - kernel.git/commit
xfs: directory bestfree check should release buffers
authorDarrick J. Wong <darrick.wong@oracle.com>
Wed, 25 Mar 2020 03:10:56 +0000 (20:10 -0700)
committerDarrick J. Wong <darrick.wong@oracle.com>
Thu, 26 Mar 2020 15:19:24 +0000 (08:19 -0700)
commit34292a7fea957281d13fa66cb2210e6c773148b4
treeb387e4f1258349d4996f5e9a77ba106ffd38c2da
parent64d4cc8d6c8e735fbaa4cab114c02ccd05adcd0c
xfs: directory bestfree check should release buffers

When we're checking bestfree information in directory blocks, always
drop the block buffer at the end of the function.  We should always
release resources when we're done using them.

Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
fs/xfs/scrub/dir.c