Commit: ee7efef54a7c1d920d4a90c1a139b31a0449d372
https://github.com/zfs-linux/zfs/commit/ee7efef54a7c1d920d4a90c1a139b31a0449d372
Author: Prasad Joshi <pra...@kqinfotech.com>
Date: 2011-02-24 (Thu, 24 Feb 2011)
Changed paths:
M module/zfs/zfs_znode.c
Log Message:
-----------
Calling iget_failed if zfs_znode_alloc returns NULL
Commit: ea4b209bd9552c6ac3caead593130de47736fd72
https://github.com/zfs-linux/zfs/commit/ea4b209bd9552c6ac3caead593130de47736fd72
Author: Prasad Joshi <pra...@kqinfotech.com>
Date: 2011-02-24 (Thu, 24 Feb 2011)
Changed paths:
M module/zfs/zfs_ctldir.c
M module/zfs/zfs_dir.c
M module/zfs/zfs_vfsops.c
M module/zfs/zfs_vnops.c
M module/zfs/zfs_znode.c
Log Message:
-----------
igrab returns NULL when the inode state is (I_FREEING|I_CLEAR|I_WILL_FREE). Check the return value of VN_HOLD (igrab), if it is NULL then return an error EAGAIN.
- When the system is running short of memory, various caches (inode and/or dentry) are shrinked to make more memory available. The patch ensures the inode being used is not either, in state of being freed (I_FREEING or I_WILL_FREE) or freed (I_CLEAR).