diff options
| author | Pekka Enberg <penberg@kernel.org> | 2010-10-24 12:57:05 -0400 |
|---|---|---|
| committer | Pekka Enberg <penberg@kernel.org> | 2010-10-24 12:57:05 -0400 |
| commit | 6d4121f6c20a0e86231d52f535f1c82423b3326f (patch) | |
| tree | 5c235cac699ca86b504850aa663ddadde0455a61 /fs/ubifs/commit.c | |
| parent | 92a5bbc11ff2442a54b2f1d313088c245828ef4e (diff) | |
| parent | 35da7a307c535f9c2929cae277f3df425c9f9b1e (diff) | |
Merge branch 'master' into for-linus
Conflicts:
include/linux/percpu.h
mm/percpu.c
Diffstat (limited to 'fs/ubifs/commit.c')
| -rw-r--r-- | fs/ubifs/commit.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/fs/ubifs/commit.c b/fs/ubifs/commit.c index 37fa7ed062d..02429d81ca3 100644 --- a/fs/ubifs/commit.c +++ b/fs/ubifs/commit.c | |||
| @@ -63,7 +63,9 @@ static int do_commit(struct ubifs_info *c) | |||
| 63 | struct ubifs_lp_stats lst; | 63 | struct ubifs_lp_stats lst; |
| 64 | 64 | ||
| 65 | dbg_cmt("start"); | 65 | dbg_cmt("start"); |
| 66 | if (c->ro_media) { | 66 | ubifs_assert(!c->ro_media && !c->ro_mount); |
| 67 | |||
| 68 | if (c->ro_error) { | ||
| 67 | err = -EROFS; | 69 | err = -EROFS; |
| 68 | goto out_up; | 70 | goto out_up; |
| 69 | } | 71 | } |
