]> 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)
commitea8dbdbc7c94887b4721d6c324b66a47e132947d
treeb387e4f1258349d4996f5e9a77ba106ffd38c2da
parent5971cf91ef142dee846edd5246cc6a73a3bb7664
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