Skip to contentSkip to conversation

fs-hfsplus-wrapperc-replace-shift-loop-by-ilog2.patch removed from -mm tree

merged [email protected] 1 participant 1 message Jun 9, 2014 Hfsplus filesystem

lore
Share & tools
lore
#0 lore raw

Subject: [merged] fs-hfsplus-wrapperc-replace-shift-loop-by-ilog2.patch removed from -mm tree
To: [email protected],[email protected],[email protected],[email protected]
From: [email protected]
Date: Mon, 09 Jun 2014 12:32:17 -0700

The patch titled
Subject: fs/hfsplus/wrapper.c: replace shift loop by ilog2
has been removed from the -mm tree. Its filename was
fs-hfsplus-wrapperc-replace-shift-loop-by-ilog2.patch

This patch was dropped because it was merged into mainline or a subsystem tree

------------------------------------------------------
From: Fabian Frederick <[email protected]>
Subject: fs/hfsplus/wrapper.c: replace shift loop by ilog2

Replace while blocksize;shift by ilog2

---

 fs/hfsplus/wrapper.c |    4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)
fs/hfsplus/wrapper.c renamed from fs/hfsplus/wrapper.c~fs-hfsplus-wrapperc-replace-shift-loop-by-ilog2 +1 -3
diff -puN fs/hfsplus/wrapper.c~fs-hfsplus-wrapperc-replace-shift-loop-by-ilog2 fs/hfsplus/wrapper.c
@@ -231,9 +231,7 @@ reread:
 	if (blocksize < HFSPLUS_SECTOR_SIZE || ((blocksize - 1) & blocksize))
 		goto out_free_backup_vhdr;
 	sbi->alloc_blksz = blocksize;
-	sbi->alloc_blksz_shift = 0;
-	while ((blocksize >>= 1) != 0)
-		sbi->alloc_blksz_shift++;
+	sbi->alloc_blksz_shift = ilog2(blocksize);
 	blocksize = min_t(u32, sbi->alloc_blksz, PAGE_SIZE);
 
 	/*

_

Patches currently in -mm which might be from [email protected] are

origin.patch
fs-cifs-remove-obsolete-__constant.patch kernel-posix-timersc-code-clean-up.patch kernel-posix-timersc-code-clean-up-checkpatch-fixes.patch fs-ext4-fsyncc-generic_file_fsync-call-based-on-barrier-flag.patch fs-isofs-logging-clean-up.patch
linux-next.patch kernel-watchdogc-convert-printk-pr_warning-to-pr_foo.patch init-mainc-code-clean-up.patch kernel-kprobesc-convert-printk-to-pr_foo.patch