block: rename CONFIG_LBD to CONFIG_LBDAF

Follow-up to "block: enable by default support for large devices
and files on 32-bit archs".

Rename CONFIG_LBD to CONFIG_LBDAF to:
- allow update of existing [def]configs for "default y" change
- reflect that it is used also for large files support nowadays

Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
This commit is contained in:
Bartlomiej Zolnierkiewicz 2009-06-19 08:08:50 +02:00 committed by Jens Axboe
parent 3a02c8e814
commit 90c699a9ee
14 changed files with 19 additions and 19 deletions

View file

@ -54,7 +54,7 @@ kernel patches.
CONFIG_PREEMPT. CONFIG_PREEMPT.
14: If the patch affects IO/Disk, etc: has been tested with and without 14: If the patch affects IO/Disk, etc: has been tested with and without
CONFIG_LBD. CONFIG_LBDAF.
15: All codepaths have been exercised with all lockdep features enabled. 15: All codepaths have been exercised with all lockdep features enabled.

View file

@ -75,7 +75,7 @@ Linux カーネルパッチ投稿者向けチェックリスト
ビルドした上、動作確認を行ってください。 ビルドした上、動作確認を行ってください。
14: もしパッチがディスクのI/O性能などに影響を与えるようであれば、 14: もしパッチがディスクのI/O性能などに影響を与えるようであれば、
'CONFIG_LBD'オプションを有効にした場合と無効にした場合の両方で 'CONFIG_LBDAF'オプションを有効にした場合と無効にした場合の両方で
テストを実施してみてください。 テストを実施してみてください。
15: lockdepの機能を全て有効にした上で、全てのコードパスを評価してください。 15: lockdepの機能を全て有効にした上で、全てのコードパスを評価してください。

View file

@ -23,8 +23,8 @@ menuconfig BLOCK
if BLOCK if BLOCK
config LBD config LBDAF
bool "Support for large block devices and files" bool "Support for large (2TB+) block devices and files"
depends on !64BIT depends on !64BIT
default y default y
help help

View file

@ -111,7 +111,7 @@ struct dm_exception_store {
/* /*
* Funtions to manipulate consecutive chunks * Funtions to manipulate consecutive chunks
*/ */
# if defined(CONFIG_LBD) || (BITS_PER_LONG == 64) # if defined(CONFIG_LBDAF) || (BITS_PER_LONG == 64)
# define DM_CHUNK_CONSECUTIVE_BITS 8 # define DM_CHUNK_CONSECUTIVE_BITS 8
# define DM_CHUNK_NUMBER_BITS 56 # define DM_CHUNK_NUMBER_BITS 56

View file

@ -990,7 +990,7 @@ int ext3_group_extend(struct super_block *sb, struct ext3_super_block *es,
sb->s_id, n_blocks_count); sb->s_id, n_blocks_count);
if (sizeof(sector_t) < 8) if (sizeof(sector_t) < 8)
ext3_warning(sb, __func__, ext3_warning(sb, __func__,
"CONFIG_LBD not enabled\n"); "CONFIG_LBDAF not enabled\n");
return -EINVAL; return -EINVAL;
} }

View file

@ -1812,7 +1812,7 @@ static int ext3_fill_super (struct super_block *sb, void *data, int silent)
printk(KERN_ERR "EXT3-fs: filesystem on %s:" printk(KERN_ERR "EXT3-fs: filesystem on %s:"
" too large to mount safely\n", sb->s_id); " too large to mount safely\n", sb->s_id);
if (sizeof(sector_t) < 8) if (sizeof(sector_t) < 8)
printk(KERN_WARNING "EXT3-fs: CONFIG_LBD not " printk(KERN_WARNING "EXT3-fs: CONFIG_LBDAF not "
"enabled\n"); "enabled\n");
goto failed_mount; goto failed_mount;
} }

View file

@ -1002,7 +1002,7 @@ int ext4_group_extend(struct super_block *sb, struct ext4_super_block *es,
" too large to resize to %llu blocks safely\n", " too large to resize to %llu blocks safely\n",
sb->s_id, n_blocks_count); sb->s_id, n_blocks_count);
if (sizeof(sector_t) < 8) if (sizeof(sector_t) < 8)
ext4_warning(sb, __func__, "CONFIG_LBD not enabled"); ext4_warning(sb, __func__, "CONFIG_LBDAF not enabled");
return -EINVAL; return -EINVAL;
} }

View file

@ -1957,7 +1957,7 @@ static loff_t ext4_max_size(int blkbits, int has_huge_files)
/* small i_blocks in vfs inode? */ /* small i_blocks in vfs inode? */
if (!has_huge_files || sizeof(blkcnt_t) < sizeof(u64)) { if (!has_huge_files || sizeof(blkcnt_t) < sizeof(u64)) {
/* /*
* CONFIG_LBD is not enabled implies the inode * CONFIG_LBDAF is not enabled implies the inode
* i_block represent total blocks in 512 bytes * i_block represent total blocks in 512 bytes
* 32 == size of vfs inode i_blocks * 8 * 32 == size of vfs inode i_blocks * 8
*/ */
@ -2000,7 +2000,7 @@ static loff_t ext4_max_bitmap_size(int bits, int has_huge_files)
if (!has_huge_files || sizeof(blkcnt_t) < sizeof(u64)) { if (!has_huge_files || sizeof(blkcnt_t) < sizeof(u64)) {
/* /*
* !has_huge_files or CONFIG_LBD not enabled implies that * !has_huge_files or CONFIG_LBDAF not enabled implies that
* the inode i_block field represents total file blocks in * the inode i_block field represents total file blocks in
* 2^32 512-byte sectors == size of vfs inode i_blocks * 8 * 2^32 512-byte sectors == size of vfs inode i_blocks * 8
*/ */
@ -2436,13 +2436,13 @@ static int ext4_fill_super(struct super_block *sb, void *data, int silent)
if (has_huge_files) { if (has_huge_files) {
/* /*
* Large file size enabled file system can only be * Large file size enabled file system can only be
* mount if kernel is build with CONFIG_LBD * mount if kernel is build with CONFIG_LBDAF
*/ */
if (sizeof(root->i_blocks) < sizeof(u64) && if (sizeof(root->i_blocks) < sizeof(u64) &&
!(sb->s_flags & MS_RDONLY)) { !(sb->s_flags & MS_RDONLY)) {
ext4_msg(sb, KERN_ERR, "Filesystem with huge " ext4_msg(sb, KERN_ERR, "Filesystem with huge "
"files cannot be mounted read-write " "files cannot be mounted read-write "
"without CONFIG_LBD"); "without CONFIG_LBDAF");
goto failed_mount; goto failed_mount;
} }
} }
@ -2566,7 +2566,7 @@ static int ext4_fill_super(struct super_block *sb, void *data, int silent)
ext4_msg(sb, KERN_ERR, "filesystem" ext4_msg(sb, KERN_ERR, "filesystem"
" too large to mount safely"); " too large to mount safely");
if (sizeof(sector_t) < 8) if (sizeof(sector_t) < 8)
ext4_msg(sb, KERN_WARNING, "CONFIG_LBD not enabled"); ext4_msg(sb, KERN_WARNING, "CONFIG_LBDAF not enabled");
goto failed_mount; goto failed_mount;
} }

View file

@ -1,6 +1,6 @@
config GFS2_FS config GFS2_FS
tristate "GFS2 file system support" tristate "GFS2 file system support"
depends on EXPERIMENTAL && (64BIT || LBD) depends on EXPERIMENTAL && (64BIT || LBDAF)
select DLM if GFS2_FS_LOCKING_DLM select DLM if GFS2_FS_LOCKING_DLM
select CONFIGFS_FS if GFS2_FS_LOCKING_DLM select CONFIGFS_FS if GFS2_FS_LOCKING_DLM
select SYSFS if GFS2_FS_LOCKING_DLM select SYSFS if GFS2_FS_LOCKING_DLM

View file

@ -552,7 +552,7 @@ static unsigned long long ocfs2_max_file_offset(unsigned int bbits,
*/ */
#if BITS_PER_LONG == 32 #if BITS_PER_LONG == 32
# if defined(CONFIG_LBD) # if defined(CONFIG_LBDAF)
BUILD_BUG_ON(sizeof(sector_t) != 8); BUILD_BUG_ON(sizeof(sector_t) != 8);
/* /*
* We might be limited by page cache size. * We might be limited by page cache size.

View file

@ -24,7 +24,7 @@
* XFS_BIG_BLKNOS needs block layer disk addresses to be 64 bits. * XFS_BIG_BLKNOS needs block layer disk addresses to be 64 bits.
* XFS_BIG_INUMS requires XFS_BIG_BLKNOS to be set. * XFS_BIG_INUMS requires XFS_BIG_BLKNOS to be set.
*/ */
#if defined(CONFIG_LBD) || (BITS_PER_LONG == 64) #if defined(CONFIG_LBDAF) || (BITS_PER_LONG == 64)
# define XFS_BIG_BLKNOS 1 # define XFS_BIG_BLKNOS 1
# define XFS_BIG_INUMS 1 # define XFS_BIG_INUMS 1
#else #else

View file

@ -616,7 +616,7 @@ xfs_max_file_offset(
*/ */
#if BITS_PER_LONG == 32 #if BITS_PER_LONG == 32
# if defined(CONFIG_LBD) # if defined(CONFIG_LBDAF)
ASSERT(sizeof(sector_t) == 8); ASSERT(sizeof(sector_t) == 8);
pagefactor = PAGE_CACHE_SIZE; pagefactor = PAGE_CACHE_SIZE;
bitshift = BITS_PER_LONG; bitshift = BITS_PER_LONG;

View file

@ -58,7 +58,7 @@ extern const char linux_proc_banner[];
#define _RET_IP_ (unsigned long)__builtin_return_address(0) #define _RET_IP_ (unsigned long)__builtin_return_address(0)
#define _THIS_IP_ ({ __label__ __here; __here: (unsigned long)&&__here; }) #define _THIS_IP_ ({ __label__ __here; __here: (unsigned long)&&__here; })
#ifdef CONFIG_LBD #ifdef CONFIG_LBDAF
# include <asm/div64.h> # include <asm/div64.h>
# define sector_div(a, b) do_div(a, b) # define sector_div(a, b) do_div(a, b)
#else #else

View file

@ -131,7 +131,7 @@ typedef __s64 int64_t;
* *
* blkcnt_t is the type of the inode's block count. * blkcnt_t is the type of the inode's block count.
*/ */
#ifdef CONFIG_LBD #ifdef CONFIG_LBDAF
typedef u64 sector_t; typedef u64 sector_t;
typedef u64 blkcnt_t; typedef u64 blkcnt_t;
#else #else