Release 4.11 fs/minix/itree_v1.c
#include <linux/buffer_head.h>
#include <linux/slab.h>
#include "minix.h"
enum {DEPTH = 3, DIRECT = 7};
/* Only double indirect */
typedef u16 block_t;
/* 16 bit, host order */
static inline unsigned long block_to_cpu(block_t n)
{
return n;
}
Contributors
Person | Tokens | Prop | Commits | CommitProp |
Linus Torvalds (pre-git) | 14 | 100.00% | 1 | 100.00% |
Total | 14 | 100.00% | 1 | 100.00% |
static inline block_t cpu_to_block(unsigned long n)
{
return n;
}
Contributors
Person | Tokens | Prop | Commits | CommitProp |
Linus Torvalds (pre-git) | 14 | 100.00% | 1 | 100.00% |
Total | 14 | 100.00% | 1 | 100.00% |
static inline block_t *i_data(struct inode *inode)
{
return (block_t *)minix_i(inode)->u.i1_data;
}
Contributors
Person | Tokens | Prop | Commits | CommitProp |
Linus Torvalds (pre-git) | 24 | 88.89% | 1 | 50.00% |
Linus Torvalds | 3 | 11.11% | 1 | 50.00% |
Total | 27 | 100.00% | 2 | 100.00% |
static int block_to_path(struct inode * inode, long block, int offsets[DEPTH])
{
int n = 0;
if (block < 0) {
printk("MINIX-fs: block_to_path: block %ld < 0 on dev %pg\n",
block, inode->i_sb->s_bdev);
} else if (block >= (minix_sb(inode->i_sb)->s_max_size/BLOCK_SIZE)) {
if (printk_ratelimit())
printk("MINIX-fs: block_to_path: "
"block %ld too big on dev %pg\n",
block, inode->i_sb->s_bdev);
} else if (block < 7) {
offsets[n++] = block;
} else if ((block -= 7) < 512) {
offsets[n++] = 7;
offsets[n++] = block;
} else {
block -= 512;
offsets[n++] = 8;
offsets[n++] = block>>9;
offsets[n++] = block & 511;
}
return n;
}
Contributors
Person | Tokens | Prop | Commits | CommitProp |
Linus Torvalds (pre-git) | 142 | 84.02% | 1 | 25.00% |
Eric Sandeen | 22 | 13.02% | 1 | 25.00% |
Brian Gerst | 3 | 1.78% | 1 | 25.00% |
Dmitriy Monakhov | 2 | 1.18% | 1 | 25.00% |
Total | 169 | 100.00% | 4 | 100.00% |
#include "itree_common.c"
int V1_minix_get_block(struct inode * inode, long block,
struct buffer_head *bh_result, int create)
{
return get_block(inode, block, bh_result, create);
}
Contributors
Person | Tokens | Prop | Commits | CommitProp |
Linus Torvalds (pre-git) | 33 | 100.00% | 1 | 100.00% |
Total | 33 | 100.00% | 1 | 100.00% |
void V1_minix_truncate(struct inode * inode)
{
truncate(inode);
}
Contributors
Person | Tokens | Prop | Commits | CommitProp |
Linus Torvalds (pre-git) | 15 | 100.00% | 1 | 100.00% |
Total | 15 | 100.00% | 1 | 100.00% |
unsigned V1_minix_blocks(loff_t size, struct super_block *sb)
{
return nblocks(size, sb);
}
Contributors
Person | Tokens | Prop | Commits | CommitProp |
Al Viro | 14 | 66.67% | 1 | 50.00% |
Andries E. Brouwer | 7 | 33.33% | 1 | 50.00% |
Total | 21 | 100.00% | 2 | 100.00% |
Overall Contributors
Person | Tokens | Prop | Commits | CommitProp |
Linus Torvalds (pre-git) | 264 | 81.99% | 1 | 10.00% |
Eric Sandeen | 22 | 6.83% | 1 | 10.00% |
Al Viro | 15 | 4.66% | 2 | 20.00% |
Andries E. Brouwer | 7 | 2.17% | 1 | 10.00% |
Christoph Hellwig | 3 | 0.93% | 1 | 10.00% |
Brian Gerst | 3 | 0.93% | 1 | 10.00% |
Tejun Heo | 3 | 0.93% | 1 | 10.00% |
Linus Torvalds | 3 | 0.93% | 1 | 10.00% |
Dmitriy Monakhov | 2 | 0.62% | 1 | 10.00% |
Total | 322 | 100.00% | 10 | 100.00% |
Information contained on this website is for historical information purposes only and does not indicate or represent copyright ownership.