summaryrefslogtreecommitdiffstats
path: root/module/zfs/zfs_vfsops.c
diff options
context:
space:
mode:
authorBrian Behlendorf <[email protected]>2011-04-18 14:12:28 -0700
committerBrian Behlendorf <[email protected]>2011-04-19 08:57:23 -0700
commite30c0ada6d0174e044b96fbedf5946c3be66e956 (patch)
treea7316001749496669f69a89555bd7c24469dc501 /module/zfs/zfs_vfsops.c
parentcbf81d4c3b1344145519c4187e10251822204889 (diff)
Linux 2.6.39 compat, invalidate_inodes()
Update code to use the spl_invalidate_inodes() wrapper. This hides some of the complexity of determining if invalidate_inodes() was exported, and if so what is its prototype. The second argument of spl_invalidate_inodes() determined the behavior of how dirty inodes are handled. By passing a zero we are indicated that we want those inodes to be treated as busy and skipped.
Diffstat (limited to 'module/zfs/zfs_vfsops.c')
-rw-r--r--module/zfs/zfs_vfsops.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/module/zfs/zfs_vfsops.c b/module/zfs/zfs_vfsops.c
index 803607484..8a82d9d4b 100644
--- a/module/zfs/zfs_vfsops.c
+++ b/module/zfs/zfs_vfsops.c
@@ -1088,7 +1088,7 @@ zfsvfs_teardown(zfs_sb_t *zsb, boolean_t unmounting)
* for non-snapshots.
*/
shrink_dcache_sb(zsb->z_parent->z_sb);
- invalidate_inodes(zsb->z_parent->z_sb);
+ (void) spl_invalidate_inodes(zsb->z_parent->z_sb, 0);
}
/*