Re: block_device_operations change since 2.6.27.X

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu 06-05-10 15:00:00, Ralf Hornik Mailings wrote:
> Ralf Hornik Mailings <ralf@xxxxxxxxxxxxxxxxx> wrote:
> 
> >I'm trying to port adics cvfs module to any newer kernel and had
> >to figure out that the prototype of "block_device_operations" has
> >become incompatible with code formerly used against kernel <=
> >2.6.27.46
> >
> >Unfortunately the documentation in filesystems/Locking does still
> >point to the old prototype.
> >Can somebody give me some hints how to use the new
> >block_device_operations defined in blkdev.h or send me some new
> >dokumentation?
> 
> Can noone tell me how to use the new object?
  It's a bit hard to tell without knowing more details about the problem
you have. I guess your problem is that originally the functions were passed
struct inode * and struct file * while now they are passed struct
block_device and fmode_t. That should be fairly easy to solve as most
drivers use just inode->i_bdev (now passed directly) and file->f_flags
(also passed directly in the new convention). You can have a look e.g. at
commit 0338e29178795f0df0e1f3705b5d3effe9c95ff7 where drivers/scsi/sd.c is
converted.

								Honza
-- 
Jan Kara <jack@xxxxxxx>
SUSE Labs, CR
--
To unsubscribe from this list: send the line "unsubscribe linux-fsdevel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Ext4 Filesystem]     [Union Filesystem]     [Filesystem Testing]     [Ceph Users]     [Ecryptfs]     [AutoFS]     [Kernel Newbies]     [Share Photos]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux Cachefs]     [Reiser Filesystem]     [Linux RAID]     [Samba]     [Device Mapper]     [CEPH Development]
  Powered by Linux