android_kernel_xiaomi_sm8350/fs/partitions
Tejun Heo c3e33e043f block,ide: simplify bdops->set_capacity() to ->unlock_native_capacity()
bdops->set_capacity() is unnecessarily generic.  All that's required
is a simple one way notification to lower level driver telling it to
try to unlock native capacity.  There's no reason to pass in target
capacity or return the new capacity.  The former is always the
inherent native capacity and the latter can be handled via the usual
device resize / revalidation path.  In fact, the current API is always
used that way.

Replace ->set_capacity() with ->unlock_native_capacity() which take
only @disk and doesn't return anything.  IDE which is the only current
user of the API is converted accordingly.

Signed-off-by: Tejun Heo <tj@kernel.org>
Cc: Ben Hutchings <ben@decadent.org.uk>
Cc: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Acked-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
2010-05-21 20:01:02 +02:00
..
acorn.c
acorn.h
amiga.c
amiga.h
atari.c
atari.h
check.c block,ide: simplify bdops->set_capacity() to ->unlock_native_capacity() 2010-05-21 20:01:02 +02:00
check.h
efi.c include cleanup: Update gfp.h and slab.h includes to prepare for breaking implicit slab.h inclusion from percpu.h 2010-03-30 22:02:32 +09:00
efi.h partitions: read whole sector with EFI GPT header 2009-11-23 09:29:58 +01:00
ibm.c
ibm.h
karma.c
karma.h
Kconfig
ldm.c
ldm.h
mac.c
mac.h
Makefile
msdos.c fs/partition/msdos: fix unusable extended partition for > 512B sector 2010-03-24 16:31:22 -07:00
msdos.h
osf.c
osf.h
sgi.c
sgi.h
sun.c
sun.h
sysv68.c
sysv68.h
ultrix.c
ultrix.h