Skip to content

Commit 1ab0313

Browse files
committed
Merge: smb: client: fix chmod(2) regression with ATTR_READONLY
MR: https://gitlab.com/redhat/centos-stream/src/kernel/centos-stream-10/-/merge_requests/412 JIRA: https://issues.redhat.com/browse/RHEL-80534 Signed-off-by: Paulo Alcantara <paalcant@redhat.com> Approved-by: Scott Mayhew <smayhew@redhat.com> Approved-by: Jay Shin <jaeshin@redhat.com> Merged-by: Julio Faracco <jfaracco@redhat.com>
2 parents 1d7e48a + ff60765 commit 1ab0313

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 (is_inode_cache_good(*inode)) {
1406+
if (!data && 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 (is_inode_cache_good(*inode)) {
1505+
if (!data && 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)