commit | d40312598d534c17c17f41c2bb7ce9541a5f786e | [log] [tgz] |
---|---|---|
author | Andreas Gruenbacher <agruenba@redhat.com> | Wed Jul 24 13:05:38 2019 +0200 |
committer | Andreas Gruenbacher <agruenba@redhat.com> | Fri Aug 09 17:00:52 2019 +0100 |
tree | 1000d342c7639188e45a3374392e311404777a84 | |
parent | 2257e468a63b6d35a77e884ef032c54f9be65c92 [diff] |
gfs2: Minor gfs2_alloc_inode cleanup In gfs2_alloc_inode, when kmem_cache_alloc cannot allocate a new object, return NULL immediately. The code currently relies on the fact that i_inode is the first member in struct gfs2_inode and so ip and &ip->i_inode evaluate to the same address, but that isn't immediately obvious. Signed-off-by: Andreas Gruenbacher <agruenba@redhat.com> Reviewed-by: Bob Peterson <rpeterso@redhat.com>