File tree Expand file tree Collapse file tree 1 file changed +4
-7
lines changed Expand file tree Collapse file tree 1 file changed +4
-7
lines changed Original file line number Diff line number Diff line change @@ -1313,18 +1313,15 @@ void sync_bdevs(bool wait)
1313
1313
void bdev_statx (struct path * path , struct kstat * stat ,
1314
1314
u32 request_mask )
1315
1315
{
1316
- struct inode * backing_inode ;
1317
1316
struct block_device * bdev ;
1318
1317
1319
- backing_inode = d_backing_inode (path -> dentry );
1320
-
1321
1318
/*
1322
- * Note that backing_inode is the inode of a block device node file,
1323
- * not the block device's internal inode. Therefore it is *not* valid
1324
- * to use I_BDEV() here; the block device has to be looked up by i_rdev
1319
+ * Note that d_backing_inode() returns the block device node inode, not
1320
+ * the block device's internal inode. Therefore it is *not* valid to
1321
+ * use I_BDEV() here; the block device has to be looked up by i_rdev
1325
1322
* instead.
1326
1323
*/
1327
- bdev = blkdev_get_no_open (backing_inode -> i_rdev );
1324
+ bdev = blkdev_get_no_open (d_backing_inode ( path -> dentry ) -> i_rdev );
1328
1325
if (!bdev )
1329
1326
return ;
1330
1327
You can’t perform that action at this time.
0 commit comments