]> rtime.felk.cvut.cz Git - mcf548x/linux.git/commit
xfs: simplify xfs_truncate_file
authorChristoph Hellwig <hch@infradead.org>
Tue, 20 Jul 2010 07:51:31 +0000 (17:51 +1000)
committerAlex Elder <aelder@sgi.com>
Mon, 26 Jul 2010 18:16:52 +0000 (13:16 -0500)
commit5d18898b20dfed5f373f8a9a7cbe01446036f8e9
treedc96915d62c7140ad4ac33a3724ddf36f9db022f
parent939d723b721eef71060201738653a73443ff4510
xfs: simplify xfs_truncate_file

xfs_truncate_file is only used for truncating quota files.  Move it to
xfs_qm_syscalls.c so it can be marked static and take advatange of the
fact by removing the unused page cache validation and taking the iget
into the helper.

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/quota/xfs_qm_syscalls.c
fs/xfs/xfs_utils.c
fs/xfs/xfs_utils.h