Merge tag 'fixes_for_v5.5-rc8' of git://git.kernel.org/pub/scm/linux/kernel/git/jack/linux-fs
Pull reiserfs fix from Jan Kara: "A fixup of a recently merged reiserfs fix which has caused problem when xattrs were not compiled in" * tag 'fixes_for_v5.5-rc8' of git://git.kernel.org/pub/scm/linux/kernel/git/jack/linux-fs: reiserfs: fix handling of -EOPNOTSUPP in reiserfs_for_each_xattr
This commit is contained in:
+6
-2
@@ -319,8 +319,12 @@ static int reiserfs_for_each_xattr(struct inode *inode,
|
||||
out_dir:
|
||||
dput(dir);
|
||||
out:
|
||||
/* -ENODATA isn't an error */
|
||||
if (err == -ENODATA)
|
||||
/*
|
||||
* -ENODATA: this object doesn't have any xattrs
|
||||
* -EOPNOTSUPP: this file system doesn't have xattrs enabled on disk.
|
||||
* Neither are errors
|
||||
*/
|
||||
if (err == -ENODATA || err == -EOPNOTSUPP)
|
||||
err = 0;
|
||||
return err;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user