Release 4.11 fs/minix/itree_v2.c
#include <linux/buffer_head.h>
#include "minix.h"
enum {DIRECT = 7, DEPTH = 4};
/* Have triple indirect */
typedef u32 block_t;
/* 32 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.i2_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% |
#define DIRCOUNT 7
#define INDIRCOUNT(sb) (1 << ((sb)->s_blocksize_bits - 2))
static int block_to_path(struct inode * inode, long block, int offsets[DEPTH])
{
int n = 0;
struct super_block *sb = inode->i_sb;
if (block < 0) {
printk("MINIX-fs: block_to_path: block %ld < 0 on dev %pg\n",
block, sb->s_bdev);
} else if ((u64)block * (u64)sb->s_blocksize >=
minix_sb(sb)->s_max_size) {
if (printk_ratelimit())
printk("MINIX-fs: block_to_path: "
"block %ld too big on dev %pg\n",
block, sb->s_bdev);
} else if (block < DIRCOUNT) {
offsets[n++] = block;
} else if ((block -= DIRCOUNT) < INDIRCOUNT(sb)) {
offsets[n++] = DIRCOUNT;
offsets[n++] = block;
} else if ((block -= INDIRCOUNT(sb)) < INDIRCOUNT(sb) * INDIRCOUNT(sb)) {
offsets[n++] = DIRCOUNT + 1;
offsets[n++] = block / INDIRCOUNT(sb);
offsets[n++] = block % INDIRCOUNT(sb);
} else {
block -= INDIRCOUNT(sb) * INDIRCOUNT(sb);
offsets[n++] = DIRCOUNT + 2;
offsets[n++] = (block / INDIRCOUNT(sb)) / INDIRCOUNT(sb);
offsets[n++] = (block / INDIRCOUNT(sb)) % INDIRCOUNT(sb);
offsets[n++] = block % INDIRCOUNT(sb);
}
return n;
}
Contributors
Person | Tokens | Prop | Commits | CommitProp |
Linus Torvalds (pre-git) | 171 | 60.21% | 1 | 14.29% |
Erik van der Kouwe | 70 | 24.65% | 1 | 14.29% |
Eric Sandeen | 18 | 6.34% | 1 | 14.29% |
Vladimir Serbinenko | 11 | 3.87% | 1 | 14.29% |
Andries E. Brouwer | 9 | 3.17% | 1 | 14.29% |
Brian Gerst | 3 | 1.06% | 1 | 14.29% |
Dmitriy Monakhov | 2 | 0.70% | 1 | 14.29% |
Total | 284 | 100.00% | 7 | 100.00% |
#include "itree_common.c"
int V2_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 V2_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 V2_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) | 293 | 65.84% | 1 | 9.09% |
Erik van der Kouwe | 81 | 18.20% | 1 | 9.09% |
Eric Sandeen | 18 | 4.04% | 1 | 9.09% |
Andries E. Brouwer | 16 | 3.60% | 1 | 9.09% |
Al Viro | 15 | 3.37% | 2 | 18.18% |
Vladimir Serbinenko | 11 | 2.47% | 1 | 9.09% |
Linus Torvalds | 3 | 0.67% | 1 | 9.09% |
Brian Gerst | 3 | 0.67% | 1 | 9.09% |
Christoph Hellwig | 3 | 0.67% | 1 | 9.09% |
Dmitriy Monakhov | 2 | 0.45% | 1 | 9.09% |
Total | 445 | 100.00% | 11 | 100.00% |
Information contained on this website is for historical information purposes only and does not indicate or represent copyright ownership.