Skip to content

Commit d67259e

Browse files
committed
Revert "smb: client: fix chmod(2) regression with ATTR_READONLY"
JIRA: INTERNAL Upstream Status: RHEL Only This reverts commit 3777501 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>
1 parent ec05584 commit d67259e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

fs/smb/client/inode.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1403,7 +1403,7 @@ int cifs_get_inode_info(struct inode **inode,
14031403
struct cifs_fattr fattr = {};
14041404
int rc;
14051405

1406-
if (!data && is_inode_cache_good(*inode)) {
1406+
if (is_inode_cache_good(*inode)) {
14071407
cifs_dbg(FYI, "No need to revalidate cached inode sizes\n");
14081408
return 0;
14091409
}
@@ -1502,7 +1502,7 @@ int smb311_posix_get_inode_info(struct inode **inode,
15021502
struct cifs_fattr fattr = {};
15031503
int rc;
15041504

1505-
if (!data && is_inode_cache_good(*inode)) {
1505+
if (is_inode_cache_good(*inode)) {
15061506
cifs_dbg(FYI, "No need to revalidate cached inode sizes\n");
15071507
return 0;
15081508
}

0 commit comments

Comments
 (0)