C99 patches for fs/
PATCH 1/1 C99 patches for fs/
Hi.
Here's a small set of three patches that add C99 initializers to fs/bio.c and fs/dquot.c. File fs/libfs.c has an obsolete GCC style initialzers that is converted to C99 style. The patches are against the current BK.
Art Haas
===== fs/bio.c 1.46 vs edited =====
fs/bio.c +1 -1
@@ -53,7 +53,7 @@* unsigned short */ -#define BV (x) { x, "biovec-" #x } +#define BV (x) { .nr_vecs = x, .name = "biovec-" #x }static struct biovec_pool bvec_array[BIOVEC_NR_POOLS ] = {BV (1 ),BV (4 ),BV (16 ),BV (64 ),BV (128 ),BV (BIO_MAX_PAGES ), };
===== fs/dquot.c 1.62 vs edited =====
fs/dquot.c +79 -13
104 lines not on this page · raw message
===== fs/libfs.c 1.19 vs edited =====
fs/libfs.c +1 -1
@@ -336,7 +336,7 @@int simple_fill_super (struct super_block *s,int magic,struct tree_descr *files) { -static struct super_operations s_ops = {statfs:simple_statfs}; +static struct super_operations s_ops = {.statfs = simple_statfs};struct inode *inode;struct dentry *root;struct dentry *dentry;
Signature · 4 lines
Man once surrendering his reason, has no remaining guard against absurdities the most monstrous, and like a ship without rudder, is the sport of every wind. -Thomas Jefferson to James Smith, 1822