]> www.infradead.org Git - users/hch/xfsprogs.git/commit
libxfs: add function to free all buffers in bcache
authorEric Sandeen <sandeen@redhat.com>
Fri, 9 Mar 2018 02:35:22 +0000 (20:35 -0600)
committerEric Sandeen <sandeen@redhat.com>
Fri, 9 Mar 2018 02:35:22 +0000 (20:35 -0600)
commit864028ed3ae482212b41f83d85b2be42aedb3aac
tree6bd3ccf583b2155ac9ea3cfca2c4ab86235f99fd
parentfc9f709f5beeb2b89136662013fc0bb65828ca8f
libxfs: add function to free all buffers in bcache

libxfs_bcache_purge simply moves all "free" buffers
onto the xfs_buf_freelist mru list; add a new function to
actually free them when we tear everything down, so leak
checkers don't go nuts about lots of unfreed xfs_bufs
at exit.

Signed-off-by: Eric Sandeen <sandeen@redhat.com>
Reviewed-by: Darrick J. Wong <darrick.wong@oracle.com>
Signed-off-by: Eric Sandeen <sandeen@sandeen.net>
libxfs/init.c
libxfs/libxfs_io.h
libxfs/rdwr.c