]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commit
libxfs: straighten out libxfs_writebuf naming confusion
authorDarrick J. Wong <darrick.wong@oracle.com>
Sun, 1 Mar 2020 17:34:11 +0000 (12:34 -0500)
committerEric Sandeen <sandeen@sandeen.net>
Sun, 1 Mar 2020 17:34:11 +0000 (12:34 -0500)
commit18b4f6882769ae6927ee0d27ad4acac193665554
treefc0b69fe1a38eb6897bbdd2fbeee1dd49c37cdc2
parent094681191359fbe6c6388e0ae87cda94f1e97007
libxfs: straighten out libxfs_writebuf naming confusion

libxfs_writebuf is not a well named function -- it marks the buffer
dirty and then releases the caller's reference.  The actual write comes
when the cache is flushed, either because someone explicitly told the
cache to flush or because we started buffer reclaim.

Make the buffer release explicit in the callers and rename the function
to say what it actually does -- it marks the buffer dirty outside of
transaction context.

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>
15 files changed:
libxfs/libxfs_io.h
libxfs/rdwr.c
libxfs/trans.c
mkfs/proto.c
mkfs/xfs_mkfs.c
repair/attr_repair.c
repair/da_util.c
repair/dino_chunks.c
repair/dinode.c
repair/dir2.c
repair/phase3.c
repair/phase5.c
repair/rmap.c
repair/scan.c
repair/xfs_repair.c