projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1f80e4d
)
Btrfs: Fix compile warning around num_online_cpus() in a min statement
author
Chris Mason
<chris.mason@oracle.com>
Fri, 19 Dec 2008 20:43:22 +0000
(15:43 -0500)
committer
Chris Mason
<chris.mason@oracle.com>
Fri, 19 Dec 2008 20:43:22 +0000
(15:43 -0500)
Signed-off-by: Chris Mason <chris.mason@oracle.com>
fs/btrfs/disk-io.c
patch
|
blob
|
blame
|
history
diff --git
a/fs/btrfs/disk-io.c
b/fs/btrfs/disk-io.c
index 04f8d7080b17c61f6043f4e525770d479b7056b0..40a540f311619f28b8cdd448ab5ed78dec8a3b44 100644
(file)
--- a/
fs/btrfs/disk-io.c
+++ b/
fs/btrfs/disk-io.c
@@
-1528,7
+1528,8
@@
struct btrfs_root *open_ctree(struct super_block *sb,
fs_info->btree_inode->i_ino = 1;
fs_info->btree_inode->i_nlink = 1;
- fs_info->thread_pool_size = min(num_online_cpus() + 2, 8);
+ fs_info->thread_pool_size = min_t(unsigned long,
+ num_online_cpus() + 2, 8);
INIT_LIST_HEAD(&fs_info->ordered_extents);
spin_lock_init(&fs_info->ordered_extent_lock);