mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 03:01:39 -04:00
Merge branch 'akpm'
* akpm: kernel/smp.c: consolidate writes in smp_call_function_interrupt() kernel/smp.c: fix smp_call_function_many() SMP race memcg: correctly order reading PCG_USED and pc->mem_cgroup backlight: fix 88pm860x_bl macro collision drivers/leds/ledtrig-gpio.c: make output match input, tighten input checking MAINTAINERS: update Atmel AT91 entry mm: fix truncate_setsize() comment memcg: fix rmdir, force_empty with THP memcg: fix LRU accounting with THP memcg: fix USED bit handling at uncharge in THP memcg: modify accounting function for supporting THP better fs/direct-io.c: don't try to allocate more than BIO_MAX_PAGES in a bio mm: compaction: prevent division-by-zero during user-requested compaction mm/vmscan.c: remove duplicate include of compaction.h memblock: fix memblock_is_region_memory() thp: keep highpte mapped until it is no longer needed kconfig: rename CONFIG_EMBEDDED to CONFIG_EXPERT
This commit is contained in:
commit
8d99641f6c
310 changed files with 642 additions and 535 deletions
|
|
@ -50,7 +50,7 @@ config EXPORTFS
|
|||
tristate
|
||||
|
||||
config FILE_LOCKING
|
||||
bool "Enable POSIX file locking API" if EMBEDDED
|
||||
bool "Enable POSIX file locking API" if EXPERT
|
||||
default y
|
||||
help
|
||||
This option enables standard file locking support, required
|
||||
|
|
|
|||
|
|
@ -325,12 +325,16 @@ void dio_end_io(struct bio *bio, int error)
|
|||
}
|
||||
EXPORT_SYMBOL_GPL(dio_end_io);
|
||||
|
||||
static int
|
||||
static void
|
||||
dio_bio_alloc(struct dio *dio, struct block_device *bdev,
|
||||
sector_t first_sector, int nr_vecs)
|
||||
{
|
||||
struct bio *bio;
|
||||
|
||||
/*
|
||||
* bio_alloc() is guaranteed to return a bio when called with
|
||||
* __GFP_WAIT and we request a valid number of vectors.
|
||||
*/
|
||||
bio = bio_alloc(GFP_KERNEL, nr_vecs);
|
||||
|
||||
bio->bi_bdev = bdev;
|
||||
|
|
@ -342,7 +346,6 @@ dio_bio_alloc(struct dio *dio, struct block_device *bdev,
|
|||
|
||||
dio->bio = bio;
|
||||
dio->logical_offset_in_bio = dio->cur_page_fs_offset;
|
||||
return 0;
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
@ -583,8 +586,9 @@ static int dio_new_bio(struct dio *dio, sector_t start_sector)
|
|||
goto out;
|
||||
sector = start_sector << (dio->blkbits - 9);
|
||||
nr_pages = min(dio->pages_in_io, bio_get_nr_vecs(dio->map_bh.b_bdev));
|
||||
nr_pages = min(nr_pages, BIO_MAX_PAGES);
|
||||
BUG_ON(nr_pages <= 0);
|
||||
ret = dio_bio_alloc(dio, dio->map_bh.b_bdev, sector, nr_pages);
|
||||
dio_bio_alloc(dio, dio->map_bh.b_bdev, sector, nr_pages);
|
||||
dio->boundary = 0;
|
||||
out:
|
||||
return ret;
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
config PROC_FS
|
||||
bool "/proc file system support" if EMBEDDED
|
||||
bool "/proc file system support" if EXPERT
|
||||
default y
|
||||
help
|
||||
This is a virtual file system providing information about the status
|
||||
|
|
@ -40,7 +40,7 @@ config PROC_VMCORE
|
|||
Exports the dump image of crashed kernel in ELF format.
|
||||
|
||||
config PROC_SYSCTL
|
||||
bool "Sysctl support (/proc/sys)" if EMBEDDED
|
||||
bool "Sysctl support (/proc/sys)" if EXPERT
|
||||
depends on PROC_FS
|
||||
select SYSCTL
|
||||
default y
|
||||
|
|
@ -61,7 +61,7 @@ config PROC_SYSCTL
|
|||
config PROC_PAGE_MONITOR
|
||||
default y
|
||||
depends on PROC_FS && MMU
|
||||
bool "Enable /proc page monitoring" if EMBEDDED
|
||||
bool "Enable /proc page monitoring" if EXPERT
|
||||
help
|
||||
Various /proc files exist to monitor process memory utilization:
|
||||
/proc/pid/smaps, /proc/pid/clear_refs, /proc/pid/pagemap,
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
config SYSFS
|
||||
bool "sysfs file system support" if EMBEDDED
|
||||
bool "sysfs file system support" if EXPERT
|
||||
default y
|
||||
help
|
||||
The sysfs filesystem is a virtual filesystem that the kernel uses to
|
||||
|
|
|
|||
Loading…
Reference in a new issue