aboutsummaryrefslogtreecommitdiffstats
path: root/fs/ubifs/ubifs.h
diff options
context:
space:
mode:
authorArtem Bityutskiy <Artem.Bityutskiy@nokia.com>2008-07-24 07:52:45 -0400
committerArtem Bityutskiy <Artem.Bityutskiy@nokia.com>2008-08-13 04:35:16 -0400
commitdab4b4d2f915a65022343012a795f4ae4ae7e83c (patch)
tree13a1ec2c5f6b18781145bccddf2fb63017a1336b /fs/ubifs/ubifs.h
parent547000da6412c45456ff2ff44a171d01027bd727 (diff)
UBIFS: align inode data to eight
UBIFS aligns node lengths to 8, so budgeting has to do the same. Well, direntry, inode, and page budgets are already aligned, but not inode data budget (e.g., data in special devices or symlinks). Do this for inode data as well. Also, add corresponding debugging checks. Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
Diffstat (limited to 'fs/ubifs/ubifs.h')
-rw-r--r--fs/ubifs/ubifs.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/fs/ubifs/ubifs.h b/fs/ubifs/ubifs.h
index 565dca2ec0bd..73ca8a009798 100644
--- a/fs/ubifs/ubifs.h
+++ b/fs/ubifs/ubifs.h
@@ -808,6 +808,10 @@ struct ubifs_compressor {
808 * An inode may contain 4KiB of data at max., thus the widths of @new_ino_d 808 * An inode may contain 4KiB of data at max., thus the widths of @new_ino_d
809 * is 13 bits, and @dirtied_ino_d - 15, because up to 4 inodes may be made 809 * is 13 bits, and @dirtied_ino_d - 15, because up to 4 inodes may be made
810 * dirty by the re-name operation. 810 * dirty by the re-name operation.
811 *
812 * Note, UBIFS aligns node lengths to 8-bytes boundary, so the requester has to
813 * make sure the amount of inode data which contribute to @new_ino_d and
814 * @dirtied_ino_d fields are aligned.
811 */ 815 */
812struct ubifs_budget_req { 816struct ubifs_budget_req {
813 unsigned int fast:1; 817 unsigned int fast:1;