mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2025-01-13 19:50:25 +03:00
Added missing initialization for va.va_dentry in zfs_get_xattrdir.
Without this we may mistakenly believe we have a dentry and try to d_instantiate() it. This will result in the following BUG. It's important to note that while the xattr directory has an inode assoicated with it we never create a dentry for it. kernel BUG at fs/dcache.c:1418! Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov> Closes #202
This commit is contained in:
parent
826ab7ad19
commit
274b7e79f3
@ -1038,6 +1038,7 @@ top:
|
||||
va.va_mode = S_IFDIR | S_ISVTX | 0777;
|
||||
zfs_fuid_map_ids(zp, cr, &va.va_uid, &va.va_gid);
|
||||
|
||||
va.va_dentry = NULL;
|
||||
error = zfs_make_xattrdir(zp, &va, xipp, cr);
|
||||
zfs_dirent_unlock(dl);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user