]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitb826f1828ace0b7d8a9d1a4e8c7c40ba0bef9393
tree63e6239dd7fc8fbf5b055f3abe683b7675679b7f
parente4e4357d568084a47ebf482ded3989b1bdde0477
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