mirror of
https://github.com/commaai/agnos-kernel-sdm845.git
synced 2026-06-08 03:15:12 +08:00
Revert "block: Expose IOCTL to get partition start sector number"
This reverts commit e959c1ce82.
Sector information is identified by other means so this change
is not needed.
Change-Id: Ib9cd450085b22468853b5a4955f8760d67af51b1
Signed-off-by: AnilKumar Chimata <anilc@codeaurora.org>
This commit is contained in:
@@ -564,8 +564,6 @@ int blkdev_ioctl(struct block_device *bdev, fmode_t mode, unsigned cmd,
|
||||
if ((size >> 9) > ~0UL)
|
||||
return -EFBIG;
|
||||
return put_ulong(arg, size >> 9);
|
||||
case BLKGETSTPART:
|
||||
return put_ulong(arg, bdev->bd_part->start_sect);
|
||||
case BLKGETSIZE64:
|
||||
return put_u64(arg, i_size_read(bdev->bd_inode));
|
||||
case BLKTRACESTART:
|
||||
|
||||
@@ -226,7 +226,6 @@ struct fsxattr {
|
||||
#define BLKSECDISCARD _IO(0x12,125)
|
||||
#define BLKROTATIONAL _IO(0x12,126)
|
||||
#define BLKZEROOUT _IO(0x12,127)
|
||||
#define BLKGETSTPART _IO(0x12, 128)
|
||||
|
||||
#define BMAP_IOCTL 1 /* obsolete - kept for compatibility */
|
||||
#define FIBMAP _IO(0x00,1) /* bmap access */
|
||||
|
||||
Reference in New Issue
Block a user