Mercurial > ecos
changeset 1239:b3be08d8eebb
* src/fs-ecos.c: Minor optimization of previous patch.
| author | asl |
|---|---|
| date | Tue, 23 Sep 2003 11:35:01 +0000 |
| parents | b3c09d540f56 |
| children | eeb14eae974b |
| files | packages/fs/jffs2/current/ChangeLog packages/fs/jffs2/current/src/fs-ecos.c |
| diffstat | 2 files changed, 7 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- a/packages/fs/jffs2/current/ChangeLog +++ b/packages/fs/jffs2/current/ChangeLog @@ -1,3 +1,7 @@ +2003-09-23 Andrew Lunn <andrew.lunn@ascom.ch> + + * src/fs-ecos.c: Minor optimization of previous patch. + 2003-09-21 Thomas Koeller <thomas.koeller@baslerweb.com> Andrew Lunn <andrew.lunn@ascom.ch>
--- a/packages/fs/jffs2/current/src/fs-ecos.c +++ b/packages/fs/jffs2/current/src/fs-ecos.c @@ -587,12 +587,9 @@ static int jffs2_umount(cyg_mtab_entry * // Only really umount if this is the only mount if (jffs2_sb->s_mount_count == 1) { - // Check for open/inuse root or any cached inodes -//if( root->i_count != 1 || root->i_cache_next != NULL) // root icount was set to 1 on mount if (root->i_cache_next != NULL) // root icount was set to 1 on mount return EBUSY; - jffs2_sb->s_mount_count--; dec_refcnt(root); // Time to free the root inode //Clear root inode @@ -609,8 +606,9 @@ static int jffs2_umount(cyg_mtab_entry * mte->fs->data = 0; // fstab entry, visible to all mounts. No current mount // That's all folks. D2(printf("jffs2_umount No current mounts\n")); - } else - jffs2_sb->s_mount_count--; + } + + jffs2_sb->s_mount_count--; return ENOERR; }
