diff options
author | Christoph Hellwig <hch@lst.de> | 2016-11-24 01:39:49 +0100 |
---|---|---|
committer | Dave Chinner <david@fromorbit.com> | 2016-11-24 01:39:49 +0100 |
commit | 092d5d9d5812a80e4496cdbb24fe58e6f77da56b (patch) | |
tree | a5f43d2f5aab80f1e7ad9b7fa08370a4da96ee3f /fs/xfs/xfs_reflink.h | |
parent | xfs: use new extent lookup helpers in __xfs_reflink_reserve_cow (diff) | |
download | linux-092d5d9d5812a80e4496cdbb24fe58e6f77da56b.tar.xz linux-092d5d9d5812a80e4496cdbb24fe58e6f77da56b.zip |
xfs: cleanup xfs_reflink_find_cow_mapping
Use xfs_iext_lookup_extent to look up the extent, drop a useless check,
drop a unneeded return value and clean up the general style a little bit.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Brian Foster <bfoster@redhat.com>
Signed-off-by: Dave Chinner <david@fromorbit.com>
Diffstat (limited to 'fs/xfs/xfs_reflink.h')
-rw-r--r-- | fs/xfs/xfs_reflink.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/xfs/xfs_reflink.h b/fs/xfs/xfs_reflink.h index 97ea9b487884..cff5fc329359 100644 --- a/fs/xfs/xfs_reflink.h +++ b/fs/xfs/xfs_reflink.h @@ -31,7 +31,7 @@ extern int xfs_reflink_reserve_cow(struct xfs_inode *ip, extern int xfs_reflink_allocate_cow_range(struct xfs_inode *ip, xfs_off_t offset, xfs_off_t count); extern bool xfs_reflink_find_cow_mapping(struct xfs_inode *ip, xfs_off_t offset, - struct xfs_bmbt_irec *imap, bool *need_alloc); + struct xfs_bmbt_irec *imap); extern int xfs_reflink_trim_irec_to_next_cow(struct xfs_inode *ip, xfs_fileoff_t offset_fsb, struct xfs_bmbt_irec *imap); |