shmem: make shmem_get_inode() return ERR_PTR instead of NULL
authorCarlos Maiolino <cem@kernel.org>
Tue, 25 Jul 2023 14:45:05 +0000 (16:45 +0200)
committerChristian Brauner <brauner@kernel.org>
Wed, 9 Aug 2023 07:15:39 +0000 (09:15 +0200)
commit71480663b751de1bdfafaa2f668ceabaea78b68b
tree688023245729bf2e3b1893d47050bf04d2d00ab6
parentc7e263ab45b95170fe7d4b818bab484268b7bba8
shmem: make shmem_get_inode() return ERR_PTR instead of NULL

Make shmem_get_inode() return ERR_PTR instead of NULL on error. This will be
useful later when we introduce quota support.

There should be no functional change.

Signed-off-by: Lukas Czerner <lczerner@redhat.com>
Signed-off-by: Carlos Maiolino <cmaiolino@redhat.com>
Reviewed-by: Jan Kara <jack@suse.cz>
Message-Id: <20230725144510.253763-3-cem@kernel.org>
Signed-off-by: Christian Brauner <brauner@kernel.org>
mm/shmem.c