diff options
| author | Sascha Hauer <s.hauer@pengutronix.de> | 2011-08-08 10:22:41 +0400 | 
|---|---|---|
| committer | Sascha Hauer <s.hauer@pengutronix.de> | 2011-08-08 10:22:41 +0400 | 
| commit | 1a43f2012455a977397deffe35912fd3f3ce17b9 (patch) | |
| tree | 5189f337df44e7a495fbd097cd476b0380babd8c /fs/ubifs/commit.c | |
| parent | e1b96ada659431669efaf3defa997abf5db68130 (diff) | |
| parent | 322a8b034003c0d46d39af85bf24fee27b902f48 (diff) | |
| download | linux-1a43f2012455a977397deffe35912fd3f3ce17b9.tar.xz | |
Merge commit 'v3.1-rc1' into imx-fixes
Diffstat (limited to 'fs/ubifs/commit.c')
| -rw-r--r-- | fs/ubifs/commit.c | 8 | 
1 files changed, 4 insertions, 4 deletions
diff --git a/fs/ubifs/commit.c b/fs/ubifs/commit.c index 87cd0ead8633..fb3b5c813a30 100644 --- a/fs/ubifs/commit.c +++ b/fs/ubifs/commit.c @@ -78,7 +78,7 @@ static int nothing_to_commit(struct ubifs_info *c)  	 * If the root TNC node is dirty, we definitely have something to  	 * commit.  	 */ -	if (c->zroot.znode && test_bit(DIRTY_ZNODE, &c->zroot.znode->flags)) +	if (c->zroot.znode && ubifs_zn_dirty(c->zroot.znode))  		return 0;  	/* @@ -418,7 +418,7 @@ int ubifs_run_commit(struct ubifs_info *c)  	spin_lock(&c->cs_lock);  	if (c->cmt_state == COMMIT_BROKEN) { -		err = -EINVAL; +		err = -EROFS;  		goto out;  	} @@ -444,7 +444,7 @@ int ubifs_run_commit(struct ubifs_info *c)  	 * re-check it.  	 */  	if (c->cmt_state == COMMIT_BROKEN) { -		err = -EINVAL; +		err = -EROFS;  		goto out_cmt_unlock;  	} @@ -576,7 +576,7 @@ int dbg_check_old_index(struct ubifs_info *c, struct ubifs_zbranch *zroot)  	struct idx_node *i;  	size_t sz; -	if (!(ubifs_chk_flags & UBIFS_CHK_OLD_IDX)) +	if (!dbg_is_chk_index(c))  		return 0;  	INIT_LIST_HEAD(&list);  | 
