diff options
Diffstat (limited to 'fs/xfs/linux-2.6/xfs_sync.c')
-rw-r--r-- | fs/xfs/linux-2.6/xfs_sync.c | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/fs/xfs/linux-2.6/xfs_sync.c b/fs/xfs/linux-2.6/xfs_sync.c index 88caafc8ef1b..73cf8dc19738 100644 --- a/fs/xfs/linux-2.6/xfs_sync.c +++ b/fs/xfs/linux-2.6/xfs_sync.c | |||
@@ -426,31 +426,6 @@ xfs_syncd_queue_work( | |||
426 | * heads, looking about for more room... | 426 | * heads, looking about for more room... |
427 | */ | 427 | */ |
428 | STATIC void | 428 | STATIC void |
429 | xfs_flush_inode_work( | ||
430 | struct xfs_mount *mp, | ||
431 | void *arg) | ||
432 | { | ||
433 | struct inode *inode = arg; | ||
434 | filemap_flush(inode->i_mapping); | ||
435 | iput(inode); | ||
436 | } | ||
437 | |||
438 | void | ||
439 | xfs_flush_inode( | ||
440 | xfs_inode_t *ip) | ||
441 | { | ||
442 | struct inode *inode = VFS_I(ip); | ||
443 | |||
444 | igrab(inode); | ||
445 | xfs_syncd_queue_work(ip->i_mount, inode, xfs_flush_inode_work); | ||
446 | delay(msecs_to_jiffies(500)); | ||
447 | } | ||
448 | |||
449 | /* | ||
450 | * This is the "bigger hammer" version of xfs_flush_inode_work... | ||
451 | * (IOW, "If at first you don't succeed, use a Bigger Hammer"). | ||
452 | */ | ||
453 | STATIC void | ||
454 | xfs_flush_inodes_work( | 429 | xfs_flush_inodes_work( |
455 | struct xfs_mount *mp, | 430 | struct xfs_mount *mp, |
456 | void *arg) | 431 | void *arg) |