iomap: Switch from blkno to disk offset
authorAndreas Gruenbacher <agruenba@redhat.com>
Sun, 1 Oct 2017 21:55:54 +0000 (17:55 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Sun, 1 Oct 2017 21:55:54 +0000 (17:55 -0400)
commit19fe5f643f89f29c1a16bc474d91506b0e9a6232
treea6fce3b138de34c1058b807cff32bbd375172b04
parent9e66317d3c92ddaab330c125dfe9d06eee268aff
iomap: Switch from blkno to disk offset

Replace iomap->blkno, the sector number, with iomap->addr, the disk
offset in bytes.  For invalid disk offsets, use the special value
IOMAP_NULL_ADDR instead of IOMAP_NULL_BLOCK.

This allows to use iomap for mappings which are not block aligned, such
as inline data on ext4.

Signed-off-by: Andreas Gruenbacher <agruenba@redhat.com>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Reviewed-by: Darrick J. Wong <darrick.wong@oracle.com> # iomap, xfs
Reviewed-by: Jan Kara <jack@suse.cz>
fs/buffer.c
fs/dax.c
fs/ext2/inode.c
fs/ext4/inode.c
fs/iomap.c
fs/nfsd/blocklayout.c
fs/xfs/xfs_iomap.c
include/linux/iomap.h