mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2025-01-27 02:14:28 +03:00
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.
This commit is contained in:
parent
cbf81d4c3b
commit
e30c0ada6d
@ -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);
|
||||
}
|
||||
|
||||
/*
|
||||
|
Loading…
Reference in New Issue
Block a user