OSDN Git Service

xfs: use new extent lookup helpers xfs_file_iomap_begin_delay
authorChristoph Hellwig <hch@lst.de>
Mon, 9 Jan 2017 15:38:46 +0000 (16:38 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 12 Jan 2017 10:39:41 +0000 (11:39 +0100)
commit553937d3cce8d3806655771099928ab5525fa7e4
tree2b036764b4275eb52a6a867683ccc2e44dda7a8f
parent3d6e3b12bb4eac5cadb4733530c1967fe9e3d6a9
xfs: use new extent lookup helpers xfs_file_iomap_begin_delay

commit 656152e552e5cbe0c11ad261b524376217c2fb13 upstream.

And only lookup the previous extent inside xfs_iomap_prealloc_size
if we actually need it.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Brian Foster <bfoster@redhat.com>
Signed-off-by: Dave Chinner <david@fromorbit.com>
Cc: Christoph Hellwig <hch@lst.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/xfs/xfs_iomap.c