[2/3] ubifs: change type of ubifs_inode's compr_type to unsigend:16

Message ID 1488259008-12510-3-git-send-email-hyc.lee@gmail.com
State Deferred, archived
Delegated to: Richard Weinberger
Headers show

Commit Message

Hyunchul Lee Feb. 28, 2017, 5:16 a.m.
From: Hyunchul Lee <cheol.lee@lge.com>

if new compression is added, UBIFS_COMPR_TYPES_CNT becomes greater than 3.
so type "unsigned:2" of compr_type should be changed.

Signed-off-by: Hyunchul Lee <cheol.lee@lge.com>
---
 fs/ubifs/ubifs.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Patch

diff --git a/fs/ubifs/ubifs.h b/fs/ubifs/ubifs.h
index ca72382..2a1e857 100644
--- a/fs/ubifs/ubifs.h
+++ b/fs/ubifs/ubifs.h
@@ -394,7 +394,7 @@  struct ubifs_inode {
 	unsigned int dirty:1;
 	unsigned int xattr:1;
 	unsigned int bulk_read:1;
-	unsigned int compr_type:2;
+	unsigned int compr_type:16;
 	struct mutex ui_mutex;
 	spinlock_t ui_lock;
 	loff_t synced_i_size;