projects
/
platform
/
kernel
/
linux-amlogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
dc78610
)
jfs: remove unnecessary nlink setting
author
Miklos Szeredi
<mszeredi@suse.cz>
Fri, 28 Oct 2011 12:13:25 +0000
(14:13 +0200)
committer
Christoph Hellwig
<hch@serles.lst.de>
Wed, 2 Nov 2011 11:53:42 +0000
(12:53 +0100)
alloc_inode() initializes i_nlink to 1. Remove unnecessary
re-initialization.
Signed-off-by: Miklos Szeredi <mszeredi@suse.cz>
Acked-by: Dave Kleikamp <dave.kleikamp@oracle.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
fs/jfs/super.c
patch
|
blob
|
history
diff --git
a/fs/jfs/super.c
b/fs/jfs/super.c
index
06c8a67
..
a44eff0
100644
(file)
--- a/
fs/jfs/super.c
+++ b/
fs/jfs/super.c
@@
-485,7
+485,6
@@
static int jfs_fill_super(struct super_block *sb, void *data, int silent)
goto out_unload;
}
inode->i_ino = 0;
- inode->i_nlink = 1;
inode->i_size = sb->s_bdev->bd_inode->i_size;
inode->i_mapping->a_ops = &jfs_metapage_aops;
insert_inode_hash(inode);