diff options
Diffstat (limited to 'fs/super.c')
-rw-r--r-- | fs/super.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/fs/super.c b/fs/super.c index 01d5c40e9119..1f8f05ede437 100644 --- a/fs/super.c +++ b/fs/super.c | |||
@@ -579,6 +579,9 @@ retry: | |||
579 | if (!(f->f_mode & FMODE_WRITE)) | 579 | if (!(f->f_mode & FMODE_WRITE)) |
580 | continue; | 580 | continue; |
581 | f->f_mode &= ~FMODE_WRITE; | 581 | f->f_mode &= ~FMODE_WRITE; |
582 | if (file_check_writeable(f) != 0) | ||
583 | continue; | ||
584 | file_release_write(f); | ||
582 | mnt = mntget(f->f_path.mnt); | 585 | mnt = mntget(f->f_path.mnt); |
583 | file_list_unlock(); | 586 | file_list_unlock(); |
584 | /* | 587 | /* |