diff options
author | Miklos Szeredi <mszeredi@suse.cz> | 2011-10-28 14:13:27 +0200 |
---|---|---|
committer | Christoph Hellwig <hch@serles.lst.de> | 2011-11-02 12:53:42 +0100 |
commit | dd2a981f46a0903a8770a784f213d4d40bbb6f19 (patch) | |
tree | 97429f247dda72ee6985ef1b74c377fd48c99cba /fs/logfs | |
parent | a7732b05f775a5575baac34c03bb0e8d16950edf (diff) | |
download | linux-dd2a981f46a0903a8770a784f213d4d40bbb6f19.tar.gz linux-dd2a981f46a0903a8770a784f213d4d40bbb6f19.tar.bz2 linux-dd2a981f46a0903a8770a784f213d4d40bbb6f19.zip |
logfs: remove unnecessary nlink setting
alloc_inode() initializes i_nlink to 1. Remove unnecessary
re-initialization.
Signed-off-by: Miklos Szeredi <mszeredi@suse.cz>
CC: Joern Engel <joern@logfs.org>
CC: Prasad Joshi <prasadjoshi.linux@gmail.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Diffstat (limited to 'fs/logfs')
-rw-r--r-- | fs/logfs/inode.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/fs/logfs/inode.c b/fs/logfs/inode.c index edfea7a3a747..9abb048b96c0 100644 --- a/fs/logfs/inode.c +++ b/fs/logfs/inode.c @@ -199,7 +199,6 @@ static void logfs_init_inode(struct super_block *sb, struct inode *inode) inode->i_blocks = 0; inode->i_ctime = CURRENT_TIME; inode->i_mtime = CURRENT_TIME; - inode->i_nlink = 1; li->li_refcount = 1; INIT_LIST_HEAD(&li->li_freeing_list); |