Re: [PATCH 4/5] block: introduce file_bd_inode()

2015-10-22 Thread Dan Williams
On Thu, Oct 22, 2015 at 2:45 AM, Jan Kara wrote: > On Thu 22-10-15 02:42:05, Dan Williams wrote: >> Similar to the file_inode() helper, provide a helper to lookup the inode for >> a >> raw block device itself. > > So I somewhat dislike the name file_bd_inode() since for struct file > pointing to

Re: [PATCH 4/5] block: introduce file_bd_inode()

2015-10-22 Thread Jan Kara
On Thu 22-10-15 02:42:05, Dan Williams wrote: > Similar to the file_inode() helper, provide a helper to lookup the inode for a > raw block device itself. So I somewhat dislike the name file_bd_inode() since for struct file pointing to a regular file, the result would be equivalent to file_inode()

[PATCH 4/5] block: introduce file_bd_inode()

2015-10-21 Thread Dan Williams
Similar to the file_inode() helper, provide a helper to lookup the inode for a raw block device itself. Cc: Al Viro Signed-off-by: Dan Williams --- fs/block_dev.c | 19 --- 1 file changed, 12 insertions(+), 7 deletions(-) diff --git a/fs/block_dev.c b/fs/block_dev.c index 0a7