From: Brian Behlendorf Date: Mon, 18 Apr 2011 21:12:28 +0000 (-0700) Subject: Linux 2.6.39 compat, invalidate_inodes() X-Git-Tag: zfs-0.6.0-rc4~42 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e30c0ada6d0174e044b96fbedf5946c3be66e956;p=zfs 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. --- 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); } /*