diff --git a/fs/xattr.c b/fs/xattr.c index 30f2a5822d4f..9d2bbab380f1 100644 --- a/fs/xattr.c +++ b/fs/xattr.c @@ -672,7 +672,7 @@ int do_setxattr(struct mnt_idmap *idmap, struct dentry *dentry, #ifdef CONFIG_TRUENAS if (ctx->size && (ctx->size > XATTR_SIZE_MAX) && - (IS_LARGE_XATTR(d->d_inode) == 0)) { + (IS_LARGE_XATTR(dentry->d_inode) == 0)) { return -E2BIG; } #endif