Drop 'size' argument from bio_endio and bi_end_io
[deliverable/linux.git] / fs / xfs / linux-2.6 / xfs_aops.c
index d9c40fe641953a20b9b5fc8059f65b481382f9b7..3f13519436afc983ed5b1a62a4433387964b39d4 100644 (file)
@@ -181,6 +181,7 @@ xfs_setfilesize(
                ip->i_d.di_size = isize;
                ip->i_update_core = 1;
                ip->i_update_size = 1;
+               mark_inode_dirty_sync(vn_to_inode(ioend->io_vnode));
        }
 
        xfs_iunlock(ip, XFS_ILOCK_EXCL);
@@ -325,14 +326,10 @@ xfs_iomap_valid(
 STATIC int
 xfs_end_bio(
        struct bio              *bio,
-       unsigned int            bytes_done,
        int                     error)
 {
        xfs_ioend_t             *ioend = bio->bi_private;
 
-       if (bio->bi_size)
-               return 1;
-
        ASSERT(atomic_read(&bio->bi_cnt) >= 1);
        ioend->io_error = test_bit(BIO_UPTODATE, &bio->bi_flags) ? 0 : error;
 
This page took 0.025506 seconds and 5 git commands to generate.