]> www.infradead.org Git - users/hch/xfsprogs.git/commit
libxfs: introduce libxfs_buf_read_uncached
authorDarrick J. Wong <darrick.wong@oracle.com>
Sun, 1 Mar 2020 17:34:10 +0000 (12:34 -0500)
committerEric Sandeen <sandeen@sandeen.net>
Sun, 1 Mar 2020 17:34:10 +0000 (12:34 -0500)
commit3f8a028ede974bfa2eb3b55df44be600b4d09198
tree6ff4b4b1d6c8aaafc4ee2be012b2be20912e3363
parente214b18a2ee4a7623d1d1083836c7d9332c36456
libxfs: introduce libxfs_buf_read_uncached

Introduce an uncached read function so that userspace can handle them in
the same way as the kernel.  This also eliminates the need for some of
the libxfs_purgebuf calls (and two trips into the cache code).

Refactor the get/read uncached buffer functions to hide the details of
uncached buffer-ism in rdwr.c.

Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Eric Sandeen <sandeen@sandeen.net>
libxfs/libxfs_api_defs.h
libxfs/libxfs_io.h
libxfs/rdwr.c