aboutsummaryrefslogtreecommitdiff
path: root/fs/omfs
diff options
context:
space:
mode:
authorMiaohe Lin2021-02-24 12:10:01 -0800
committerLinus Torvalds2021-02-24 13:38:35 -0800
commitd0146756a0993d3a01407b38cd87d965ccda72c6 (patch)
tree6befae289a5f85d4687d9f3fee5094785e8e93ea /fs/omfs
parenta4fa34cdcd18296c097e2648fe894d28c5cf9709 (diff)
hugetlbfs: remove useless BUG_ON(!inode) in hugetlbfs_setattr()
When we reach here with inode = NULL, we should have crashed as inode has already been dereferenced via hstate_inode. So this BUG_ON(!inode) does not take effect and should be removed. Link: https://lkml.kernel.org/r/20210118110700.52506-1-linmiaohe@huawei.com Signed-off-by: Miaohe Lin <linmiaohe@huawei.com> Reviewed-by: Mike Kravetz <mike.kravetz@oracle.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'fs/omfs')
0 files changed, 0 insertions, 0 deletions