aboutsummaryrefslogtreecommitdiffstats
path: root/fs/xfs/linux-2.6
diff options
context:
space:
mode:
Diffstat (limited to 'fs/xfs/linux-2.6')
-rw-r--r--fs/xfs/linux-2.6/xfs_iops.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/fs/xfs/linux-2.6/xfs_iops.c b/fs/xfs/linux-2.6/xfs_iops.c
index 53f8feb28e58..41e7baabfd9f 100644
--- a/fs/xfs/linux-2.6/xfs_iops.c
+++ b/fs/xfs/linux-2.6/xfs_iops.c
@@ -692,11 +692,19 @@ xfs_vn_setattr(
692 return -error; 692 return -error;
693} 693}
694 694
695/*
696 * block_truncate_page can return an error, but we can't propagate it
697 * at all here. Leave a complaint + stack trace in the syslog because
698 * this could be bad. If it is bad, we need to propagate the error further.
699 */
695STATIC void 700STATIC void
696xfs_vn_truncate( 701xfs_vn_truncate(
697 struct inode *inode) 702 struct inode *inode)
698{ 703{
699 block_truncate_page(inode->i_mapping, inode->i_size, xfs_get_blocks); 704 int error;
705 error = block_truncate_page(inode->i_mapping, inode->i_size,
706 xfs_get_blocks);
707 WARN_ON(error);
700} 708}
701 709
702STATIC int 710STATIC int