|
@@ -364,7 +364,7 @@ static int ll_intent_file_open(struct file *file, void *lmm,
|
|
that case that lock is also ok */
|
|
that case that lock is also ok */
|
|
/* We can also get here if there was cached open handle in revalidate_it
|
|
/* We can also get here if there was cached open handle in revalidate_it
|
|
* but it disappeared while we were getting from there to ll_file_open.
|
|
* but it disappeared while we were getting from there to ll_file_open.
|
|
- * But this means this file was closed and immediatelly opened which
|
|
|
|
|
|
+ * But this means this file was closed and immediately opened which
|
|
* makes a good candidate for using OPEN lock */
|
|
* makes a good candidate for using OPEN lock */
|
|
/* If lmmsize & lmm are not 0, we are just setting stripe info
|
|
/* If lmmsize & lmm are not 0, we are just setting stripe info
|
|
* parameters. No need for the open lock */
|
|
* parameters. No need for the open lock */
|
|
@@ -2456,8 +2456,8 @@ static int ll_inode_revalidate_fini(struct inode *inode, int rc)
|
|
if (rc == -ENOENT) {
|
|
if (rc == -ENOENT) {
|
|
clear_nlink(inode);
|
|
clear_nlink(inode);
|
|
/* This path cannot be hit for regular files unless in
|
|
/* This path cannot be hit for regular files unless in
|
|
- * case of obscure races, so no need to to validate
|
|
|
|
- * size. */
|
|
|
|
|
|
+ * case of obscure races, so no need to validate size.
|
|
|
|
+ */
|
|
if (!S_ISREG(inode->i_mode) && !S_ISDIR(inode->i_mode))
|
|
if (!S_ISREG(inode->i_mode) && !S_ISDIR(inode->i_mode))
|
|
return 0;
|
|
return 0;
|
|
} else if (rc != 0) {
|
|
} else if (rc != 0) {
|