From 4834946a22ff36345794fb104abf5ea45a0dc1be Mon Sep 17 00:00:00 2001 From: adilger Date: Sat, 22 Nov 2003 19:32:05 +0000 Subject: [PATCH] Add fsfilt_map_inode_page() instead of calling ext3_map_inode_page() directly from filter_direct_io(). Update fsfilt_extN.c. --- lustre/obdfilter/filter_io_24.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/lustre/obdfilter/filter_io_24.c b/lustre/obdfilter/filter_io_24.c index 72b7ba6..6c75d3e 100644 --- a/lustre/obdfilter/filter_io_24.c +++ b/lustre/obdfilter/filter_io_24.c @@ -53,8 +53,6 @@ void inode_update_time(struct inode *inode, int ctime_too) mark_inode_dirty_sync(inode); } -int ext3_map_inode_page(struct inode *inode, struct page *page, - unsigned long *blocks, int *created, int create); /* Must be called with i_sem taken; this will drop it */ static int filter_direct_io(int rw, struct dentry *dchild, struct kiobuf *iobuf, struct obd_export *exp, struct iattr *attr, @@ -87,7 +85,7 @@ static int filter_direct_io(int rw, struct dentry *dchild, struct kiobuf *iobuf, for (i = 0, cr = created, b = iobuf->blocks; i < iobuf->nr_pages; i++){ page = iobuf->maplist[i]; - rc = ext3_map_inode_page(inode, page, b, cr, create); + rc = fsfilt_map_inode_page(obd, inode, page, b, cr, create); if (rc) { CERROR("ino %lu, blk %lu cr %u create %d: rc %d\n", inode->i_ino, *b, *cr, create, rc); -- 1.8.3.1