|
@@ -192,7 +192,7 @@ static int nilfs_writepage(struct page *page, struct writeback_control *wbc)
|
|
struct inode *inode = page->mapping->host;
|
|
struct inode *inode = page->mapping->host;
|
|
int err;
|
|
int err;
|
|
|
|
|
|
- if (inode && (inode->i_sb->s_flags & MS_RDONLY)) {
|
|
|
|
|
|
+ if (inode->i_sb->s_flags & MS_RDONLY) {
|
|
/*
|
|
/*
|
|
* It means that filesystem was remounted in read-only
|
|
* It means that filesystem was remounted in read-only
|
|
* mode because of error or metadata corruption. But we
|
|
* mode because of error or metadata corruption. But we
|