mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2025-01-25 23:09:41 +07:00
staging: lustre: remove ll_blkdev_put()
It was a wrapper around blkdev_put(), totally useless. Cc: Peng Tao <tao.peng@emc.com> Cc: Andreas Dilger <andreas.dilger@intel.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
49126e47bf
commit
418690b60f
@ -92,8 +92,6 @@ static inline void ll_set_fs_pwd(struct fs_struct *fs, struct vfsmount *mnt,
|
||||
# define ll_generic_permission(inode, mask, flags, check_acl) \
|
||||
generic_permission(inode, mask)
|
||||
|
||||
#define ll_blkdev_put(a, b) blkdev_put(a, b)
|
||||
|
||||
#define ll_dentry_open(a,b,c) dentry_open(a,b,c)
|
||||
|
||||
#define ll_vfs_symlink(dir, dentry, mnt, path, mode) \
|
||||
|
@ -617,7 +617,7 @@ static int lo_ioctl(struct block_device *bdev, fmode_t mode,
|
||||
case LL_IOC_LLOOP_DETACH: {
|
||||
err = loop_clr_fd(lo, bdev, 2);
|
||||
if (err == 0)
|
||||
ll_blkdev_put(bdev, 0); /* grabbed in LLOOP_ATTACH */
|
||||
blkdev_put(bdev, 0); /* grabbed in LLOOP_ATTACH */
|
||||
break;
|
||||
}
|
||||
|
||||
@ -712,7 +712,7 @@ static enum llioc_iter lloop_ioctl(struct inode *unused, struct file *file,
|
||||
err = loop_set_fd(lo, NULL, bdev, file);
|
||||
if (err) {
|
||||
fput(file);
|
||||
ll_blkdev_put(bdev, 0);
|
||||
blkdev_put(bdev, 0);
|
||||
}
|
||||
|
||||
break;
|
||||
@ -736,7 +736,7 @@ static enum llioc_iter lloop_ioctl(struct inode *unused, struct file *file,
|
||||
bdev = lo->lo_device;
|
||||
err = loop_clr_fd(lo, bdev, 1);
|
||||
if (err == 0)
|
||||
ll_blkdev_put(bdev, 0); /* grabbed in LLOOP_ATTACH */
|
||||
blkdev_put(bdev, 0); /* grabbed in LLOOP_ATTACH */
|
||||
|
||||
break;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user