summaryrefslogtreecommitdiffstats
path: root/usr
diff options
context:
space:
mode:
authorAndreas Gruenbacher <agruenba@redhat.com>2019-07-24 13:05:38 +0200
committerAndreas Gruenbacher <agruenba@redhat.com>2019-08-09 17:00:52 +0100
commitd40312598d534c17c17f41c2bb7ce9541a5f786e (patch)
tree1000d342c7639188e45a3374392e311404777a84 /usr
parent2257e468a63b6d35a77e884ef032c54f9be65c92 (diff)
downloadlinux-d40312598d534c17c17f41c2bb7ce9541a5f786e.tar.bz2
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>
Diffstat (limited to 'usr')
0 files changed, 0 insertions, 0 deletions