summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@ppc970.osdl.org>2004-08-23 03:57:08 -0700
committerLinus Torvalds <torvalds@ppc970.osdl.org>2004-08-23 03:57:08 -0700
commitdb47111ec41cc6d63a2c8d56140f6322dd173c43 (patch)
treea876575ee767e5bdb3fff7067131e1126c6cc14f /include
parent9f2390ee62f5c6a4caf1ea25eee3cc5c6bf47ab2 (diff)
sparse: don't use signed single-bit bitfields.
K&R used to make bitfields unsigned. That hasn't been true for a long long time..
Diffstat (limited to 'include')
-rw-r--r--include/linux/reiserfs_fs.h6
-rw-r--r--include/linux/reiserfs_fs_i.h2
2 files changed, 4 insertions, 4 deletions
diff --git a/include/linux/reiserfs_fs.h b/include/linux/reiserfs_fs.h
index 711e9b360ecf..a538e5487c95 100644
--- a/include/linux/reiserfs_fs.h
+++ b/include/linux/reiserfs_fs.h
@@ -1734,7 +1734,7 @@ struct reiserfs_transaction_handle {
int t_blocks_allocated ; /* number of blocks this writer allocated */
unsigned long t_trans_id ; /* sanity check, equals the current trans id */
void *t_handle_save ; /* save existing current->journal_info */
- int displace_new_blocks:1; /* if new block allocation occurres, that block
+ unsigned displace_new_blocks:1; /* if new block allocation occurres, that block
should be displaced from others */
} ;
@@ -2154,9 +2154,9 @@ struct buffer_head * get_FEB (struct tree_balance *);
int prealloc_size; /* is set in determine_prealloc_size() function, used by underlayed
* function that do actual allocation */
- int formatted_node:1; /* the allocator uses different polices for getting disk space for
+ unsigned formatted_node:1; /* the allocator uses different polices for getting disk space for
* formatted/unformatted blocks with/without preallocation */
- int preallocate:1;
+ unsigned preallocate:1;
};
typedef struct __reiserfs_blocknr_hint reiserfs_blocknr_hint_t;
diff --git a/include/linux/reiserfs_fs_i.h b/include/linux/reiserfs_fs_i.h
index adc71cd0b6cb..e08142a75f03 100644
--- a/include/linux/reiserfs_fs_i.h
+++ b/include/linux/reiserfs_fs_i.h
@@ -45,7 +45,7 @@ struct reiserfs_inode_info {
struct list_head i_prealloc_list; /* per-transaction list of inodes which
* have preallocated blocks */
- int new_packing_locality:1; /* new_packig_locality is created; new blocks
+ unsigned new_packing_locality:1; /* new_packig_locality is created; new blocks
* for the contents of this directory should be
* displaced */