diff options
| author | Linus Torvalds <torvalds@linux-foundation.org> | 2011-11-02 14:41:01 -0400 |
|---|---|---|
| committer | Linus Torvalds <torvalds@linux-foundation.org> | 2011-11-02 14:41:01 -0400 |
| commit | d211858837ff8d8e31942ca7d27e6e08b3b46f5e (patch) | |
| tree | a8ec83a791066e64ad02052498dbe39ebefacab9 /fs/logfs/inode.c | |
| parent | f1f8935a5c38a2c61e86a42bc971a2539eef2211 (diff) | |
| parent | f0023bc617ba600956b9226f1806033d7486c8ba (diff) | |
Merge branch 'for-next' of git://git.kernel.org/pub/scm/linux/kernel/git/hch/vfs-queue
* 'for-next' of git://git.kernel.org/pub/scm/linux/kernel/git/hch/vfs-queue:
vfs: add d_prune dentry operation
vfs: protect i_nlink
filesystems: add set_nlink()
filesystems: add missing nlink wrappers
logfs: remove unnecessary nlink setting
ocfs2: remove unnecessary nlink setting
jfs: remove unnecessary nlink setting
hypfs: remove unnecessary nlink setting
vfs: ignore error on forced remount
readlinkat: ensure we return ENOENT for the empty pathname for normal lookups
vfs: fix dentry leak in simple_fill_super()
Diffstat (limited to 'fs/logfs/inode.c')
| -rw-r--r-- | fs/logfs/inode.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/fs/logfs/inode.c b/fs/logfs/inode.c index edfea7a3a747..7e441ad5f792 100644 --- a/fs/logfs/inode.c +++ b/fs/logfs/inode.c | |||
| @@ -93,7 +93,7 @@ static struct inode *__logfs_iget(struct super_block *sb, ino_t ino) | |||
| 93 | /* inode->i_nlink == 0 can be true when called from | 93 | /* inode->i_nlink == 0 can be true when called from |
| 94 | * block validator */ | 94 | * block validator */ |
| 95 | /* set i_nlink to 0 to prevent caching */ | 95 | /* set i_nlink to 0 to prevent caching */ |
| 96 | inode->i_nlink = 0; | 96 | clear_nlink(inode); |
| 97 | logfs_inode(inode)->li_flags |= LOGFS_IF_ZOMBIE; | 97 | logfs_inode(inode)->li_flags |= LOGFS_IF_ZOMBIE; |
| 98 | iget_failed(inode); | 98 | iget_failed(inode); |
| 99 | if (!err) | 99 | if (!err) |
| @@ -199,7 +199,6 @@ static void logfs_init_inode(struct super_block *sb, struct inode *inode) | |||
| 199 | inode->i_blocks = 0; | 199 | inode->i_blocks = 0; |
| 200 | inode->i_ctime = CURRENT_TIME; | 200 | inode->i_ctime = CURRENT_TIME; |
| 201 | inode->i_mtime = CURRENT_TIME; | 201 | inode->i_mtime = CURRENT_TIME; |
| 202 | inode->i_nlink = 1; | ||
| 203 | li->li_refcount = 1; | 202 | li->li_refcount = 1; |
| 204 | INIT_LIST_HEAD(&li->li_freeing_list); | 203 | INIT_LIST_HEAD(&li->li_freeing_list); |
| 205 | 204 | ||
