Skip to content

Commit acf35d7

Browse files
committed
cifs: print more detail when invalidate_inode_mapping fails
We had seen cases where cifs_invalidate_mapping was logging: "Could not invalidate inode ..." if invalidate_inode_pages2 fails but this message does not show what the rc is. Update the logged message to also log the return code. Suggested-by: Shyam Prasad N <[email protected]> Reviewed-by: Shyam Prasad N <[email protected]> Signed-off-by: Steve French <[email protected]>
1 parent 12c30f3 commit acf35d7

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
@@ -2344,8 +2344,8 @@ cifs_invalidate_mapping(struct inode *inode)
23442344
if (inode->i_mapping && inode->i_mapping->nrpages != 0) {
23452345
rc = invalidate_inode_pages2(inode->i_mapping);
23462346
if (rc)
2347-
cifs_dbg(VFS, "%s: Could not invalidate inode %p\n",
2348-
__func__, inode);
2347+
cifs_dbg(VFS, "%s: invalidate inode %p failed with rc %d\n",
2348+
__func__, inode, rc);
23492349
}
23502350

23512351
return rc;

0 commit comments

Comments
 (0)