]> err.no Git - linux-2.6/commit
reiserfs: use open_bdev_excl
authorChristoph Hellwig <hch@lst.de>
Wed, 30 Apr 2008 07:54:46 +0000 (00:54 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 30 Apr 2008 15:29:51 +0000 (08:29 -0700)
commit86098fa0115358abf5159093d11ddb306ce4b0da
tree7a927fb77339a594608baf0ed2507085056bd262
parent4dbf930ed6c1f8aa992937d0461f8f70d4004aad
reiserfs: use open_bdev_excl

Use the proper helper to open a blockdevice by name for filesystem use,
this makes sure it's properly claimed (also added for open-by-number) and
gets rid of the struct file abuse.

Tested by mounting a reiserfs filesystem with external journal.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Cc: Chris Mason <chris.mason@oracle.com>
Cc: Jeff Mahoney <jeffm@suse.com>
Acked-by: Edward Shishkin <edward.shishkin@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
fs/reiserfs/journal.c
include/linux/reiserfs_fs_sb.h