xfs: factor out a xfs_update_prealloc_flags() helper
authorChristoph Hellwig <hch@lst.de>
Sun, 1 Feb 2015 22:53:56 +0000 (09:53 +1100)
committerDave Chinner <david@fromorbit.com>
Sun, 1 Feb 2015 22:53:56 +0000 (09:53 +1100)
commit8add71ca3fd67c5f222622711f95cfd6cec2a996
tree63e6239dd7fc8fbf5b055f3abe683b7675679b7f
parent4d949021aac8b63c9c3b8a83cc8a29759c7e1d5e
xfs: factor out a xfs_update_prealloc_flags() helper

This logic is duplicated in xfs_file_fallocate and xfs_ioc_space, and
we'll need another copy of it for pNFS block support.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
Signed-off-by: Dave Chinner <david@fromorbit.com>
fs/xfs/xfs_file.c
fs/xfs/xfs_inode.h
fs/xfs/xfs_ioctl.c