FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Ubuntu > Ubuntu Kernel Team

 
 
LinkBack Thread Tools
 
Old 12-04-2009, 12:25 AM
Manoj Iyer
 
Default file-io.c remove sync_page_range()

sync_page_range() was recently removed from 2.6, this causes the
iscsi-target build to fail in file-io.c. possibly sync_page_range() can be
replaced with generic_write_sync() ?

Index: kernel/file-io.c
================================================== =================
--- kernel/file-io.c (revision 276)
+++ kernel/file-io.c (working copy)
@@ -75,8 +75,6 @@
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;
loff_t ppos, count;
int res;

@@ -88,7 +86,7 @@
count = lu->blk_cnt << lu->blk_shift;
}

- res = sync_page_range(inode, mapping, ppos, count);
+ res = generic_write_sync(p->filp, ppos, count);
if (res) {
eprintk("I/O error: syncing pages failed: %d
", res);
return -EIO;
cheers
--- manjo

--
kernel-team mailing list
kernel-team@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/kernel-team
 

Thread Tools




All times are GMT. The time now is 01:19 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org