X-Git-Url: http://git.cascardo.info/?p=cascardo%2Flinux.git;a=blobdiff_plain;f=fs%2Fxfs%2Fxfs_file.c;h=2bc58b3fd37d27b1e6f0c11704a1cd7ae9710b18;hp=26acfbb331ae885e29a9d81e45930a2479e1650f;hb=fed41f7d039bad02f94cad9059e4b14cd81d13f2;hpb=563873318d328d9bbab4b00dfd835ac7c7e28697 diff --git a/fs/xfs/xfs_file.c b/fs/xfs/xfs_file.c index 26acfbb331ae..2bc58b3fd37d 100644 --- a/fs/xfs/xfs_file.c +++ b/fs/xfs/xfs_file.c @@ -319,7 +319,7 @@ xfs_file_dio_aio_read( data = *to; ret = __blockdev_direct_IO(iocb, inode, target->bt_bdev, &data, xfs_get_blocks_direct, NULL, NULL, 0); - if (ret > 0) { + if (ret >= 0) { iocb->ki_pos += ret; iov_iter_advance(to, ret); } @@ -901,7 +901,7 @@ xfs_file_fallocate( iattr.ia_valid = ATTR_SIZE; iattr.ia_size = new_size; - error = xfs_setattr_size(ip, &iattr); + error = xfs_vn_setattr_size(file_dentry(file), &iattr); if (error) goto out_unlock; }