fs/ntfs3: Redesign ntfs_create_inode to return error code instead of inode
authorKonstantin Komarov <almaz.alexandrovich@paragon-software.com>
Tue, 16 Apr 2024 06:52:47 +0000 (09:52 +0300)
committerKonstantin Komarov <almaz.alexandrovich@paragon-software.com>
Tue, 23 Apr 2024 06:34:24 +0000 (09:34 +0300)
commitc935c66878867dc87c36c36b21d35d7e7f08adec
tree914914c4a84093691ef6ebd5905d7ac82e6edfbe
parent1997cdc3e727526aa5d84b32f7cbb3f56459b7ef
fs/ntfs3: Redesign ntfs_create_inode to return error code instead of inode

As Al Viro correctly pointed out, there is no need to return
the whole structure to check the error.
https://lore.kernel.org/ntfs3/20240322023515.GK538574@ZenIV/

Acked-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Konstantin Komarov <almaz.alexandrovich@paragon-software.com>
fs/ntfs3/inode.c
fs/ntfs3/namei.c
fs/ntfs3/ntfs_fs.h