Skip to content

Commit fbd6035

Browse files
committed
Merge: bdev: use bdev_io_min() for statx block size
MR: https://gitlab.com/redhat/centos-stream/src/kernel/centos-stream-9/-/merge_requests/6768 JIRA: https://issues.redhat.com/browse/RHEL-88002 Signed-off-by: Ming Lei <ming.lei@redhat.com> Approved-by: Ewan D. Milne <emilne@redhat.com> Approved-by: Jeff Moyer <jmoyer@redhat.com> Approved-by: CKI KWF Bot <cki-ci-bot+kwf-gitlab-com@redhat.com> Merged-by: Augusto Caringi <acaringi@redhat.com>
2 parents c56fe33 + 13ac625 commit fbd6035

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

block/bdev.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1246,9 +1246,6 @@ void bdev_statx(struct inode *backing_inode, struct kstat *stat,
12461246
{
12471247
struct block_device *bdev;
12481248

1249-
if (!(request_mask & (STATX_DIOALIGN | STATX_WRITE_ATOMIC)))
1250-
return;
1251-
12521249
/*
12531250
* Note that backing_inode is the inode of a block device node file,
12541251
* not the block device's internal inode. Therefore it is *not* valid
@@ -1273,6 +1270,8 @@ void bdev_statx(struct inode *backing_inode, struct kstat *stat,
12731270
queue_atomic_write_unit_max_bytes(bd_queue));
12741271
}
12751272

1273+
stat->blksize = bdev_io_min(bdev);
1274+
12761275
blkdev_put_no_open(bdev);
12771276
}
12781277

0 commit comments

Comments
 (0)