Release 4.11 fs/efs/file.c
/*
* file.c
*
* Copyright (c) 1999 Al Smith
*
* Portions derived from work (c) 1995,1996 Christian Vogelgsang.
*/
#include <linux/buffer_head.h>
#include "efs.h"
int efs_get_block(struct inode *inode, sector_t iblock,
struct buffer_head *bh_result, int create)
{
int error = -EROFS;
long phys;
if (create)
return error;
if (iblock >= inode->i_blocks) {
#ifdef DEBUG
/*
* i have no idea why this happens as often as it does
*/
pr_warn("%s(): block %d >= %ld (filesize %ld)\n",
__func__, block, inode->i_blocks, inode->i_size);
#endif
return 0;
}
phys = efs_map_block(inode, iblock);
if (phys)
map_bh(bh_result, inode->i_sb, phys);
return 0;
}
Contributors
Person | Tokens | Prop | Commits | CommitProp |
Linus Torvalds (pre-git) | 89 | 89.00% | 1 | 20.00% |
Linus Torvalds | 7 | 7.00% | 2 | 40.00% |
Fabian Frederick | 4 | 4.00% | 2 | 40.00% |
Total | 100 | 100.00% | 5 | 100.00% |
int efs_bmap(struct inode *inode, efs_block_t block) {
if (block < 0) {
pr_warn("%s(): block < 0\n", __func__);
return 0;
}
/* are we about to read past the end of a file ? */
if (!(block < inode->i_blocks)) {
#ifdef DEBUG
/*
* i have no idea why this happens as often as it does
*/
pr_warn("%s(): block %d >= %ld (filesize %ld)\n",
__func__, block, inode->i_blocks, inode->i_size);
#endif
return 0;
}
return efs_map_block(inode, block);
}
Contributors
Person | Tokens | Prop | Commits | CommitProp |
Linus Torvalds (pre-git) | 71 | 89.87% | 1 | 33.33% |
Fabian Frederick | 8 | 10.13% | 2 | 66.67% |
Total | 79 | 100.00% | 3 | 100.00% |
Overall Contributors
Person | Tokens | Prop | Commits | CommitProp |
Linus Torvalds (pre-git) | 163 | 87.63% | 2 | 25.00% |
Fabian Frederick | 12 | 6.45% | 2 | 25.00% |
Linus Torvalds | 7 | 3.76% | 2 | 25.00% |
Christoph Hellwig | 4 | 2.15% | 2 | 25.00% |
Total | 186 | 100.00% | 8 | 100.00% |
Information contained on this website is for historical information purposes only and does not indicate or represent copyright ownership.