From d67259ef29a7024e759b9a816ab6ba104237a929 Mon Sep 17 00:00:00 2001
From: Jan Stancek <jstancek@redhat.com>
Date: Mon, 24 Mar 2025 15:19:03 +0100
Subject: [PATCH] Revert "smb: client: fix chmod(2) regression with
 ATTR_READONLY"

JIRA: INTERNAL
Upstream Status: RHEL Only

This reverts commit 3777501a9133102c4c2c6d6eabadfb76caf14da1 because
it went it by accident during Exception/Blocker period (dist-git policy
already allowed 10.0.z content so it passed policy check).

Signed-off-by: Jan Stancek <jstancek@redhat.com>
---
 fs/smb/client/inode.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/fs/smb/client/inode.c b/fs/smb/client/inode.c
index 0d149b315a832..f146e06c97eb6 100644
--- a/fs/smb/client/inode.c
+++ b/fs/smb/client/inode.c
@@ -1403,7 +1403,7 @@ int cifs_get_inode_info(struct inode **inode,
 	struct cifs_fattr fattr = {};
 	int rc;
 
-	if (!data && is_inode_cache_good(*inode)) {
+	if (is_inode_cache_good(*inode)) {
 		cifs_dbg(FYI, "No need to revalidate cached inode sizes\n");
 		return 0;
 	}
@@ -1502,7 +1502,7 @@ int smb311_posix_get_inode_info(struct inode **inode,
 	struct cifs_fattr fattr = {};
 	int rc;
 
-	if (!data && is_inode_cache_good(*inode)) {
+	if (is_inode_cache_good(*inode)) {
 		cifs_dbg(FYI, "No need to revalidate cached inode sizes\n");
 		return 0;
 	}
-- 
GitLab