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)
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

Simple merge
Simple merge
Simple merge