mirror of
https://github.com/raspberrypi/linux.git
synced 2026-01-04 18:27:36 +00:00
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>
This commit is contained in:
@@ -714,11 +714,10 @@ int ntfs_sync_inode(struct inode *inode);
|
||||
int ntfs_flush_inodes(struct super_block *sb, struct inode *i1,
|
||||
struct inode *i2);
|
||||
int inode_write_data(struct inode *inode, const void *data, size_t bytes);
|
||||
struct inode *ntfs_create_inode(struct mnt_idmap *idmap, struct inode *dir,
|
||||
struct dentry *dentry,
|
||||
const struct cpu_str *uni, umode_t mode,
|
||||
dev_t dev, const char *symname, u32 size,
|
||||
struct ntfs_fnd *fnd);
|
||||
int ntfs_create_inode(struct mnt_idmap *idmap, struct inode *dir,
|
||||
struct dentry *dentry, const struct cpu_str *uni,
|
||||
umode_t mode, dev_t dev, const char *symname, u32 size,
|
||||
struct ntfs_fnd *fnd);
|
||||
int ntfs_link_inode(struct inode *inode, struct dentry *dentry);
|
||||
int ntfs_unlink_inode(struct inode *dir, const struct dentry *dentry);
|
||||
void ntfs_evict_inode(struct inode *inode);
|
||||
|
||||
Reference in New Issue
Block a user