aboutsummaryrefslogtreecommitdiffstats
path: root/fs/ubifs/ubifs.h
diff options
context:
space:
mode:
authorArtem Bityutskiy <Artem.Bityutskiy@nokia.com>2008-07-21 10:14:29 -0400
committerArtem Bityutskiy <Artem.Bityutskiy@nokia.com>2008-08-13 04:27:47 -0400
commit014eb04b03202dc75c1c749df4246d98045f5e69 (patch)
tree99edd8f2907b478616bba8d44a308b6b750ead99 /fs/ubifs/ubifs.h
parentfd6c6b51e3677937090314b20b00f2194900d81b (diff)
UBIFS: increment commit number earlier
Increment the commit number at the beginnig of the commit, instead of doing this after the commit. This is needed for further optimizations. Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
Diffstat (limited to 'fs/ubifs/ubifs.h')
-rw-r--r--fs/ubifs/ubifs.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/fs/ubifs/ubifs.h b/fs/ubifs/ubifs.h
index 6ddd1de2ea64..21502b6040f0 100644
--- a/fs/ubifs/ubifs.h
+++ b/fs/ubifs/ubifs.h
@@ -865,7 +865,8 @@ struct ubifs_mount_opts {
865 * @highest_inum: highest used inode number 865 * @highest_inum: highest used inode number
866 * @vfs_gen: VFS inode generation counter 866 * @vfs_gen: VFS inode generation counter
867 * @max_sqnum: current global sequence number 867 * @max_sqnum: current global sequence number
868 * @cmt_no: commit number (last successfully completed commit) 868 * @cmt_no: commit number of the last successfully completed commit, protected
869 * by @commit_sem
869 * @cnt_lock: protects @highest_inum, @vfs_gen, and @max_sqnum counters 870 * @cnt_lock: protects @highest_inum, @vfs_gen, and @max_sqnum counters
870 * @fmt_version: UBIFS on-flash format version 871 * @fmt_version: UBIFS on-flash format version
871 * @uuid: UUID from super block 872 * @uuid: UUID from super block