Skip to content

Commit 2b80f76

Browse files
author
CKI KWF Bot
committed
Merge: smb: client: fix chmod(2) regression with ATTR_READONLY [rhel-9.6.z]
MR: https://gitlab.com/redhat/rhel/src/kernel/rhel-9/-/merge_requests/3475 JIRA: https://issues.redhat.com/browse/RHEL-80527 - smb: client: fix chmod(2) regression with ATTR_READONLY (Paulo Alcantara) [[RHEL-80527](https://issues.redhat.com/browse/RHEL-80527) [RHEL-78507](https://issues.redhat.com/browse/RHEL-78507)] Y-Commit: c7cbda5 Signed-off-by: Jay Shin <[email protected]> Approved-by: Marc Milgram <[email protected]> Approved-by: Paulo Alcantara <[email protected]> Approved-by: CKI KWF Bot <[email protected]> Merged-by: CKI KWF Bot <[email protected]>
2 parents 6093605 + 4bf5516 commit 2b80f76

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
@@ -1389,7 +1389,7 @@ int cifs_get_inode_info(struct inode **inode,
13891389
struct cifs_fattr fattr = {};
13901390
int rc;
13911391

1392-
if (is_inode_cache_good(*inode)) {
1392+
if (!data && is_inode_cache_good(*inode)) {
13931393
cifs_dbg(FYI, "No need to revalidate cached inode sizes\n");
13941394
return 0;
13951395
}
@@ -1488,7 +1488,7 @@ int smb311_posix_get_inode_info(struct inode **inode,
14881488
struct cifs_fattr fattr = {};
14891489
int rc;
14901490

1491-
if (is_inode_cache_good(*inode)) {
1491+
if (!data && is_inode_cache_good(*inode)) {
14921492
cifs_dbg(FYI, "No need to revalidate cached inode sizes\n");
14931493
return 0;
14941494
}

0 commit comments

Comments
 (0)