Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 281457
b: refs/heads/master
c: 33c104d
h: refs/heads/master
i:
  281455: 67a2fac
v: v3
  • Loading branch information
Jan Kara committed Jan 9, 2012
1 parent 1e498c6 commit 427b3c1
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 0048278552e9752fd578c3d8deee756987c10873
refs/heads/master: 33c104d415e92a51aaf638dc3d93920cfa601e5c
24 changes: 21 additions & 3 deletions trunk/fs/ext3/inode.c
Original file line number Diff line number Diff line change
Expand Up @@ -1623,7 +1623,13 @@ static int ext3_ordered_writepage(struct page *page,
int err;

J_ASSERT(PageLocked(page));
WARN_ON_ONCE(IS_RDONLY(inode));
/*
* We don't want to warn for emergency remount. The condition is
* ordered to avoid dereferencing inode->i_sb in non-error case to
* avoid slow-downs.
*/
WARN_ON_ONCE(IS_RDONLY(inode) &&
!(EXT3_SB(inode->i_sb)->s_mount_state & EXT3_ERROR_FS));

/*
* We give up here if we're reentered, because it might be for a
Expand Down Expand Up @@ -1698,7 +1704,13 @@ static int ext3_writeback_writepage(struct page *page,
int err;

J_ASSERT(PageLocked(page));
WARN_ON_ONCE(IS_RDONLY(inode));
/*
* We don't want to warn for emergency remount. The condition is
* ordered to avoid dereferencing inode->i_sb in non-error case to
* avoid slow-downs.
*/
WARN_ON_ONCE(IS_RDONLY(inode) &&
!(EXT3_SB(inode->i_sb)->s_mount_state & EXT3_ERROR_FS));

if (ext3_journal_current_handle())
goto out_fail;
Expand Down Expand Up @@ -1741,7 +1753,13 @@ static int ext3_journalled_writepage(struct page *page,
int err;

J_ASSERT(PageLocked(page));
WARN_ON_ONCE(IS_RDONLY(inode));
/*
* We don't want to warn for emergency remount. The condition is
* ordered to avoid dereferencing inode->i_sb in non-error case to
* avoid slow-downs.
*/
WARN_ON_ONCE(IS_RDONLY(inode) &&
!(EXT3_SB(inode->i_sb)->s_mount_state & EXT3_ERROR_FS));

if (ext3_journal_current_handle())
goto no_write;
Expand Down

0 comments on commit 427b3c1

Please sign in to comment.