File iscsitarget-2.6.33.patch of Package iscsitarget
--- kernel/conn.c
+++ kernel/conn.c
@@ -43,7 +43,7 @@
switch (sk->sk_family) {
case AF_INET:
snprintf(buf, sizeof(buf),
- "%pI4", &inet_sk(sk)->daddr);
+ "%pI4", &inet_sk(sk)->inet_daddr);
break;
case AF_INET6:
snprintf(buf, sizeof(buf), "[%pI6]",
--- kernel/file-io.c
+++ kernel/file-io.c
@@ -75,8 +75,7 @@
static int fileio_sync(struct iet_volume *lu, struct tio *tio)
{
struct fileio_data *p = lu->private;
- struct inode *inode = p->filp->f_dentry->d_inode;
- struct address_space *mapping = inode->i_mapping;
+ struct file *filp = p->filp;
loff_t ppos, count;
int res;
@@ -88,7 +87,7 @@
count = lu->blk_cnt << lu->blk_shift;
}
- res = sync_page_range(inode, mapping, ppos, count);
+ res = generic_write_sync(filp, ppos, count);
if (res) {
eprintk("I/O error: syncing pages failed: %d\n", res);
return -EIO;