aboutsummaryrefslogtreecommitdiffstats
path: root/fs/ntfs/bitmap.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/ntfs/bitmap.c')
-rw-r--r--fs/ntfs/bitmap.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/fs/ntfs/bitmap.c b/fs/ntfs/bitmap.c
index 7a190cdc60e2..0809cf876098 100644
--- a/fs/ntfs/bitmap.c
+++ b/fs/ntfs/bitmap.c
@@ -34,18 +34,18 @@
34 * @start_bit: first bit to set 34 * @start_bit: first bit to set
35 * @count: number of bits to set 35 * @count: number of bits to set
36 * @value: value to set the bits to (i.e. 0 or 1) 36 * @value: value to set the bits to (i.e. 0 or 1)
37 * @is_rollback: if TRUE this is a rollback operation 37 * @is_rollback: if 'true' this is a rollback operation
38 * 38 *
39 * Set @count bits starting at bit @start_bit in the bitmap described by the 39 * Set @count bits starting at bit @start_bit in the bitmap described by the
40 * vfs inode @vi to @value, where @value is either 0 or 1. 40 * vfs inode @vi to @value, where @value is either 0 or 1.
41 * 41 *
42 * @is_rollback should always be FALSE, it is for internal use to rollback 42 * @is_rollback should always be 'false', it is for internal use to rollback
43 * errors. You probably want to use ntfs_bitmap_set_bits_in_run() instead. 43 * errors. You probably want to use ntfs_bitmap_set_bits_in_run() instead.
44 * 44 *
45 * Return 0 on success and -errno on error. 45 * Return 0 on success and -errno on error.
46 */ 46 */
47int __ntfs_bitmap_set_bits_in_run(struct inode *vi, const s64 start_bit, 47int __ntfs_bitmap_set_bits_in_run(struct inode *vi, const s64 start_bit,
48 const s64 count, const u8 value, const BOOL is_rollback) 48 const s64 count, const u8 value, const bool is_rollback)
49{ 49{
50 s64 cnt = count; 50 s64 cnt = count;
51 pgoff_t index, end_index; 51 pgoff_t index, end_index;
@@ -172,7 +172,7 @@ rollback:
172 return PTR_ERR(page); 172 return PTR_ERR(page);
173 if (count != cnt) 173 if (count != cnt)
174 pos = __ntfs_bitmap_set_bits_in_run(vi, start_bit, count - cnt, 174 pos = __ntfs_bitmap_set_bits_in_run(vi, start_bit, count - cnt,
175 value ? 0 : 1, TRUE); 175 value ? 0 : 1, true);
176 else 176 else
177 pos = 0; 177 pos = 0;
178 if (!pos) { 178 if (!pos) {