diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2022-05-24 18:48:36 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2022-05-24 18:48:36 -0700 |
commit | 3842007b1a33589d57f67eac479b132b77767514 (patch) | |
tree | e84e629b23b264038d7e5e045127cd5bef139c9e /fs | |
parent | 65965d9530b0c320759cd18a9a5975fb2e098462 (diff) | |
parent | 14bdb047a54d7a44af8633848ad097bbaf1b2cb6 (diff) | |
download | lwn-3842007b1a33589d57f67eac479b132b77767514.tar.gz lwn-3842007b1a33589d57f67eac479b132b77767514.zip |
Merge tag 'zonefs-5.19-rc1-fix' of git://git.kernel.org/pub/scm/linux/kernel/git/dlemoal/zonefs
Pull zonefs fix from Damien Le Moal:
"A single patch to fix zonefs_init_file_inode() return value"
* tag 'zonefs-5.19-rc1-fix' of git://git.kernel.org/pub/scm/linux/kernel/git/dlemoal/zonefs:
zonefs: Fix zonefs_init_file_inode() return value
Diffstat (limited to 'fs')
-rw-r--r-- | fs/zonefs/super.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/zonefs/super.c b/fs/zonefs/super.c index b3b0b71fdf6c..652752df1a2f 100644 --- a/fs/zonefs/super.c +++ b/fs/zonefs/super.c @@ -1373,7 +1373,7 @@ static int zonefs_init_file_inode(struct inode *inode, struct blk_zone *zone, struct super_block *sb = inode->i_sb; struct zonefs_sb_info *sbi = ZONEFS_SB(sb); struct zonefs_inode_info *zi = ZONEFS_I(inode); - int ret; + int ret = 0; inode->i_ino = zone->start >> sbi->s_zone_sectors_shift; inode->i_mode = S_IFREG | sbi->s_perm; @@ -1420,7 +1420,7 @@ static int zonefs_init_file_inode(struct inode *inode, struct blk_zone *zone, unlock: mutex_unlock(&zi->i_truncate_mutex); - return 0; + return ret; } static struct dentry *zonefs_create_inode(struct dentry *parent, |