]> git.baikalelectronics.ru Git - kernel.git/commit
iomap: mark newly allocated buffer heads as new
authorAndreas Gruenbacher <agruenba@redhat.com>
Tue, 19 Jun 2018 22:10:55 +0000 (15:10 -0700)
committerDarrick J. Wong <darrick.wong@oracle.com>
Tue, 19 Jun 2018 22:10:55 +0000 (15:10 -0700)
commit831c0bdc0bb5d619f648b915f50715668521cd57
treee9600c462c27ea792440797d5218f66b623e8e49
parent08d678399cf61b12456d9b4b2bb365b4e9926d38
iomap: mark newly allocated buffer heads as new

In iomap_to_bh, not only mark buffer heads in IOMAP_UNWRITTEN maps as
new, but also buffer heads in IOMAP_MAPPED maps with the IOMAP_F_NEW
flag set.  This will be used by filesystems like gfs2, which allocate
blocks in iomap->begin.

Minor corrections to the comment for IOMAP_UNWRITTEN maps.

Signed-off-by: Andreas Gruenbacher <agruenba@redhat.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Darrick J. Wong <darrick.wong@oracle.com>
Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
fs/buffer.c