mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-23 07:01:23 +00:00
new helper: file_inode(file)
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
This commit is contained in:
parent
57eccb830f
commit
496ad9aa8e
306 changed files with 696 additions and 717 deletions
|
@ -318,7 +318,7 @@ static int blkdev_write_end(struct file *file, struct address_space *mapping,
|
|||
|
||||
/*
|
||||
* private llseek:
|
||||
* for a block special file file->f_path.dentry->d_inode->i_size is zero
|
||||
* for a block special file file_inode(file)->i_size is zero
|
||||
* so we compute the size by hand (just as in block_read/write above)
|
||||
*/
|
||||
static loff_t block_llseek(struct file *file, loff_t offset, int whence)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue