]> 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)
commit5e337634b8222950853421cfc18ef8861e994824
tree63e6239dd7fc8fbf5b055f3abe683b7675679b7f
parente1fdd4d3e95ae545d02ed693bf1b6961aa945978
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