summaryrefslogtreecommitdiff
path: root/block/bdev.c
diff options
context:
space:
mode:
Diffstat (limited to 'block/bdev.c')
-rw-r--r--block/bdev.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/block/bdev.c b/block/bdev.c
index 1b4af2cc3b1e..c5507b6f63b8 100644
--- a/block/bdev.c
+++ b/block/bdev.c
@@ -1262,14 +1262,17 @@ void sync_bdevs(bool wait)
/*
* Handle STATX_{DIOALIGN, WRITE_ATOMIC} for block devices.
*/
-void bdev_statx(struct inode *backing_inode, struct kstat *stat,
+void bdev_statx(struct path *path, struct kstat *stat,
u32 request_mask)
{
+ struct inode *backing_inode;
struct block_device *bdev;
if (!(request_mask & (STATX_DIOALIGN | STATX_WRITE_ATOMIC)))
return;
+ backing_inode = d_backing_inode(path->dentry);
+
/*
* Note that backing_inode is the inode of a block device node file,
* not the block device's internal inode. Therefore it is *not* valid